cognite-neat 0.84.0__tar.gz → 0.84.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of cognite-neat might be problematic. Click here for more details.
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/PKG-INFO +1 -1
- cognite_neat-0.84.1/cognite/neat/_version.py +1 -0
- cognite_neat-0.84.1/cognite/neat/graph/loaders/_rdf2asset.py +123 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/graph/loaders/_rdf2dms.py +2 -2
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/graph/stores/_base.py +7 -3
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/importers/_base.py +3 -3
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/models/_rdfpath.py +41 -2
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/models/asset/_rules.py +5 -2
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/models/information/_converter.py +27 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/models/information/_rules.py +6 -1
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/pyproject.toml +5 -5
- cognite_neat-0.84.0/cognite/neat/_version.py +0 -1
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/LICENSE +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/README.md +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/_shared.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/app/api/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/app/api/asgi/metrics.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/app/api/configuration.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/app/api/context_manager/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/app/api/context_manager/manager.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/app/api/data_classes/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/app/api/data_classes/rest.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/app/api/explorer.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/app/api/routers/configuration.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/app/api/routers/core.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/app/api/routers/crud.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/app/api/routers/data_exploration.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/app/api/routers/metrics.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/app/api/routers/rules.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/app/api/routers/workflows.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/app/api/utils/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/app/api/utils/data_mapping.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/app/api/utils/logging.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/app/api/utils/query_templates.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/app/main.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/app/monitoring/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/app/monitoring/metrics.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/app/ui/index.html +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/app/ui/neat-app/.gitignore +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/app/ui/neat-app/README.md +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/app/ui/neat-app/build/asset-manifest.json +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/app/ui/neat-app/build/favicon.ico +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/app/ui/neat-app/build/img/architect-icon.svg +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/app/ui/neat-app/build/img/developer-icon.svg +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/app/ui/neat-app/build/img/sme-icon.svg +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/app/ui/neat-app/build/index.html +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/app/ui/neat-app/build/logo192.png +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/app/ui/neat-app/build/manifest.json +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/app/ui/neat-app/build/robots.txt +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/app/ui/neat-app/build/static/css/main.38a62222.css +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/app/ui/neat-app/build/static/css/main.38a62222.css.map +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/app/ui/neat-app/build/static/js/main.ec7f72e2.js +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/app/ui/neat-app/build/static/js/main.ec7f72e2.js.LICENSE.txt +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/app/ui/neat-app/build/static/js/main.ec7f72e2.js.map +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/app/ui/neat-app/build/static/media/logo.8093b84df9ed36a174c629d6fe0b730d.svg +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/config.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/constants.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/exceptions.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/graph/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/graph/_shared.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/graph/_tracking/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/graph/_tracking/base.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/graph/_tracking/log.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/graph/examples/Knowledge-Graph-Nordic44-dirty.xml +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/graph/examples/Knowledge-Graph-Nordic44.xml +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/graph/examples/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/graph/examples/skos-capturing-sheet-wind-topics.xlsx +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/graph/exceptions.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/graph/extractors/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/graph/extractors/_base.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/graph/extractors/_classic_cdf/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/graph/extractors/_classic_cdf/_assets.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/graph/extractors/_classic_cdf/_events.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/graph/extractors/_classic_cdf/_files.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/graph/extractors/_classic_cdf/_labels.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/graph/extractors/_classic_cdf/_relationships.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/graph/extractors/_classic_cdf/_sequences.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/graph/extractors/_classic_cdf/_timeseries.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/graph/extractors/_dexpi.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/graph/extractors/_mock_graph_generator.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/graph/extractors/_rdf_file.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/graph/issues/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/graph/issues/loader.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/graph/loaders/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/graph/loaders/_base.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/graph/models.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/graph/queries/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/graph/queries/_base.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/graph/queries/_construct.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/graph/queries/_shared.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/graph/stores/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/graph/stores/_oxrdflib.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/graph/stores/_provenance.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/graph/transformers/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/graph/transformers/_base.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/graph/transformers/_classic_cdf.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/issues.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/graph/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/graph/examples/Knowledge-Graph-Nordic44-dirty.xml +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/graph/examples/Knowledge-Graph-Nordic44.xml +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/graph/examples/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/graph/examples/skos-capturing-sheet-wind-topics.xlsx +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/graph/exceptions.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/graph/extractors/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/graph/extractors/_base.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/graph/extractors/_dexpi.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/graph/extractors/_graph_capturing_sheet.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/graph/extractors/_mock_graph_generator.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/graph/loaders/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/graph/loaders/_asset_loader.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/graph/loaders/_base.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/graph/loaders/_exceptions.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/graph/loaders/core/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/graph/loaders/core/labels.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/graph/loaders/core/models.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/graph/loaders/core/rdf_to_assets.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/graph/loaders/core/rdf_to_relationships.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/graph/loaders/rdf_to_dms.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/graph/loaders/validator.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/graph/models.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/graph/stores/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/graph/stores/_base.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/graph/stores/_graphdb_store.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/graph/stores/_memory_store.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/graph/stores/_oxigraph_store.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/graph/stores/_oxrdflib.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/graph/stores/_rdf_to_graph.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/graph/transformations/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/graph/transformations/entity_matcher.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/graph/transformations/query_generator/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/graph/transformations/query_generator/sparql.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/graph/transformations/transformer.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/rules/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/rules/analysis.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/rules/examples/Rules-Nordic44-to-TNT.xlsx +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/rules/examples/Rules-Nordic44-to-graphql.xlsx +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/rules/examples/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/rules/examples/power-grid-containers.yaml +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/rules/examples/power-grid-example.xlsx +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/rules/examples/power-grid-model.yaml +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/rules/examples/rules-template.xlsx +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/rules/examples/sheet2cdf-transformation-rules.xlsx +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/rules/examples/skos-rules.xlsx +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/rules/examples/source-to-solution-mapping-rules.xlsx +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/rules/examples/wind-energy.owl +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/rules/exceptions.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/rules/exporters/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/rules/exporters/_base.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/rules/exporters/_core/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/rules/exporters/_core/rules2labels.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/rules/exporters/_rules2dms.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/rules/exporters/_rules2excel.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/rules/exporters/_rules2graphql.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/rules/exporters/_rules2ontology.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/rules/exporters/_rules2pydantic_models.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/rules/exporters/_rules2rules.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/rules/exporters/_rules2triples.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/rules/exporters/_validation.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/rules/importers/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/rules/importers/_base.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/rules/importers/_dict2rules.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/rules/importers/_dms2rules.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/rules/importers/_graph2rules.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/rules/importers/_json2rules.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/rules/importers/_owl2rules/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/rules/importers/_owl2rules/_owl2classes.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/rules/importers/_owl2rules/_owl2metadata.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/rules/importers/_owl2rules/_owl2properties.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/rules/importers/_owl2rules/_owl2rules.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/rules/importers/_spreadsheet2rules.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/rules/importers/_xsd2rules.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/rules/importers/_yaml2rules.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/rules/models/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/rules/models/_base.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/rules/models/raw_rules.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/rules/models/rdfpath.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/rules/models/rules.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/rules/models/tables.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/rules/models/value_types.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/workflows/examples/Export_DMS/workflow.yaml +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/workflows/examples/Export_Rules_to_Ontology/workflow.yaml +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/workflows/examples/Extract_DEXPI_Graph_and_Export_Rules/workflow.yaml +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/workflows/examples/Extract_RDF_Graph_and_Generate_Assets/workflow.yaml +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/workflows/examples/Import_DMS/workflow.yaml +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/workflows/examples/Ontology_to_Data_Model/workflow.yaml +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/workflows/examples/Validate_Rules/workflow.yaml +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/workflows/examples/Validate_Solution_Model/workflow.yaml +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/workflows/examples/Visualize_Data_Model_Using_Mock_Graph/workflow.yaml +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/legacy/workflows/examples/Visualize_Semantic_Data_Model/workflow.yaml +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/py.typed +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/_shared.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/analysis/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/analysis/_base.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/analysis/_information_rules.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/examples/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/examples/wind-energy.owl +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/exceptions.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/exporters/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/exporters/_base.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/exporters/_rules2dms.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/exporters/_rules2excel.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/exporters/_rules2ontology.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/exporters/_rules2yaml.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/exporters/_validation.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/importers/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/importers/_dms2rules.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/importers/_dtdl2rules/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/importers/_dtdl2rules/_unit_lookup.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/importers/_dtdl2rules/dtdl_converter.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/importers/_dtdl2rules/dtdl_importer.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/importers/_dtdl2rules/spec.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/importers/_inference2rules.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/importers/_owl2rules/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/importers/_owl2rules/_owl2classes.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/importers/_owl2rules/_owl2metadata.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/importers/_owl2rules/_owl2properties.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/importers/_owl2rules/_owl2rules.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/importers/_spreadsheet2rules.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/importers/_yaml2rules.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/issues/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/issues/base.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/issues/dms.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/issues/fileread.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/issues/formatters.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/issues/importing.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/issues/spreadsheet.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/issues/spreadsheet_file.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/models/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/models/_base.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/models/_constants.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/models/_types/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/models/_types/_base.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/models/_types/_field.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/models/asset/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/models/asset/_converter.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/models/asset/_rules_input.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/models/asset/_serializer.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/models/asset/_validation.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/models/data_types.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/models/dms/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/models/dms/_converter.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/models/dms/_exporter.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/models/dms/_rules.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/models/dms/_rules_input.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/models/dms/_schema.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/models/dms/_serializer.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/models/dms/_validation.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/models/domain.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/models/entities.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/models/information/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/models/information/_rules_input.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/models/information/_serializer.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/models/information/_validation.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/models/wrapped_entities.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/utils/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/utils/auxiliary.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/utils/cdf.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/utils/cdf_classes.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/utils/cdf_loaders/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/utils/cdf_loaders/_base.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/utils/cdf_loaders/_data_modeling.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/utils/cdf_loaders/_ingestion.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/utils/cdf_loaders/data_classes.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/utils/exceptions.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/utils/spreadsheet.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/utils/text.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/utils/upload.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/utils/utils.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/utils/xml.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/workflows/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/workflows/_exceptions.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/workflows/base.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/workflows/cdf_store.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/workflows/examples/Export_DMS/workflow.yaml +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/workflows/examples/Export_Rules_to_Ontology/workflow.yaml +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/workflows/examples/Extract_DEXPI_Graph_and_Export_Rules/workflow.yaml +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/workflows/examples/Extract_RDF_Graph_and_Generate_Assets/workflow.yaml +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/workflows/examples/Import_DMS/workflow.yaml +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/workflows/examples/Ontology_to_Data_Model/workflow.yaml +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/workflows/examples/Validate_Rules/workflow.yaml +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/workflows/examples/Validate_Solution_Model/workflow.yaml +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/workflows/examples/Visualize_Data_Model_Using_Mock_Graph/workflow.yaml +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/workflows/examples/Visualize_Semantic_Data_Model/workflow.yaml +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/workflows/manager.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/workflows/migration/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/workflows/migration/steps.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/workflows/migration/wf_manifests.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/workflows/model.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/workflows/steps/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/workflows/steps/data_contracts.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/workflows/steps/lib/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/workflows/steps/lib/current/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/workflows/steps/lib/current/graph_extractor.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/workflows/steps/lib/current/graph_loader.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/workflows/steps/lib/current/graph_store.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/workflows/steps/lib/current/rules_exporter.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/workflows/steps/lib/current/rules_importer.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/workflows/steps/lib/current/rules_validator.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/workflows/steps/lib/io/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/workflows/steps/lib/io/io_steps.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/workflows/steps/lib/legacy/__init__.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/workflows/steps/lib/legacy/graph_contextualization.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/workflows/steps/lib/legacy/graph_extractor.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/workflows/steps/lib/legacy/graph_loader.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/workflows/steps/lib/legacy/graph_store.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/workflows/steps/lib/legacy/graph_transformer.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/workflows/steps/lib/legacy/rules_exporter.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/workflows/steps/lib/legacy/rules_importer.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/workflows/steps/step_model.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/workflows/steps_registry.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/workflows/tasks.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/workflows/triggers.py +0 -0
- {cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/workflows/utils.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.84.1"
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
from collections.abc import Sequence
|
|
2
|
+
from dataclasses import dataclass, fields
|
|
3
|
+
|
|
4
|
+
from cognite.client import CogniteClient
|
|
5
|
+
from cognite.client.data_classes import AssetWrite
|
|
6
|
+
|
|
7
|
+
from cognite.neat.graph._tracking.base import Tracker
|
|
8
|
+
from cognite.neat.graph._tracking.log import LogTracker
|
|
9
|
+
from cognite.neat.graph.stores import NeatGraphStore
|
|
10
|
+
from cognite.neat.issues import NeatIssue, NeatIssueList
|
|
11
|
+
from cognite.neat.rules.models import AssetRules
|
|
12
|
+
|
|
13
|
+
from ._base import CDFLoader
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
@dataclass(frozen=True)
|
|
17
|
+
class AssetLoaderMetadataKeys:
|
|
18
|
+
"""Class holding mapping between NEAT metadata key names and their desired names
|
|
19
|
+
in CDF Asset metadata
|
|
20
|
+
|
|
21
|
+
Args:
|
|
22
|
+
start_time: Start time key name
|
|
23
|
+
end_time: End time key name
|
|
24
|
+
update_time: Update time key name
|
|
25
|
+
resurrection_time: Resurrection time key name
|
|
26
|
+
identifier: Identifier key name
|
|
27
|
+
active: Active key name
|
|
28
|
+
type: Type key name
|
|
29
|
+
"""
|
|
30
|
+
|
|
31
|
+
start_time: str = "start_time"
|
|
32
|
+
end_time: str = "end_time"
|
|
33
|
+
update_time: str = "update_time"
|
|
34
|
+
resurrection_time: str = "resurrection_time"
|
|
35
|
+
identifier: str = "identifier"
|
|
36
|
+
active: str = "active"
|
|
37
|
+
type: str = "type"
|
|
38
|
+
|
|
39
|
+
def as_aliases(self) -> dict[str, str]:
|
|
40
|
+
return {str(field.default): getattr(self, field.name) for field in fields(self)}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
class AssetLoader(CDFLoader[AssetWrite]):
|
|
44
|
+
def __init__(
|
|
45
|
+
self,
|
|
46
|
+
rules: AssetRules,
|
|
47
|
+
graph_store: NeatGraphStore,
|
|
48
|
+
data_set_id: int,
|
|
49
|
+
use_orphanage: bool = False,
|
|
50
|
+
use_labels: bool = False,
|
|
51
|
+
asset_external_id_prefix: str | None = None,
|
|
52
|
+
metadata_keys: AssetLoaderMetadataKeys | None = None,
|
|
53
|
+
create_issues: Sequence[NeatIssue] | None = None,
|
|
54
|
+
tracker: type[Tracker] | None = None,
|
|
55
|
+
):
|
|
56
|
+
super().__init__(graph_store)
|
|
57
|
+
|
|
58
|
+
self.rules = rules
|
|
59
|
+
self.data_set_id = data_set_id
|
|
60
|
+
self.use_labels = use_labels
|
|
61
|
+
self.use_orphanage = use_orphanage
|
|
62
|
+
|
|
63
|
+
self.orphanage_external_id = (
|
|
64
|
+
f"{asset_external_id_prefix or ''}orphanage-{data_set_id}" if use_orphanage else None
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
self.asset_external_id_prefix = asset_external_id_prefix
|
|
68
|
+
self.metadata_keys = metadata_keys or AssetLoaderMetadataKeys()
|
|
69
|
+
|
|
70
|
+
self._issues = NeatIssueList[NeatIssue](create_issues or [])
|
|
71
|
+
self._tracker: type[Tracker] = tracker or LogTracker
|
|
72
|
+
|
|
73
|
+
@classmethod
|
|
74
|
+
def from_rules(
|
|
75
|
+
cls,
|
|
76
|
+
rules: AssetRules,
|
|
77
|
+
graph_store: NeatGraphStore,
|
|
78
|
+
data_set_id: int,
|
|
79
|
+
use_orphanage: bool = False,
|
|
80
|
+
use_labels: bool = False,
|
|
81
|
+
asset_external_id_prefix: str | None = None,
|
|
82
|
+
metadata_keys: AssetLoaderMetadataKeys | None = None,
|
|
83
|
+
) -> "AssetLoader":
|
|
84
|
+
issues: list[NeatIssue] = []
|
|
85
|
+
|
|
86
|
+
return cls(
|
|
87
|
+
rules, graph_store, data_set_id, use_orphanage, use_labels, asset_external_id_prefix, metadata_keys, issues
|
|
88
|
+
)
|
|
89
|
+
|
|
90
|
+
def _create_validation_classes(self) -> None:
|
|
91
|
+
# need to get back class-property pairs where are definition of
|
|
92
|
+
# asset implementations, extend InformationRulesAnalysis make it generic
|
|
93
|
+
|
|
94
|
+
# by default if there is not explicitly stated external_id
|
|
95
|
+
# use rdf:type and drop the prefix
|
|
96
|
+
|
|
97
|
+
# based on those create pydantic model AssetDefinition
|
|
98
|
+
# which will have .to_asset_write()
|
|
99
|
+
|
|
100
|
+
raise NotImplementedError("Not implemented yet, this is placeholder")
|
|
101
|
+
|
|
102
|
+
def categorize_assets(self, client: CogniteClient) -> None:
|
|
103
|
+
"""Categorize assets to those to be created, updated, decommissioned, or resurrected"""
|
|
104
|
+
|
|
105
|
+
raise NotImplementedError("Not implemented yet, this is placeholder")
|
|
106
|
+
|
|
107
|
+
def load_to_cdf(self, client: CogniteClient, dry_run: bool = False) -> Sequence[AssetWrite]:
|
|
108
|
+
# generate assets
|
|
109
|
+
# check for circular asset hierarchy
|
|
110
|
+
# check for orphaned assets
|
|
111
|
+
# batch upsert of assets to CDF (otherwise we will hit the API rate limit)
|
|
112
|
+
|
|
113
|
+
raise NotImplementedError("Not implemented yet, this is placeholder")
|
|
114
|
+
|
|
115
|
+
@classmethod
|
|
116
|
+
def _check_for_circular_asset_hierarchy(cls, assets: list[AssetWrite]) -> None:
|
|
117
|
+
"""Check for circular references in the asset rules"""
|
|
118
|
+
raise NotImplementedError("Not implemented yet, this is placeholder")
|
|
119
|
+
|
|
120
|
+
@classmethod
|
|
121
|
+
def _check_for_orphaned_assets(cls, assets: list[AssetWrite]) -> None:
|
|
122
|
+
"""Check for circular references in the asset rules"""
|
|
123
|
+
raise NotImplementedError("Not implemented yet, this is placeholder")
|
|
@@ -34,14 +34,14 @@ class DMSLoader(CDFLoader[dm.InstanceApply]):
|
|
|
34
34
|
data_model: dm.DataModel[dm.View] | None,
|
|
35
35
|
instance_space: str,
|
|
36
36
|
class_by_view_id: dict[ViewId, str] | None = None,
|
|
37
|
-
|
|
37
|
+
create_issues: Sequence[NeatIssue] | None = None,
|
|
38
38
|
tracker: type[Tracker] | None = None,
|
|
39
39
|
):
|
|
40
40
|
super().__init__(graph_store)
|
|
41
41
|
self.data_model = data_model
|
|
42
42
|
self.instance_space = instance_space
|
|
43
43
|
self.class_by_view_id = class_by_view_id or {}
|
|
44
|
-
self._issues = NeatIssueList[NeatIssue](
|
|
44
|
+
self._issues = NeatIssueList[NeatIssue](create_issues or [])
|
|
45
45
|
self._tracker: type[Tracker] = tracker or LogTracker
|
|
46
46
|
|
|
47
47
|
@classmethod
|
|
@@ -14,8 +14,8 @@ from cognite.neat.graph.extractors import RdfFileExtractor, TripleExtractors
|
|
|
14
14
|
from cognite.neat.graph.models import Triple
|
|
15
15
|
from cognite.neat.graph.queries import Queries
|
|
16
16
|
from cognite.neat.graph.transformers import Transformers
|
|
17
|
+
from cognite.neat.rules.models import InformationRules
|
|
17
18
|
from cognite.neat.rules.models.entities import ClassEntity
|
|
18
|
-
from cognite.neat.rules.models.information import InformationRules
|
|
19
19
|
from cognite.neat.utils.auxiliary import local_import
|
|
20
20
|
|
|
21
21
|
from ._provenance import Change, Provenance
|
|
@@ -66,7 +66,8 @@ class NeatGraphStore:
|
|
|
66
66
|
|
|
67
67
|
def add_rules(self, rules: InformationRules) -> None:
|
|
68
68
|
"""This method is used to add rules to the graph store and it is the only correct
|
|
69
|
-
way to add rules to the graph store, after the graph store has been initialized.
|
|
69
|
+
way to add rules to the graph store, after the graph store has been initialized.
|
|
70
|
+
"""
|
|
70
71
|
|
|
71
72
|
self.rules = rules
|
|
72
73
|
self.base_namespace = self.rules.metadata.namespace
|
|
@@ -169,7 +170,10 @@ class NeatGraphStore:
|
|
|
169
170
|
# not yet developed
|
|
170
171
|
|
|
171
172
|
if not self.rules:
|
|
172
|
-
warnings.warn(
|
|
173
|
+
warnings.warn(
|
|
174
|
+
"No rules found for the graph store, returning empty list.",
|
|
175
|
+
stacklevel=2,
|
|
176
|
+
)
|
|
173
177
|
return []
|
|
174
178
|
|
|
175
179
|
class_entity = ClassEntity(prefix=self.rules.metadata.prefix, suffix=class_)
|
|
@@ -11,7 +11,7 @@ from rdflib import Namespace
|
|
|
11
11
|
|
|
12
12
|
from cognite.neat.rules._shared import Rules
|
|
13
13
|
from cognite.neat.rules.issues.base import IssueList, NeatValidationError, ValidationWarning
|
|
14
|
-
from cognite.neat.rules.models import DMSRules, InformationRules, RoleTypes
|
|
14
|
+
from cognite.neat.rules.models import AssetRules, DMSRules, InformationRules, RoleTypes
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
class BaseImporter(ABC):
|
|
@@ -48,9 +48,9 @@ class BaseImporter(ABC):
|
|
|
48
48
|
|
|
49
49
|
if rules.metadata.role is role or role is None:
|
|
50
50
|
output = rules
|
|
51
|
-
elif isinstance(rules, DMSRules) and role is RoleTypes.information_architect:
|
|
51
|
+
elif isinstance(rules, DMSRules) or isinstance(rules, AssetRules) and role is RoleTypes.information_architect:
|
|
52
52
|
output = rules.as_information_architect_rules()
|
|
53
|
-
elif isinstance(rules, InformationRules) and role is RoleTypes.dms_architect:
|
|
53
|
+
elif isinstance(rules, InformationRules) or isinstance(rules, AssetRules) and role is RoleTypes.dms_architect:
|
|
54
54
|
output = rules.as_dms_architect_rules()
|
|
55
55
|
else:
|
|
56
56
|
raise NotImplementedError(f"Role {role} is not supported for {type(rules).__name__} rules")
|
|
@@ -6,7 +6,7 @@ from collections import Counter
|
|
|
6
6
|
from functools import total_ordering
|
|
7
7
|
from typing import ClassVar, Literal
|
|
8
8
|
|
|
9
|
-
from pydantic import BaseModel, field_validator
|
|
9
|
+
from pydantic import BaseModel, field_validator, model_serializer
|
|
10
10
|
|
|
11
11
|
from cognite.neat.rules import exceptions
|
|
12
12
|
|
|
@@ -82,6 +82,7 @@ TABLE_REGEX_COMPILED = re.compile(
|
|
|
82
82
|
|
|
83
83
|
StepDirection = Literal["source", "target", "origin"]
|
|
84
84
|
_direction_by_symbol: dict[str, StepDirection] = {"->": "target", "<-": "source"}
|
|
85
|
+
_symbol_by_direction: dict[StepDirection, str] = {"source": "<-", "target": "->"}
|
|
85
86
|
|
|
86
87
|
Undefined = type(object())
|
|
87
88
|
Unknown = type(object())
|
|
@@ -196,10 +197,29 @@ class Step(BaseModel):
|
|
|
196
197
|
msg += " ->prefix:suffix, <-prefix:suffix, ->prefix:suffix(prefix:suffix) or <-prefix:suffix(prefix:suffix)"
|
|
197
198
|
raise ValueError(msg)
|
|
198
199
|
|
|
200
|
+
def __str__(self) -> str:
|
|
201
|
+
if self.property:
|
|
202
|
+
return f"{self.class_}({self.property})"
|
|
203
|
+
else:
|
|
204
|
+
return f"{_symbol_by_direction[self.direction]}{self.class_}"
|
|
205
|
+
|
|
206
|
+
def __repr__(self) -> str:
|
|
207
|
+
return self.__str__()
|
|
208
|
+
|
|
199
209
|
|
|
200
210
|
class Traversal(BaseModel):
|
|
201
211
|
class_: Entity
|
|
202
212
|
|
|
213
|
+
def __str__(self) -> str:
|
|
214
|
+
return f"{self.class_}"
|
|
215
|
+
|
|
216
|
+
def __repr__(self) -> str:
|
|
217
|
+
return self.__str__()
|
|
218
|
+
|
|
219
|
+
@model_serializer(when_used="unless-none", return_type=str)
|
|
220
|
+
def as_str(self) -> str:
|
|
221
|
+
return str(self)
|
|
222
|
+
|
|
203
223
|
|
|
204
224
|
class SingleProperty(Traversal):
|
|
205
225
|
property: Entity
|
|
@@ -208,6 +228,9 @@ class SingleProperty(Traversal):
|
|
|
208
228
|
def from_string(cls, class_: str, property_: str) -> Self:
|
|
209
229
|
return cls(class_=Entity.from_string(class_), property=Entity.from_string(property_))
|
|
210
230
|
|
|
231
|
+
def __str__(self) -> str:
|
|
232
|
+
return f"{self.class_}({self.property})"
|
|
233
|
+
|
|
211
234
|
|
|
212
235
|
class AllReferences(Traversal):
|
|
213
236
|
@classmethod
|
|
@@ -220,6 +243,9 @@ class AllProperties(Traversal):
|
|
|
220
243
|
def from_string(cls, class_: str) -> Self:
|
|
221
244
|
return cls(class_=Entity.from_string(class_))
|
|
222
245
|
|
|
246
|
+
def __str__(self) -> str:
|
|
247
|
+
return f"{self.class_}(*)"
|
|
248
|
+
|
|
223
249
|
|
|
224
250
|
class Origin(BaseModel):
|
|
225
251
|
class_: Entity
|
|
@@ -245,6 +271,9 @@ class Hop(Traversal):
|
|
|
245
271
|
),
|
|
246
272
|
)
|
|
247
273
|
|
|
274
|
+
def __str__(self) -> str:
|
|
275
|
+
return f"{self.class_}{''.join([str(step) for step in self.traversal])}"
|
|
276
|
+
|
|
248
277
|
|
|
249
278
|
class TableLookup(BaseModel):
|
|
250
279
|
name: str
|
|
@@ -261,7 +290,17 @@ class Query(BaseModel):
|
|
|
261
290
|
|
|
262
291
|
|
|
263
292
|
class RDFPath(Rule):
|
|
264
|
-
traversal:
|
|
293
|
+
traversal: SingleProperty | AllProperties | AllReferences | Hop
|
|
294
|
+
|
|
295
|
+
def __str__(self) -> str:
|
|
296
|
+
return f"{self.traversal}"
|
|
297
|
+
|
|
298
|
+
def __repr__(self) -> str:
|
|
299
|
+
return self.__str__()
|
|
300
|
+
|
|
301
|
+
@model_serializer(when_used="unless-none", return_type=str)
|
|
302
|
+
def as_str(self) -> str:
|
|
303
|
+
return str(self)
|
|
265
304
|
|
|
266
305
|
|
|
267
306
|
class RawLookup(RDFPath):
|
|
@@ -148,9 +148,12 @@ class AssetRules(BaseRules):
|
|
|
148
148
|
def as_domain_rules(self) -> DomainRules:
|
|
149
149
|
from ._converter import _AssetRulesConverter
|
|
150
150
|
|
|
151
|
-
return _AssetRulesConverter(
|
|
151
|
+
return _AssetRulesConverter(self.as_information_architect_rules()).as_domain_rules()
|
|
152
152
|
|
|
153
153
|
def as_dms_architect_rules(self) -> "DMSRules":
|
|
154
154
|
from ._converter import _AssetRulesConverter
|
|
155
155
|
|
|
156
|
-
return _AssetRulesConverter(
|
|
156
|
+
return _AssetRulesConverter(self.as_information_architect_rules()).as_dms_architect_rules()
|
|
157
|
+
|
|
158
|
+
def as_information_architect_rules(self) -> InformationRules:
|
|
159
|
+
return InformationRules.model_validate(self.model_dump())
|
{cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/rules/models/information/_converter.py
RENAMED
|
@@ -16,11 +16,15 @@ from cognite.neat.rules.models._constants import DMS_CONTAINER_SIZE_LIMIT
|
|
|
16
16
|
from cognite.neat.rules.models.data_types import DataType
|
|
17
17
|
from cognite.neat.rules.models.domain import DomainRules
|
|
18
18
|
from cognite.neat.rules.models.entities import (
|
|
19
|
+
AssetEntity,
|
|
20
|
+
AssetFields,
|
|
19
21
|
ClassEntity,
|
|
20
22
|
ContainerEntity,
|
|
21
23
|
DMSUnknownEntity,
|
|
24
|
+
EntityTypes,
|
|
22
25
|
MultiValueTypeInfo,
|
|
23
26
|
ReferenceEntity,
|
|
27
|
+
RelationshipEntity,
|
|
24
28
|
UnknownEntity,
|
|
25
29
|
ViewEntity,
|
|
26
30
|
ViewPropertyEntity,
|
|
@@ -29,6 +33,7 @@ from cognite.neat.rules.models.entities import (
|
|
|
29
33
|
from ._rules import InformationClass, InformationMetadata, InformationProperty, InformationRules
|
|
30
34
|
|
|
31
35
|
if TYPE_CHECKING:
|
|
36
|
+
from cognite.neat.rules.models.asset._rules import AssetRules
|
|
32
37
|
from cognite.neat.rules.models.dms._rules import DMSMetadata, DMSProperty, DMSRules
|
|
33
38
|
|
|
34
39
|
|
|
@@ -52,6 +57,28 @@ class _InformationRulesConverter:
|
|
|
52
57
|
def as_domain_rules(self) -> DomainRules:
|
|
53
58
|
raise NotImplementedError("DomainRules not implemented yet")
|
|
54
59
|
|
|
60
|
+
def as_asset_architect_rules(self) -> "AssetRules":
|
|
61
|
+
from cognite.neat.rules.models.asset._rules import AssetClass, AssetMetadata, AssetProperty, AssetRules
|
|
62
|
+
|
|
63
|
+
classes: SheetList[AssetClass] = SheetList[AssetClass](
|
|
64
|
+
data=[AssetClass(**class_.model_dump()) for class_ in self.rules.classes]
|
|
65
|
+
)
|
|
66
|
+
properties: SheetList[AssetProperty] = SheetList[AssetProperty]()
|
|
67
|
+
for prop_ in self.rules.properties:
|
|
68
|
+
if prop_.type_ == EntityTypes.data_property:
|
|
69
|
+
properties.append(
|
|
70
|
+
AssetProperty(**prop_.model_dump(), implementation=[AssetEntity(property=AssetFields.metadata)])
|
|
71
|
+
)
|
|
72
|
+
elif prop_.type_ == EntityTypes.object_property:
|
|
73
|
+
properties.append(AssetProperty(**prop_.model_dump(), implementation=[RelationshipEntity()]))
|
|
74
|
+
|
|
75
|
+
return AssetRules(
|
|
76
|
+
metadata=AssetMetadata(**self.rules.metadata.model_dump()),
|
|
77
|
+
properties=properties,
|
|
78
|
+
classes=classes,
|
|
79
|
+
prefixes=self.rules.prefixes,
|
|
80
|
+
)
|
|
81
|
+
|
|
55
82
|
def as_dms_architect_rules(self) -> "DMSRules":
|
|
56
83
|
from cognite.neat.rules.models.dms._rules import (
|
|
57
84
|
DMSContainer,
|
|
@@ -49,7 +49,7 @@ from cognite.neat.rules.models.entities import (
|
|
|
49
49
|
)
|
|
50
50
|
|
|
51
51
|
if TYPE_CHECKING:
|
|
52
|
-
from cognite.neat.rules.models
|
|
52
|
+
from cognite.neat.rules.models import AssetRules, DMSRules
|
|
53
53
|
|
|
54
54
|
|
|
55
55
|
if sys.version_info >= (3, 11):
|
|
@@ -341,6 +341,11 @@ class InformationRules(BaseRules):
|
|
|
341
341
|
|
|
342
342
|
return _InformationRulesConverter(self).as_domain_rules()
|
|
343
343
|
|
|
344
|
+
def as_asset_architect_rules(self) -> "AssetRules":
|
|
345
|
+
from ._converter import _InformationRulesConverter
|
|
346
|
+
|
|
347
|
+
return _InformationRulesConverter(self).as_asset_architect_rules()
|
|
348
|
+
|
|
344
349
|
def as_dms_architect_rules(self) -> "DMSRules":
|
|
345
350
|
from ._converter import _InformationRulesConverter
|
|
346
351
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "cognite-neat"
|
|
3
|
-
version = "0.84.
|
|
3
|
+
version = "0.84.1"
|
|
4
4
|
readme = "README.md"
|
|
5
5
|
description = "Knowledge graph transformation"
|
|
6
6
|
authors = [
|
|
@@ -70,15 +70,15 @@ tomli = { version = "^2.0.1", python = "<3.11" }
|
|
|
70
70
|
|
|
71
71
|
# API
|
|
72
72
|
uvicorn = { extras = ["standard"], version = "^0", optional = true }
|
|
73
|
-
prometheus-client = {version="^0", optional = true}
|
|
74
|
-
fastapi = {version="^0", optional = true }
|
|
73
|
+
prometheus-client = { version = "^0", optional = true }
|
|
74
|
+
fastapi = { version = "^0", optional = true }
|
|
75
75
|
|
|
76
76
|
# WorkFlow
|
|
77
|
-
schedule = {version ="^1", optional = true}
|
|
77
|
+
schedule = { version = "^1", optional = true }
|
|
78
78
|
|
|
79
79
|
# Alternative graph for NEAT Store
|
|
80
80
|
oxrdflib = { version = "^0.3.3", optional = true, extras = ["oxigraph"] }
|
|
81
|
-
pyoxigraph = {version= "0.3.19", optional = true}
|
|
81
|
+
pyoxigraph = { version = "0.3.19", optional = true }
|
|
82
82
|
|
|
83
83
|
# Only used for GoogleSheetImporter
|
|
84
84
|
gspread = { version = "*", optional = true }
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.84.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/app/api/context_manager/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/app/api/routers/data_exploration.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/app/ui/neat-app/build/asset-manifest.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/app/ui/neat-app/build/img/sme-icon.svg
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/app/ui/neat-app/build/manifest.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/graph/examples/Knowledge-Graph-Nordic44.xml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/graph/extractors/_classic_cdf/__init__.py
RENAMED
|
File without changes
|
{cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/graph/extractors/_classic_cdf/_assets.py
RENAMED
|
File without changes
|
{cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/graph/extractors/_classic_cdf/_events.py
RENAMED
|
File without changes
|
{cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/graph/extractors/_classic_cdf/_files.py
RENAMED
|
File without changes
|
{cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/graph/extractors/_classic_cdf/_labels.py
RENAMED
|
File without changes
|
|
File without changes
|
{cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/graph/extractors/_classic_cdf/_sequences.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cognite_neat-0.84.0 → cognite_neat-0.84.1}/cognite/neat/graph/extractors/_mock_graph_generator.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|