-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Neat 334 asset loader graph store interface #542
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few minor comments.
One suggestion: What about renaming it to _rdf2class
and then have the loader create both Assets and Relationships.
_DEXPI_PREFIXES = { | ||
"dexpi": Namespace("http://sandbox.dexpi.org/rdl/"), | ||
"posccaesar": Namespace("http://data.posccaesar.org/rdl/"), | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice another one
@@ -104,6 +134,39 @@ def categorize_assets(self, client: CogniteClient) -> None: | |||
|
|||
raise NotImplementedError("Not implemented yet, this is placeholder") | |||
|
|||
def _load(self, stop_on_exception: bool = False) -> Iterable[AssetWrite | NeatIssue]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is such a nice method. Really like how easy it is with the store.read
Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>
Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>
Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>
Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>
Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>
Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>
[0.87.0] - 17-07-24
Added
AssetLoader
added to load assets to CDFget_default_prefixes
method to provide default prefixesRemoved
PREFIXES
dict that was used as default prefixes inNeatGraphStore
andRules
Improved
AssetRules
properties have now mandatoryimplementation
fieldFixed
DESCRIBE
query