cognite-neat 0.85.0__tar.gz → 0.85.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.85.0 → cognite_neat-0.85.1}/PKG-INFO +1 -1
- cognite_neat-0.85.1/cognite/neat/_version.py +1 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/graph/extractors/_classic_cdf/_files.py +10 -3
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/graph/queries/_base.py +24 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/importers/_inference2rules.py +3 -3
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/utils/auth.py +19 -12
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/pyproject.toml +1 -1
- cognite_neat-0.85.0/cognite/neat/_version.py +0 -1
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/LICENSE +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/README.md +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/_shared.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/app/api/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/app/api/asgi/metrics.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/app/api/configuration.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/app/api/context_manager/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/app/api/context_manager/manager.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/app/api/data_classes/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/app/api/data_classes/rest.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/app/api/explorer.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/app/api/routers/configuration.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/app/api/routers/core.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/app/api/routers/crud.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/app/api/routers/data_exploration.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/app/api/routers/metrics.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/app/api/routers/rules.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/app/api/routers/workflows.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/app/api/utils/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/app/api/utils/data_mapping.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/app/api/utils/logging.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/app/api/utils/query_templates.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/app/main.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/app/monitoring/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/app/monitoring/metrics.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/app/ui/index.html +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/app/ui/neat-app/.gitignore +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/app/ui/neat-app/README.md +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/app/ui/neat-app/build/asset-manifest.json +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/app/ui/neat-app/build/favicon.ico +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/app/ui/neat-app/build/img/architect-icon.svg +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/app/ui/neat-app/build/img/developer-icon.svg +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/app/ui/neat-app/build/img/sme-icon.svg +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/app/ui/neat-app/build/index.html +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/app/ui/neat-app/build/logo192.png +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/app/ui/neat-app/build/manifest.json +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/app/ui/neat-app/build/robots.txt +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/app/ui/neat-app/build/static/css/main.38a62222.css +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/app/ui/neat-app/build/static/css/main.38a62222.css.map +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/app/ui/neat-app/build/static/js/main.ec7f72e2.js +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/app/ui/neat-app/build/static/js/main.ec7f72e2.js.LICENSE.txt +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/app/ui/neat-app/build/static/js/main.ec7f72e2.js.map +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/app/ui/neat-app/build/static/media/logo.8093b84df9ed36a174c629d6fe0b730d.svg +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/config.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/constants.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/exceptions.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/graph/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/graph/_shared.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/graph/_tracking/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/graph/_tracking/base.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/graph/_tracking/log.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/graph/examples/Knowledge-Graph-Nordic44-dirty.xml +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/graph/examples/Knowledge-Graph-Nordic44.xml +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/graph/examples/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/graph/examples/skos-capturing-sheet-wind-topics.xlsx +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/graph/exceptions.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/graph/extractors/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/graph/extractors/_base.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/graph/extractors/_classic_cdf/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/graph/extractors/_classic_cdf/_assets.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/graph/extractors/_classic_cdf/_events.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/graph/extractors/_classic_cdf/_labels.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/graph/extractors/_classic_cdf/_relationships.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/graph/extractors/_classic_cdf/_sequences.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/graph/extractors/_classic_cdf/_timeseries.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/graph/extractors/_dexpi.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/graph/extractors/_mock_graph_generator.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/graph/extractors/_rdf_file.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/graph/issues/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/graph/issues/loader.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/graph/loaders/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/graph/loaders/_base.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/graph/loaders/_rdf2asset.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/graph/loaders/_rdf2dms.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/graph/models.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/graph/queries/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/graph/queries/_construct.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/graph/queries/_shared.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/graph/stores/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/graph/stores/_base.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/graph/stores/_oxrdflib.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/graph/stores/_provenance.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/graph/transformers/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/graph/transformers/_base.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/graph/transformers/_classic_cdf.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/issues.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/graph/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/graph/examples/Knowledge-Graph-Nordic44-dirty.xml +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/graph/examples/Knowledge-Graph-Nordic44.xml +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/graph/examples/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/graph/examples/skos-capturing-sheet-wind-topics.xlsx +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/graph/exceptions.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/graph/extractors/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/graph/extractors/_base.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/graph/extractors/_dexpi.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/graph/extractors/_graph_capturing_sheet.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/graph/extractors/_mock_graph_generator.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/graph/loaders/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/graph/loaders/_asset_loader.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/graph/loaders/_base.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/graph/loaders/_exceptions.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/graph/loaders/core/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/graph/loaders/core/labels.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/graph/loaders/core/models.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/graph/loaders/core/rdf_to_assets.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/graph/loaders/core/rdf_to_relationships.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/graph/loaders/rdf_to_dms.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/graph/loaders/validator.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/graph/models.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/graph/stores/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/graph/stores/_base.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/graph/stores/_graphdb_store.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/graph/stores/_memory_store.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/graph/stores/_oxigraph_store.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/graph/stores/_oxrdflib.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/graph/stores/_rdf_to_graph.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/graph/transformations/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/graph/transformations/entity_matcher.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/graph/transformations/query_generator/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/graph/transformations/query_generator/sparql.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/graph/transformations/transformer.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/analysis.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/examples/Rules-Nordic44-to-TNT.xlsx +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/examples/Rules-Nordic44-to-graphql.xlsx +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/examples/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/examples/power-grid-containers.yaml +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/examples/power-grid-example.xlsx +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/examples/power-grid-model.yaml +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/examples/rules-template.xlsx +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/examples/sheet2cdf-transformation-rules.xlsx +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/examples/skos-rules.xlsx +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/examples/source-to-solution-mapping-rules.xlsx +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/examples/wind-energy.owl +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/exceptions.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/exporters/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/exporters/_base.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/exporters/_core/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/exporters/_core/rules2labels.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/exporters/_rules2dms.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/exporters/_rules2excel.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/exporters/_rules2graphql.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/exporters/_rules2ontology.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/exporters/_rules2pydantic_models.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/exporters/_rules2rules.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/exporters/_rules2triples.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/exporters/_validation.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/importers/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/importers/_base.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/importers/_dict2rules.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/importers/_dms2rules.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/importers/_graph2rules.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/importers/_json2rules.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/importers/_owl2rules/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/importers/_owl2rules/_owl2classes.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/importers/_owl2rules/_owl2metadata.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/importers/_owl2rules/_owl2properties.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/importers/_owl2rules/_owl2rules.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/importers/_spreadsheet2rules.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/importers/_xsd2rules.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/importers/_yaml2rules.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/models/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/models/_base.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/models/raw_rules.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/models/rdfpath.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/models/rules.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/models/tables.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/models/value_types.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/workflows/examples/Export_DMS/workflow.yaml +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/workflows/examples/Export_Rules_to_Ontology/workflow.yaml +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/workflows/examples/Extract_DEXPI_Graph_and_Export_Rules/workflow.yaml +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/workflows/examples/Extract_RDF_Graph_and_Generate_Assets/workflow.yaml +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/workflows/examples/Import_DMS/workflow.yaml +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/workflows/examples/Ontology_to_Data_Model/workflow.yaml +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/workflows/examples/Validate_Rules/workflow.yaml +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/workflows/examples/Validate_Solution_Model/workflow.yaml +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/workflows/examples/Visualize_Data_Model_Using_Mock_Graph/workflow.yaml +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/workflows/examples/Visualize_Semantic_Data_Model/workflow.yaml +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/py.typed +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/_shared.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/analysis/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/analysis/_base.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/analysis/_information_rules.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/examples/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/examples/wind-energy.owl +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/exceptions.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/exporters/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/exporters/_base.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/exporters/_rules2dms.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/exporters/_rules2excel.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/exporters/_rules2ontology.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/exporters/_rules2yaml.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/exporters/_validation.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/importers/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/importers/_base.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/importers/_dms2rules.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/importers/_dtdl2rules/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/importers/_dtdl2rules/_unit_lookup.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/importers/_dtdl2rules/dtdl_converter.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/importers/_dtdl2rules/dtdl_importer.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/importers/_dtdl2rules/spec.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/importers/_owl2rules/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/importers/_owl2rules/_owl2classes.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/importers/_owl2rules/_owl2metadata.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/importers/_owl2rules/_owl2properties.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/importers/_owl2rules/_owl2rules.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/importers/_spreadsheet2rules.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/importers/_yaml2rules.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/issues/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/issues/base.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/issues/dms.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/issues/fileread.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/issues/formatters.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/issues/importing.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/issues/spreadsheet.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/issues/spreadsheet_file.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/models/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/models/_base.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/models/_constants.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/models/_rdfpath.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/models/_types/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/models/_types/_base.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/models/_types/_field.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/models/asset/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/models/asset/_converter.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/models/asset/_rules.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/models/asset/_rules_input.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/models/asset/_serializer.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/models/asset/_validation.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/models/data_types.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/models/dms/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/models/dms/_converter.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/models/dms/_exporter.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/models/dms/_rules.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/models/dms/_rules_input.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/models/dms/_schema.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/models/dms/_serializer.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/models/dms/_validation.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/models/domain.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/models/entities.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/models/information/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/models/information/_converter.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/models/information/_rules.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/models/information/_rules_input.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/models/information/_serializer.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/models/information/_validation.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/models/wrapped_entities.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/utils/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/utils/auxiliary.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/utils/cdf.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/utils/cdf_classes.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/utils/cdf_loaders/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/utils/cdf_loaders/_base.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/utils/cdf_loaders/_data_modeling.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/utils/cdf_loaders/_ingestion.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/utils/cdf_loaders/data_classes.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/utils/exceptions.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/utils/spreadsheet.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/utils/text.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/utils/upload.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/utils/utils.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/utils/xml_.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/workflows/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/workflows/_exceptions.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/workflows/base.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/workflows/cdf_store.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/workflows/examples/Export_DMS/workflow.yaml +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/workflows/examples/Export_Rules_to_Ontology/workflow.yaml +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/workflows/examples/Extract_DEXPI_Graph_and_Export_Rules/workflow.yaml +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/workflows/examples/Extract_RDF_Graph_and_Generate_Assets/workflow.yaml +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/workflows/examples/Import_DMS/workflow.yaml +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/workflows/examples/Ontology_to_Data_Model/workflow.yaml +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/workflows/examples/Validate_Rules/workflow.yaml +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/workflows/examples/Validate_Solution_Model/workflow.yaml +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/workflows/examples/Visualize_Data_Model_Using_Mock_Graph/workflow.yaml +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/workflows/examples/Visualize_Semantic_Data_Model/workflow.yaml +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/workflows/manager.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/workflows/migration/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/workflows/migration/steps.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/workflows/migration/wf_manifests.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/workflows/model.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/workflows/steps/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/workflows/steps/data_contracts.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/workflows/steps/lib/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/workflows/steps/lib/current/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/workflows/steps/lib/current/graph_extractor.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/workflows/steps/lib/current/graph_loader.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/workflows/steps/lib/current/graph_store.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/workflows/steps/lib/current/rules_exporter.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/workflows/steps/lib/current/rules_importer.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/workflows/steps/lib/current/rules_validator.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/workflows/steps/lib/io/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/workflows/steps/lib/io/io_steps.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/workflows/steps/lib/legacy/__init__.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/workflows/steps/lib/legacy/graph_contextualization.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/workflows/steps/lib/legacy/graph_extractor.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/workflows/steps/lib/legacy/graph_loader.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/workflows/steps/lib/legacy/graph_store.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/workflows/steps/lib/legacy/graph_transformer.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/workflows/steps/lib/legacy/rules_exporter.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/workflows/steps/lib/legacy/rules_importer.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/workflows/steps/step_model.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/workflows/steps_registry.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/workflows/tasks.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/workflows/triggers.py +0 -0
- {cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/workflows/utils.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.85.1"
|
{cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/graph/extractors/_classic_cdf/_files.py
RENAMED
|
@@ -16,13 +16,20 @@ from cognite.neat.utils.utils import string_to_ideal_type
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
class FilesExtractor(BaseExtractor):
|
|
19
|
+
"""Extract data from Cognite Data Fusions files metadata into Neat.
|
|
20
|
+
|
|
21
|
+
Args:
|
|
22
|
+
files_metadata (Iterable[FileMetadata]): An iterable of files metadata.
|
|
23
|
+
namespace (Namespace, optional): The namespace to use. Defaults to DEFAULT_NAMESPACE.
|
|
24
|
+
"""
|
|
25
|
+
|
|
19
26
|
def __init__(
|
|
20
27
|
self,
|
|
21
|
-
|
|
28
|
+
files_metadata: Iterable[FileMetadata],
|
|
22
29
|
namespace: Namespace | None = None,
|
|
23
30
|
):
|
|
24
31
|
self.namespace = namespace or DEFAULT_NAMESPACE
|
|
25
|
-
self.
|
|
32
|
+
self.files_metadata = files_metadata
|
|
26
33
|
|
|
27
34
|
@classmethod
|
|
28
35
|
def from_dataset(
|
|
@@ -39,7 +46,7 @@ class FilesExtractor(BaseExtractor):
|
|
|
39
46
|
|
|
40
47
|
def extract(self) -> Iterable[Triple]:
|
|
41
48
|
"""Extract files metadata as triples."""
|
|
42
|
-
for event in self.
|
|
49
|
+
for event in self.files_metadata:
|
|
43
50
|
yield from self._file2triples(event, self.namespace)
|
|
44
51
|
|
|
45
52
|
@classmethod
|
|
@@ -97,3 +97,27 @@ class Queries:
|
|
|
97
97
|
else:
|
|
98
98
|
warnings.warn("No rules found for the graph store, returning empty list.", stacklevel=2)
|
|
99
99
|
return []
|
|
100
|
+
|
|
101
|
+
def list_triples(self, limit: int = 25) -> list[ResultRow]:
|
|
102
|
+
"""List triples in the graph store
|
|
103
|
+
|
|
104
|
+
Args:
|
|
105
|
+
limit: Max number of triples to return, by default 25
|
|
106
|
+
|
|
107
|
+
Returns:
|
|
108
|
+
List of triples
|
|
109
|
+
"""
|
|
110
|
+
query = f"SELECT ?subject ?predicate ?object WHERE {{ ?subject ?predicate ?object }} LIMIT {limit}"
|
|
111
|
+
return cast(list[ResultRow], list(self.graph.query(query)))
|
|
112
|
+
|
|
113
|
+
def list_types(self, limit: int = 25) -> list[ResultRow]:
|
|
114
|
+
"""List types in the graph store
|
|
115
|
+
|
|
116
|
+
Args:
|
|
117
|
+
limit: Max number of types to return, by default 25
|
|
118
|
+
|
|
119
|
+
Returns:
|
|
120
|
+
List of types
|
|
121
|
+
"""
|
|
122
|
+
query = f"SELECT DISTINCT ?type WHERE {{ ?subject a ?type }} LIMIT {limit}"
|
|
123
|
+
return cast(list[ResultRow], list(self.graph.query(query)))
|
{cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/rules/importers/_inference2rules.py
RENAMED
|
@@ -7,7 +7,7 @@ from rdflib import Graph, Namespace, URIRef
|
|
|
7
7
|
from rdflib import Literal as RdfLiteral
|
|
8
8
|
|
|
9
9
|
import cognite.neat.rules.issues as issues
|
|
10
|
-
from cognite.neat.constants import PREFIXES
|
|
10
|
+
from cognite.neat.constants import DEFAULT_NAMESPACE, PREFIXES
|
|
11
11
|
from cognite.neat.graph.stores import NeatGraphStore
|
|
12
12
|
from cognite.neat.rules.importers._base import BaseImporter, Rules, _handle_issues
|
|
13
13
|
from cognite.neat.rules.issues import IssueList
|
|
@@ -246,8 +246,8 @@ class InferenceImporter(BaseImporter):
|
|
|
246
246
|
created=datetime.now(),
|
|
247
247
|
updated=datetime.now(),
|
|
248
248
|
description="Inferred model from knowledge graph",
|
|
249
|
-
prefix="
|
|
250
|
-
namespace=
|
|
249
|
+
prefix="neat",
|
|
250
|
+
namespace=DEFAULT_NAMESPACE,
|
|
251
251
|
)
|
|
252
252
|
|
|
253
253
|
@classmethod
|
|
@@ -18,7 +18,9 @@ _VALID_LOGIN_FLOWS = get_args(_LOGIN_FLOW)
|
|
|
18
18
|
_CLIENT_NAME = f"CogniteNeat:{_version.__version__}"
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
def get_cognite_client() -> CogniteClient:
|
|
21
|
+
def get_cognite_client(env_file_name: str = ".env") -> CogniteClient:
|
|
22
|
+
if not env_file_name.endswith(".env"):
|
|
23
|
+
raise ValueError("env_file_name must end with '.env'")
|
|
22
24
|
with suppress(KeyError):
|
|
23
25
|
variables = _EnvironmentVariables.create_from_environ()
|
|
24
26
|
return variables.get_client()
|
|
@@ -26,16 +28,16 @@ def get_cognite_client() -> CogniteClient:
|
|
|
26
28
|
repo_root = _repo_root()
|
|
27
29
|
if repo_root:
|
|
28
30
|
with suppress(KeyError, FileNotFoundError, TypeError):
|
|
29
|
-
variables = _from_dotenv(repo_root /
|
|
31
|
+
variables = _from_dotenv(repo_root / env_file_name)
|
|
30
32
|
client = variables.get_client()
|
|
31
33
|
print("Found .env file in repository root. Loaded variables from .env file.")
|
|
32
34
|
return client
|
|
33
35
|
variables = _prompt_user()
|
|
34
|
-
if repo_root and _env_in_gitignore(repo_root):
|
|
36
|
+
if repo_root and _env_in_gitignore(repo_root, env_file_name):
|
|
35
37
|
local_import("rich", "jupyter")
|
|
36
38
|
from rich.prompt import Prompt
|
|
37
39
|
|
|
38
|
-
env_file = repo_root /
|
|
40
|
+
env_file = repo_root / env_file_name
|
|
39
41
|
answer = Prompt.ask(
|
|
40
42
|
"Do you store the variables in an .env file in the repository root for easy reuse?", choices=["y", "n"]
|
|
41
43
|
)
|
|
@@ -88,7 +90,7 @@ class _EnvironmentVariables:
|
|
|
88
90
|
@property
|
|
89
91
|
def idp_scopes(self) -> list[str]:
|
|
90
92
|
if self.IDP_SCOPES:
|
|
91
|
-
return self.IDP_SCOPES.split()
|
|
93
|
+
return self.IDP_SCOPES.split(",")
|
|
92
94
|
return [f"https://{self.CDF_CLUSTER}.cognitedata.com/.default"]
|
|
93
95
|
|
|
94
96
|
@property
|
|
@@ -187,7 +189,7 @@ class _EnvironmentVariables:
|
|
|
187
189
|
value = getattr(self, name)
|
|
188
190
|
if value is not None:
|
|
189
191
|
if isinstance(value, list):
|
|
190
|
-
value = "
|
|
192
|
+
value = ",".join(value)
|
|
191
193
|
lines.append(f"{field.name}={value}")
|
|
192
194
|
return "\n".join(lines)
|
|
193
195
|
|
|
@@ -199,7 +201,7 @@ def _from_dotenv(evn_file: Path) -> _EnvironmentVariables:
|
|
|
199
201
|
valid_variables = {f.name for f in fields(_EnvironmentVariables)}
|
|
200
202
|
variables: dict[str, str] = {}
|
|
201
203
|
for line in content.splitlines():
|
|
202
|
-
if line.startswith("#") or not line:
|
|
204
|
+
if line.startswith("#") or "=" not in line:
|
|
203
205
|
continue
|
|
204
206
|
key, value = line.split("=", 1)
|
|
205
207
|
if key in valid_variables:
|
|
@@ -241,8 +243,13 @@ def _prompt_user() -> _EnvironmentVariables:
|
|
|
241
243
|
token_url = Prompt.ask("Enter IDP_TOKEN_URL")
|
|
242
244
|
variables.IDP_TOKEN_URL = token_url
|
|
243
245
|
optional = ["IDP_AUDIENCE", "IDP_SCOPES"]
|
|
244
|
-
else:
|
|
245
|
-
|
|
246
|
+
else: # login_flow == "interactive"
|
|
247
|
+
tenant_id = Prompt.ask("Enter IDP_TENANT_ID (leave empty to enter IDP_AUTHORITY_URL instead)")
|
|
248
|
+
if tenant_id:
|
|
249
|
+
variables.IDP_TENANT_ID = tenant_id
|
|
250
|
+
else:
|
|
251
|
+
variables.IDP_AUTHORITY_URL = Prompt.ask("Enter IDP_TOKEN_URL")
|
|
252
|
+
optional = ["IDP_SCOPES"]
|
|
246
253
|
|
|
247
254
|
defaults = "".join(f"\n - {name}: {getattr(variables, name.lower())}" for name in optional)
|
|
248
255
|
use_defaults = Prompt.ask(
|
|
@@ -284,15 +291,15 @@ def _repo_root() -> Path | None:
|
|
|
284
291
|
return None
|
|
285
292
|
|
|
286
293
|
|
|
287
|
-
def _env_in_gitignore(repo_root: Path) -> bool:
|
|
294
|
+
def _env_in_gitignore(repo_root: Path, env_file_name: str) -> bool:
|
|
288
295
|
ignore_file = repo_root / ".gitignore"
|
|
289
296
|
if not ignore_file.exists():
|
|
290
297
|
return False
|
|
291
298
|
else:
|
|
292
299
|
ignored = {line.strip() for line in ignore_file.read_text().splitlines()}
|
|
293
|
-
return
|
|
300
|
+
return env_file_name in ignored or "*.env" in ignored
|
|
294
301
|
|
|
295
302
|
|
|
296
303
|
if __name__ == "__main__":
|
|
297
|
-
c =
|
|
304
|
+
c = get_cognite_client()
|
|
298
305
|
print(c.iam.token.inspect())
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.85.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.85.0 → cognite_neat-0.85.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.85.0 → cognite_neat-0.85.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.85.0 → cognite_neat-0.85.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.85.0 → cognite_neat-0.85.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.85.0 → cognite_neat-0.85.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.85.0 → cognite_neat-0.85.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.85.0 → cognite_neat-0.85.1}/cognite/neat/graph/extractors/_classic_cdf/__init__.py
RENAMED
|
File without changes
|
{cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/graph/extractors/_classic_cdf/_assets.py
RENAMED
|
File without changes
|
{cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/graph/extractors/_classic_cdf/_events.py
RENAMED
|
File without changes
|
{cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/graph/extractors/_classic_cdf/_labels.py
RENAMED
|
File without changes
|
|
File without changes
|
{cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/graph/extractors/_classic_cdf/_sequences.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cognite_neat-0.85.0 → cognite_neat-0.85.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
|
|
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.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/graph/extractors/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/graph/loaders/_asset_loader.py
RENAMED
|
File without changes
|
|
File without changes
|
{cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/graph/loaders/_exceptions.py
RENAMED
|
File without changes
|
{cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/graph/loaders/core/__init__.py
RENAMED
|
File without changes
|
{cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/graph/loaders/core/labels.py
RENAMED
|
File without changes
|
{cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/graph/loaders/core/models.py
RENAMED
|
File without changes
|
{cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/graph/loaders/core/rdf_to_assets.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/graph/stores/_graphdb_store.py
RENAMED
|
File without changes
|
{cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/graph/stores/_memory_store.py
RENAMED
|
File without changes
|
{cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/graph/stores/_oxigraph_store.py
RENAMED
|
File without changes
|
|
File without changes
|
{cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/graph/stores/_rdf_to_graph.py
RENAMED
|
File without changes
|
{cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/graph/transformations/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/graph/transformations/transformer.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.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/examples/power-grid-model.yaml
RENAMED
|
File without changes
|
{cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/examples/rules-template.xlsx
RENAMED
|
File without changes
|
|
File without changes
|
{cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/examples/skos-rules.xlsx
RENAMED
|
File without changes
|
|
File without changes
|
{cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/examples/wind-energy.owl
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/exporters/_core/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/exporters/_rules2dms.py
RENAMED
|
File without changes
|
{cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/exporters/_rules2excel.py
RENAMED
|
File without changes
|
{cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/exporters/_rules2graphql.py
RENAMED
|
File without changes
|
{cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/exporters/_rules2ontology.py
RENAMED
|
File without changes
|
|
File without changes
|
{cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/exporters/_rules2rules.py
RENAMED
|
File without changes
|
{cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/exporters/_rules2triples.py
RENAMED
|
File without changes
|
{cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/exporters/_validation.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/importers/_dict2rules.py
RENAMED
|
File without changes
|
{cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/importers/_dms2rules.py
RENAMED
|
File without changes
|
{cognite_neat-0.85.0 → cognite_neat-0.85.1}/cognite/neat/legacy/rules/importers/_graph2rules.py
RENAMED
|
File without changes
|