cognite-neat 0.96.0__tar.gz → 0.96.2__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.96.0 → cognite_neat-0.96.2}/PKG-INFO +1 -1
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_constants.py +11 -1
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/importers/_dms2rules.py +6 -12
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/models/dms/_exporter.py +7 -28
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_session/_base.py +31 -8
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_session/_show.py +11 -2
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_session/_to.py +9 -3
- cognite_neat-0.96.2/cognite/neat/_version.py +1 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/pyproject.toml +1 -1
- cognite_neat-0.96.0/cognite/neat/_version.py +0 -1
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/LICENSE +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/README.md +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/__init__.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/api/__init__.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/api/asgi/metrics.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/api/configuration.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/api/context_manager/__init__.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/api/context_manager/manager.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/api/data_classes/__init__.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/api/data_classes/rest.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/api/explorer.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/api/routers/configuration.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/api/routers/crud.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/api/routers/metrics.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/api/routers/workflows.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/api/utils/__init__.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/api/utils/data_mapping.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/api/utils/logging.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/api/utils/query_templates.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/main.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/monitoring/__init__.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/monitoring/metrics.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/index.html +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/.gitignore +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/README.md +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/build/asset-manifest.json +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/build/favicon.ico +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/build/img/architect-icon.svg +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/build/img/developer-icon.svg +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/build/img/sme-icon.svg +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/build/index.html +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/build/logo192.png +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/build/manifest.json +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/build/robots.txt +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/build/static/css/main.72e3d92e.css +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/build/static/css/main.72e3d92e.css.map +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/build/static/js/main.5a52cf09.js +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/build/static/js/main.5a52cf09.js.LICENSE.txt +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/build/static/js/main.5a52cf09.js.map +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/build/static/media/logo.8093b84df9ed36a174c629d6fe0b730d.svg +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/package-lock.json +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/package.json +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/public/favicon.ico +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/public/img/architect-icon.svg +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/public/img/developer-icon.svg +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/public/img/sme-icon.svg +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/public/index.html +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/public/logo192.png +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/public/manifest.json +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/public/robots.txt +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/src/App.css +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/src/App.js +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/src/App.test.js +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/src/MainContainer.tsx +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/src/components/JsonViewer.tsx +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/src/components/LocalUploader.tsx +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/src/components/OverviewComponentEditorDialog.tsx +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/src/components/StepEditorDialog.tsx +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/src/components/TabPanel.tsx +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/src/components/Utils.tsx +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/src/components/WorkflowDeleteDialog.tsx +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/src/components/WorkflowExecutionReport.tsx +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/src/components/WorkflowImportExportDialog.tsx +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/src/components/WorkflowMetadataDialog.tsx +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/src/index.css +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/src/index.js +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/src/logo.svg +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/src/reportWebVitals.js +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/src/setupTests.js +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/src/types/WorkflowTypes.ts +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/src/views/AboutView.tsx +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/src/views/ConfigView.tsx +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/src/views/GlobalConfigView.tsx +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/src/views/WorkflowView.tsx +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/tsconfig.json +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_config.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/__init__.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/_shared.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/_tracking/__init__.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/_tracking/base.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/_tracking/log.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/examples/Knowledge-Graph-Nordic44-dirty.xml +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/examples/Knowledge-Graph-Nordic44.xml +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/examples/__init__.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/examples/skos-capturing-sheet-wind-topics.xlsx +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/extractors/__init__.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/extractors/_base.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/extractors/_classic_cdf/__init__.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/extractors/_classic_cdf/_assets.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/extractors/_classic_cdf/_base.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/extractors/_classic_cdf/_classic.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/extractors/_classic_cdf/_data_sets.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/extractors/_classic_cdf/_events.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/extractors/_classic_cdf/_files.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/extractors/_classic_cdf/_labels.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/extractors/_classic_cdf/_relationships.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/extractors/_classic_cdf/_sequences.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/extractors/_classic_cdf/_timeseries.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/extractors/_dexpi.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/extractors/_dms.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/extractors/_iodd.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/extractors/_mock_graph_generator.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/extractors/_rdf_file.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/loaders/__init__.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/loaders/_base.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/loaders/_rdf2asset.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/loaders/_rdf2dms.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/models.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/queries/__init__.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/queries/_base.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/queries/_construct.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/queries/_shared.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/transformers/__init__.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/transformers/_base.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/transformers/_classic_cdf.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/transformers/_iodd.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/transformers/_prune_graph.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/transformers/_rdfpath.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/transformers/_value_type.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_issues/__init__.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_issues/_base.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_issues/errors/__init__.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_issues/errors/_external.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_issues/errors/_general.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_issues/errors/_properties.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_issues/errors/_resources.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_issues/errors/_workflow.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_issues/formatters.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_issues/warnings/__init__.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_issues/warnings/_external.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_issues/warnings/_general.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_issues/warnings/_models.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_issues/warnings/_properties.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_issues/warnings/_resources.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_issues/warnings/user_modeling.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/__init__.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/_constants.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/_shared.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/analysis/__init__.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/analysis/_asset.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/analysis/_base.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/analysis/_dms.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/analysis/_information.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/catalog/__init__.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/catalog/info-rules-imf.xlsx +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/exporters/__init__.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/exporters/_base.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/exporters/_rules2dms.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/exporters/_rules2excel.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/exporters/_rules2instance_template.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/exporters/_rules2ontology.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/exporters/_rules2yaml.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/exporters/_validation.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/importers/__init__.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/importers/_base.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/importers/_dtdl2rules/__init__.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/importers/_dtdl2rules/_unit_lookup.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/importers/_dtdl2rules/dtdl_converter.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/importers/_dtdl2rules/dtdl_importer.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/importers/_dtdl2rules/spec.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/importers/_rdf/__init__.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/importers/_rdf/_base.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/importers/_rdf/_imf2rules/__init__.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/importers/_rdf/_imf2rules/_imf2classes.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/importers/_rdf/_imf2rules/_imf2metadata.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/importers/_rdf/_imf2rules/_imf2properties.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/importers/_rdf/_imf2rules/_imf2rules.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/importers/_rdf/_inference2rules.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/importers/_rdf/_owl2rules/__init__.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/importers/_rdf/_owl2rules/_owl2classes.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/importers/_rdf/_owl2rules/_owl2metadata.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/importers/_rdf/_owl2rules/_owl2properties.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/importers/_rdf/_owl2rules/_owl2rules.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/importers/_rdf/_shared.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/importers/_spreadsheet2rules.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/importers/_yaml2rules.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/models/__init__.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/models/_base_input.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/models/_base_rules.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/models/_rdfpath.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/models/_types.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/models/asset/__init__.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/models/asset/_rules.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/models/asset/_rules_input.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/models/asset/_validation.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/models/data_types.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/models/dms/__init__.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/models/dms/_rules.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/models/dms/_rules_input.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/models/dms/_schema.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/models/dms/_validation.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/models/domain.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/models/entities/__init__.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/models/entities/_constants.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/models/entities/_loaders.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/models/entities/_multi_value.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/models/entities/_single_value.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/models/entities/_types.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/models/entities/_wrapped.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/models/information/__init__.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/models/information/_rules.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/models/information/_rules_input.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/models/information/_validation.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/models/mapping/__init__.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/models/mapping/_base.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/models/mapping/_classic2core.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/transformers/__init__.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/transformers/_base.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/transformers/_converters.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/transformers/_mapping.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/transformers/_pipelines.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_rules/transformers/_verification.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_session/__init__.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_session/_inspect.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_session/_prepare.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_session/_read.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_session/_set.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_session/_state.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_session/_wizard.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_session/exceptions.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_shared.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_store/__init__.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_store/_base.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_store/_provenance.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_utils/__init__.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_utils/auth.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_utils/auxiliary.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_utils/cdf/__init__.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_utils/cdf/data_classes.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_utils/cdf/loaders/__init__.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_utils/cdf/loaders/_base.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_utils/cdf/loaders/_data_modeling.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_utils/cdf/loaders/_ingestion.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_utils/collection_.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_utils/rdf_.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_utils/spreadsheet.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_utils/text.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_utils/time_.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_utils/upload.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_utils/xml_.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_workflows/__init__.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_workflows/base.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_workflows/cdf_store.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_workflows/examples/Export_DMS/workflow.yaml +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_workflows/examples/Export_Semantic_Data_Model/workflow.yaml +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_workflows/examples/Import_DMS/workflow.yaml +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_workflows/examples/Validate_Rules/workflow.yaml +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_workflows/examples/Validate_Solution_Model/workflow.yaml +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_workflows/manager.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_workflows/model.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_workflows/steps/__init__.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_workflows/steps/data_contracts.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_workflows/steps/lib/__init__.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_workflows/steps/lib/current/__init__.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_workflows/steps/lib/current/graph_extractor.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_workflows/steps/lib/current/graph_loader.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_workflows/steps/lib/current/graph_store.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_workflows/steps/lib/current/rules_exporter.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_workflows/steps/lib/current/rules_importer.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_workflows/steps/lib/current/rules_validator.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_workflows/steps/lib/io/__init__.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_workflows/steps/lib/io/io_steps.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_workflows/steps/step_model.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_workflows/steps_registry.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_workflows/tasks.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_workflows/triggers.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_workflows/utils.py +0 -0
- {cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/py.typed +0 -0
|
@@ -19,7 +19,17 @@ def _is_in_notebook() -> bool:
|
|
|
19
19
|
return True
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
def _is_in_browser() -> bool:
|
|
23
|
+
try:
|
|
24
|
+
from pyodide.ffi import IN_BROWSER # type: ignore [import-not-found]
|
|
25
|
+
except ModuleNotFoundError:
|
|
26
|
+
return False
|
|
27
|
+
return IN_BROWSER
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
IN_PYODIDE = _is_in_browser()
|
|
31
|
+
IN_NOTEBOOK = _is_in_notebook() or IN_PYODIDE
|
|
32
|
+
|
|
23
33
|
|
|
24
34
|
PACKAGE_DIRECTORY = Path(neat.__file__).parent
|
|
25
35
|
COGNITE_MODELS = (
|
|
@@ -346,7 +346,7 @@ class DMSImporter(BaseImporter[DMSInputRules]):
|
|
|
346
346
|
property_=prop_id,
|
|
347
347
|
description=prop.description,
|
|
348
348
|
name=prop.name,
|
|
349
|
-
connection=self._get_connection_type(
|
|
349
|
+
connection=self._get_connection_type(prop),
|
|
350
350
|
value_type=str(value_type),
|
|
351
351
|
is_list=self._get_is_list(prop),
|
|
352
352
|
nullable=self._get_nullable(prop),
|
|
@@ -367,19 +367,13 @@ class DMSImporter(BaseImporter[DMSInputRules]):
|
|
|
367
367
|
return self._all_containers_by_id[prop.container].properties[prop.container_property_identifier]
|
|
368
368
|
|
|
369
369
|
def _get_connection_type(
|
|
370
|
-
self,
|
|
370
|
+
self, prop: ViewPropertyApply
|
|
371
371
|
) -> Literal["direct"] | ReverseConnectionEntity | EdgeEntity | None:
|
|
372
|
-
if isinstance(prop, SingleEdgeConnectionApply | MultiEdgeConnectionApply)
|
|
372
|
+
if isinstance(prop, SingleEdgeConnectionApply | MultiEdgeConnectionApply):
|
|
373
373
|
properties = ViewEntity.from_id(prop.edge_source) if prop.edge_source is not None else None
|
|
374
|
-
return EdgeEntity(
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
return ReverseConnectionEntity(property=reverse_prop)
|
|
378
|
-
else:
|
|
379
|
-
properties = ViewEntity.from_id(prop.source) if prop.edge_source is not None else None
|
|
380
|
-
return EdgeEntity(
|
|
381
|
-
properties=properties, type=DMSNodeEntity.from_reference(prop.type), direction="inwards"
|
|
382
|
-
)
|
|
374
|
+
return EdgeEntity(
|
|
375
|
+
properties=properties, type=DMSNodeEntity.from_reference(prop.type), direction=prop.direction
|
|
376
|
+
)
|
|
383
377
|
elif isinstance(prop, SingleReverseDirectRelationApply | MultiReverseDirectRelationApply):
|
|
384
378
|
return ReverseConnectionEntity(property=prop.through.property)
|
|
385
379
|
elif isinstance(prop, dm.MappedPropertyApply) and isinstance(
|
|
@@ -565,7 +565,7 @@ class _DMSExporter:
|
|
|
565
565
|
return edge_cls(
|
|
566
566
|
type=cls._create_edge_type_from_prop(prop),
|
|
567
567
|
source=source_view_id,
|
|
568
|
-
direction=
|
|
568
|
+
direction=prop.connection.direction,
|
|
569
569
|
name=prop.name,
|
|
570
570
|
description=prop.description,
|
|
571
571
|
edge_source=edge_source,
|
|
@@ -580,7 +580,6 @@ class _DMSExporter:
|
|
|
580
580
|
"If this error occurs it is a bug in NEAT, please report"
|
|
581
581
|
f"Debug Info, Invalid valueType reverse connection: {prop.model_dump_json()}"
|
|
582
582
|
)
|
|
583
|
-
edge_source = None
|
|
584
583
|
reverse_prop = next(
|
|
585
584
|
(
|
|
586
585
|
prop
|
|
@@ -589,13 +588,6 @@ class _DMSExporter:
|
|
|
589
588
|
),
|
|
590
589
|
None,
|
|
591
590
|
)
|
|
592
|
-
if (
|
|
593
|
-
reverse_prop
|
|
594
|
-
and isinstance(reverse_prop.connection, EdgeEntity)
|
|
595
|
-
and reverse_prop.connection.properties is not None
|
|
596
|
-
):
|
|
597
|
-
edge_source = reverse_prop.connection.properties.as_id()
|
|
598
|
-
|
|
599
591
|
if reverse_prop is None:
|
|
600
592
|
warnings.warn(
|
|
601
593
|
PropertyNotFoundWarning(
|
|
@@ -608,30 +600,17 @@ class _DMSExporter:
|
|
|
608
600
|
stacklevel=2,
|
|
609
601
|
)
|
|
610
602
|
|
|
611
|
-
if reverse_prop
|
|
612
|
-
|
|
613
|
-
dm.MultiEdgeConnectionApply if prop.is_list in [True, None] else SingleEdgeConnectionApply
|
|
614
|
-
)
|
|
615
|
-
return inwards_edge_cls(
|
|
616
|
-
type=cls._create_edge_type_from_prop(reverse_prop or prop),
|
|
617
|
-
source=source_view_id,
|
|
618
|
-
name=prop.name,
|
|
619
|
-
description=prop.description,
|
|
620
|
-
direction="inwards",
|
|
621
|
-
edge_source=edge_source,
|
|
622
|
-
)
|
|
623
|
-
elif reverse_prop and reverse_prop.connection == "direct":
|
|
624
|
-
reverse_direct_cls = (
|
|
625
|
-
dm.MultiReverseDirectRelationApply
|
|
626
|
-
if prop.is_list in [True, None]
|
|
627
|
-
else SingleReverseDirectRelationApply
|
|
628
|
-
)
|
|
629
|
-
return reverse_direct_cls(
|
|
603
|
+
if reverse_prop and reverse_prop.connection == "direct":
|
|
604
|
+
args: dict[str, Any] = dict(
|
|
630
605
|
source=source_view_id,
|
|
631
606
|
through=dm.PropertyId(source=source_view_id, property=reverse_prop_id),
|
|
632
607
|
name=prop.name,
|
|
633
608
|
description=prop.description,
|
|
634
609
|
)
|
|
610
|
+
if prop.is_list in [True, None]:
|
|
611
|
+
return dm.MultiReverseDirectRelationApply(**args)
|
|
612
|
+
else:
|
|
613
|
+
return SingleReverseDirectRelationApply(**args)
|
|
635
614
|
else:
|
|
636
615
|
return None
|
|
637
616
|
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
from typing import Literal, cast
|
|
2
2
|
|
|
3
3
|
from cognite.client import CogniteClient
|
|
4
|
+
from cognite.client import data_modeling as dm
|
|
4
5
|
|
|
5
6
|
from cognite.neat import _version
|
|
6
7
|
from cognite.neat._issues import IssueList
|
|
7
8
|
from cognite.neat._rules import importers
|
|
8
9
|
from cognite.neat._rules._shared import ReadRules
|
|
10
|
+
from cognite.neat._rules.importers._rdf._base import DEFAULT_NON_EXISTING_NODE_TYPE
|
|
9
11
|
from cognite.neat._rules.models import DMSRules
|
|
12
|
+
from cognite.neat._rules.models.data_types import AnyURI
|
|
13
|
+
from cognite.neat._rules.models.entities._single_value import UnknownEntity
|
|
10
14
|
from cognite.neat._rules.models.information._rules import InformationRules
|
|
11
15
|
from cognite.neat._rules.models.information._rules_input import InformationInputRules
|
|
12
16
|
from cognite.neat._rules.transformers import ConvertToRules, VerifyAnyRules
|
|
@@ -51,7 +55,7 @@ class NeatSession:
|
|
|
51
55
|
self._state.store.add_rules(output.rules)
|
|
52
56
|
self._state.issue_lists.append(output.issues)
|
|
53
57
|
if output.issues:
|
|
54
|
-
print("You can inspect the issues with the .inspect
|
|
58
|
+
print("You can inspect the issues with the .inspect.issues(...) method.")
|
|
55
59
|
return output.issues
|
|
56
60
|
|
|
57
61
|
def convert(self, target: Literal["dms"]) -> None:
|
|
@@ -62,15 +66,34 @@ class NeatSession:
|
|
|
62
66
|
|
|
63
67
|
def infer(
|
|
64
68
|
self,
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
69
|
+
model_id: dm.DataModelId | tuple[str, str, str] = (
|
|
70
|
+
"neat_space",
|
|
71
|
+
"NeatInferredDataModel",
|
|
72
|
+
"v1",
|
|
73
|
+
),
|
|
74
|
+
non_existing_node_type: UnknownEntity | AnyURI = DEFAULT_NON_EXISTING_NODE_TYPE,
|
|
68
75
|
) -> IssueList:
|
|
69
|
-
|
|
76
|
+
"""Data model inference from instances.
|
|
70
77
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
78
|
+
Args:
|
|
79
|
+
model_id: The ID of the inferred data model.
|
|
80
|
+
non_existing_node_type: The type of node to use when type of node is not possible to determine.
|
|
81
|
+
"""
|
|
82
|
+
|
|
83
|
+
model_id = dm.DataModelId.load(model_id)
|
|
84
|
+
|
|
85
|
+
input_rules: ReadRules = importers.InferenceImporter.from_graph_store(
|
|
86
|
+
store=self._state.store,
|
|
87
|
+
non_existing_node_type=non_existing_node_type,
|
|
88
|
+
).to_rules()
|
|
89
|
+
|
|
90
|
+
if model_id.space:
|
|
91
|
+
cast(InformationInputRules, input_rules.rules).metadata.prefix = model_id.space
|
|
92
|
+
if model_id.external_id:
|
|
93
|
+
cast(InformationInputRules, input_rules.rules).metadata.name = model_id.external_id
|
|
94
|
+
|
|
95
|
+
if model_id.version:
|
|
96
|
+
cast(InformationInputRules, input_rules.rules).metadata.version = model_id.version
|
|
74
97
|
|
|
75
98
|
self.read.rdf._store_rules(self._state.store, input_rules, "Data Model Inference")
|
|
76
99
|
return input_rules.issues
|
|
@@ -3,9 +3,10 @@ import random
|
|
|
3
3
|
from typing import Any, cast
|
|
4
4
|
|
|
5
5
|
import networkx as nx
|
|
6
|
+
from IPython.display import HTML, display
|
|
6
7
|
from pyvis.network import Network as PyVisNetwork # type: ignore
|
|
7
8
|
|
|
8
|
-
from cognite.neat._constants import IN_NOTEBOOK
|
|
9
|
+
from cognite.neat._constants import IN_NOTEBOOK, IN_PYODIDE
|
|
9
10
|
from cognite.neat._rules._constants import EntityTypes
|
|
10
11
|
from cognite.neat._rules.models.dms._rules import DMSRules
|
|
11
12
|
from cognite.neat._rules.models.entities._single_value import ClassEntity, ViewEntity
|
|
@@ -31,6 +32,9 @@ class ShowBaseAPI:
|
|
|
31
32
|
self._state = state
|
|
32
33
|
|
|
33
34
|
def _generate_visualization(self, di_graph: nx.DiGraph, name: str) -> Any:
|
|
35
|
+
if not IN_NOTEBOOK:
|
|
36
|
+
raise NeatSessionError("Visualization is only available in Jupyter notebooks!")
|
|
37
|
+
|
|
34
38
|
net = PyVisNetwork(
|
|
35
39
|
notebook=IN_NOTEBOOK,
|
|
36
40
|
cdn_resources="remote",
|
|
@@ -50,7 +54,12 @@ class ShowBaseAPI:
|
|
|
50
54
|
)
|
|
51
55
|
|
|
52
56
|
net.from_nx(di_graph)
|
|
53
|
-
|
|
57
|
+
if IN_PYODIDE:
|
|
58
|
+
net.write_html(name)
|
|
59
|
+
return display(HTML(name))
|
|
60
|
+
|
|
61
|
+
else:
|
|
62
|
+
return net.show(name)
|
|
54
63
|
|
|
55
64
|
|
|
56
65
|
@intercept_session_exceptions
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from pathlib import Path
|
|
2
|
-
from typing import Any, overload
|
|
2
|
+
from typing import Any, Literal, overload
|
|
3
3
|
|
|
4
4
|
from cognite.client import CogniteClient
|
|
5
5
|
|
|
@@ -61,11 +61,17 @@ class CDFToAPI:
|
|
|
61
61
|
|
|
62
62
|
return loader.load_into_cdf(self._client)
|
|
63
63
|
|
|
64
|
-
def data_model(self):
|
|
64
|
+
def data_model(self, existing_handling: Literal["fail", "skip", "update", "force"] = "skip"):
|
|
65
|
+
"""Export the verified DMS data model to CDF.
|
|
66
|
+
|
|
67
|
+
Args:
|
|
68
|
+
existing_handling: How to handle if component of data model exists. Defaults to "skip".
|
|
69
|
+
|
|
70
|
+
"""
|
|
65
71
|
if not self._state.last_verified_dms_rules:
|
|
66
72
|
raise ValueError("No verified DMS data model available")
|
|
67
73
|
|
|
68
|
-
exporter = exporters.DMSExporter()
|
|
74
|
+
exporter = exporters.DMSExporter(existing_handling=existing_handling)
|
|
69
75
|
|
|
70
76
|
if not self._client:
|
|
71
77
|
raise ValueError("No client provided!")
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.96.2"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.96.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/api/context_manager/__init__.py
RENAMED
|
File without changes
|
{cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/api/context_manager/manager.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
|
{cognite_neat-0.96.0 → cognite_neat-0.96.2}/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.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/build/img/sme-icon.svg
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cognite_neat-0.96.0 → cognite_neat-0.96.2}/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
|
{cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/public/favicon.ico
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/public/img/sme-icon.svg
RENAMED
|
File without changes
|
|
File without changes
|
{cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/public/logo192.png
RENAMED
|
File without changes
|
{cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/public/manifest.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/src/MainContainer.tsx
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/src/components/Utils.tsx
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.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/src/reportWebVitals.js
RENAMED
|
File without changes
|
|
File without changes
|
{cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/src/types/WorkflowTypes.ts
RENAMED
|
File without changes
|
{cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/src/views/AboutView.tsx
RENAMED
|
File without changes
|
{cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/src/views/ConfigView.tsx
RENAMED
|
File without changes
|
|
File without changes
|
{cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_app/ui/neat-app/src/views/WorkflowView.tsx
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.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/extractors/_classic_cdf/__init__.py
RENAMED
|
File without changes
|
{cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/extractors/_classic_cdf/_assets.py
RENAMED
|
File without changes
|
{cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/extractors/_classic_cdf/_base.py
RENAMED
|
File without changes
|
{cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/extractors/_classic_cdf/_classic.py
RENAMED
|
File without changes
|
|
File without changes
|
{cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/extractors/_classic_cdf/_events.py
RENAMED
|
File without changes
|
{cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/extractors/_classic_cdf/_files.py
RENAMED
|
File without changes
|
{cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/extractors/_classic_cdf/_labels.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.96.0 → cognite_neat-0.96.2}/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
|
{cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/transformers/_classic_cdf.py
RENAMED
|
File without changes
|
|
File without changes
|
{cognite_neat-0.96.0 → cognite_neat-0.96.2}/cognite/neat/_graph/transformers/_prune_graph.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
|