cognite-neat 0.88.1__tar.gz → 0.88.3__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.88.1 → cognite_neat-0.88.3}/PKG-INFO +1 -1
- cognite_neat-0.88.3/cognite/neat/_version.py +1 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/graph/loaders/_base.py +6 -6
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/graph/loaders/_rdf2asset.py +28 -31
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/graph/loaders/_rdf2dms.py +24 -15
- cognite_neat-0.88.3/cognite/neat/issues/__init__.py +14 -0
- cognite_neat-0.88.3/cognite/neat/issues/_base.py +415 -0
- cognite_neat-0.88.3/cognite/neat/issues/errors/__init__.py +72 -0
- cognite_neat-0.88.3/cognite/neat/issues/errors/_external.py +67 -0
- cognite_neat-0.88.3/cognite/neat/issues/errors/_general.py +28 -0
- cognite_neat-0.88.3/cognite/neat/issues/errors/_properties.py +62 -0
- cognite_neat-0.88.3/cognite/neat/issues/errors/_resources.py +111 -0
- cognite_neat-0.88.3/cognite/neat/issues/errors/_workflow.py +36 -0
- {cognite_neat-0.88.1/cognite/neat/rules → cognite_neat-0.88.3/cognite/neat}/issues/formatters.py +10 -10
- cognite_neat-0.88.3/cognite/neat/issues/warnings/__init__.py +66 -0
- cognite_neat-0.88.3/cognite/neat/issues/warnings/_external.py +40 -0
- cognite_neat-0.88.3/cognite/neat/issues/warnings/_general.py +29 -0
- cognite_neat-0.88.3/cognite/neat/issues/warnings/_models.py +92 -0
- cognite_neat-0.88.3/cognite/neat/issues/warnings/_properties.py +44 -0
- cognite_neat-0.88.3/cognite/neat/issues/warnings/_resources.py +55 -0
- cognite_neat-0.88.3/cognite/neat/issues/warnings/user_modeling.py +113 -0
- cognite_neat-0.88.3/cognite/neat/rules/_shared.py +18 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/exporters/_base.py +6 -6
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/exporters/_rules2dms.py +19 -11
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/exporters/_rules2excel.py +4 -4
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/exporters/_rules2ontology.py +74 -51
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/exporters/_rules2yaml.py +3 -3
- cognite_neat-0.88.3/cognite/neat/rules/exporters/_validation.py +14 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/importers/__init__.py +7 -3
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/importers/_base.py +9 -13
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/importers/_dms2rules.py +42 -24
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/importers/_dtdl2rules/dtdl_converter.py +49 -53
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/importers/_dtdl2rules/dtdl_importer.py +31 -23
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/importers/_dtdl2rules/spec.py +7 -0
- cognite_neat-0.88.3/cognite/neat/rules/importers/_rdf/_imf2rules/__init__.py +3 -0
- cognite_neat-0.88.3/cognite/neat/rules/importers/_rdf/_imf2rules/_imf2classes.py +82 -0
- cognite_neat-0.88.3/cognite/neat/rules/importers/_rdf/_imf2rules/_imf2metadata.py +34 -0
- cognite_neat-0.88.3/cognite/neat/rules/importers/_rdf/_imf2rules/_imf2properties.py +123 -0
- cognite_neat-0.88.1/cognite/neat/rules/importers/_owl2rules/_owl2rules.py → cognite_neat-0.88.3/cognite/neat/rules/importers/_rdf/_imf2rules/_imf2rules.py +24 -18
- {cognite_neat-0.88.1/cognite/neat/rules/importers → cognite_neat-0.88.3/cognite/neat/rules/importers/_rdf}/_inference2rules.py +9 -9
- cognite_neat-0.88.3/cognite/neat/rules/importers/_rdf/_owl2rules/_owl2classes.py +58 -0
- cognite_neat-0.88.3/cognite/neat/rules/importers/_rdf/_owl2rules/_owl2metadata.py +68 -0
- cognite_neat-0.88.3/cognite/neat/rules/importers/_rdf/_owl2rules/_owl2properties.py +60 -0
- cognite_neat-0.88.3/cognite/neat/rules/importers/_rdf/_owl2rules/_owl2rules.py +76 -0
- cognite_neat-0.88.3/cognite/neat/rules/importers/_rdf/_shared.py +586 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/importers/_spreadsheet2rules.py +35 -22
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/importers/_yaml2rules.py +23 -21
- cognite_neat-0.88.3/cognite/neat/rules/models/_constants.py +2 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/models/_rdfpath.py +4 -4
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/models/_types/_field.py +9 -11
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/models/asset/_rules.py +1 -3
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/models/asset/_validation.py +14 -10
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/models/dms/_converter.py +2 -4
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/models/dms/_exporter.py +30 -8
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/models/dms/_rules.py +23 -7
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/models/dms/_schema.py +94 -62
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/models/dms/_validation.py +105 -66
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/models/entities.py +3 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/models/information/_converter.py +2 -2
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/models/information/_rules.py +7 -8
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/models/information/_validation.py +48 -25
- cognite_neat-0.88.3/cognite/neat/rules/transformers/_base.py +15 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/utils/auxiliary.py +2 -35
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/utils/text.py +17 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/workflows/base.py +4 -4
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/workflows/cdf_store.py +3 -3
- cognite_neat-0.88.3/cognite/neat/workflows/steps/__init__.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/workflows/steps/data_contracts.py +1 -1
- cognite_neat-0.88.3/cognite/neat/workflows/steps/lib/__init__.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/workflows/steps/lib/current/graph_extractor.py +3 -3
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/workflows/steps/lib/current/graph_loader.py +2 -2
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/workflows/steps/lib/current/graph_store.py +1 -1
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/workflows/steps/lib/current/rules_exporter.py +10 -10
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/workflows/steps/lib/current/rules_importer.py +78 -6
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/workflows/steps/lib/current/rules_validator.py +20 -9
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/workflows/steps/lib/io/io_steps.py +5 -5
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/workflows/steps_registry.py +4 -5
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/pyproject.toml +1 -1
- cognite_neat-0.88.1/cognite/neat/_version.py +0 -1
- cognite_neat-0.88.1/cognite/neat/exceptions.py +0 -145
- cognite_neat-0.88.1/cognite/neat/graph/__init__.py +0 -3
- cognite_neat-0.88.1/cognite/neat/graph/exceptions.py +0 -90
- cognite_neat-0.88.1/cognite/neat/graph/issues/loader.py +0 -104
- cognite_neat-0.88.1/cognite/neat/issues.py +0 -158
- cognite_neat-0.88.1/cognite/neat/rules/_shared.py +0 -10
- cognite_neat-0.88.1/cognite/neat/rules/exporters/_validation.py +0 -99
- cognite_neat-0.88.1/cognite/neat/rules/importers/_owl2rules/_owl2classes.py +0 -215
- cognite_neat-0.88.1/cognite/neat/rules/importers/_owl2rules/_owl2metadata.py +0 -209
- cognite_neat-0.88.1/cognite/neat/rules/importers/_owl2rules/_owl2properties.py +0 -203
- cognite_neat-0.88.1/cognite/neat/rules/issues/__init__.py +0 -26
- cognite_neat-0.88.1/cognite/neat/rules/issues/base.py +0 -82
- cognite_neat-0.88.1/cognite/neat/rules/issues/dms.py +0 -683
- cognite_neat-0.88.1/cognite/neat/rules/issues/fileread.py +0 -197
- cognite_neat-0.88.1/cognite/neat/rules/issues/importing.py +0 -423
- cognite_neat-0.88.1/cognite/neat/rules/issues/ontology.py +0 -298
- cognite_neat-0.88.1/cognite/neat/rules/issues/spreadsheet.py +0 -563
- cognite_neat-0.88.1/cognite/neat/rules/issues/spreadsheet_file.py +0 -151
- cognite_neat-0.88.1/cognite/neat/rules/issues/tables.py +0 -72
- cognite_neat-0.88.1/cognite/neat/rules/models/_constants.py +0 -1
- cognite_neat-0.88.1/cognite/neat/workflows/_exceptions.py +0 -41
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/LICENSE +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/README.md +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/__init__.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/_shared.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/app/api/__init__.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/app/api/asgi/metrics.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/app/api/configuration.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/app/api/context_manager/__init__.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/app/api/context_manager/manager.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/app/api/data_classes/__init__.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/app/api/data_classes/rest.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/app/api/explorer.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/app/api/routers/configuration.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/app/api/routers/crud.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/app/api/routers/metrics.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/app/api/routers/workflows.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/app/api/utils/__init__.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/app/api/utils/data_mapping.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/app/api/utils/logging.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/app/api/utils/query_templates.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/app/main.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/app/monitoring/__init__.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/app/monitoring/metrics.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/app/ui/index.html +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/app/ui/neat-app/.gitignore +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/app/ui/neat-app/README.md +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/app/ui/neat-app/build/asset-manifest.json +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/app/ui/neat-app/build/favicon.ico +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/app/ui/neat-app/build/img/architect-icon.svg +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/app/ui/neat-app/build/img/developer-icon.svg +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/app/ui/neat-app/build/img/sme-icon.svg +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/app/ui/neat-app/build/index.html +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/app/ui/neat-app/build/logo192.png +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/app/ui/neat-app/build/manifest.json +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/app/ui/neat-app/build/robots.txt +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/app/ui/neat-app/build/static/css/main.72e3d92e.css +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/app/ui/neat-app/build/static/css/main.72e3d92e.css.map +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/app/ui/neat-app/build/static/js/main.5a52cf09.js +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/app/ui/neat-app/build/static/js/main.5a52cf09.js.LICENSE.txt +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/app/ui/neat-app/build/static/js/main.5a52cf09.js.map +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/app/ui/neat-app/build/static/media/logo.8093b84df9ed36a174c629d6fe0b730d.svg +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/config.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/constants.py +0 -0
- {cognite_neat-0.88.1/cognite/neat/graph/extractors/_classic_cdf → cognite_neat-0.88.3/cognite/neat/graph}/__init__.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/graph/_shared.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/graph/_tracking/__init__.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/graph/_tracking/base.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/graph/_tracking/log.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/graph/examples/Knowledge-Graph-Nordic44-dirty.xml +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/graph/examples/Knowledge-Graph-Nordic44.xml +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/graph/examples/__init__.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/graph/examples/skos-capturing-sheet-wind-topics.xlsx +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/graph/extractors/__init__.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/graph/extractors/_base.py +0 -0
- {cognite_neat-0.88.1/cognite/neat/graph/issues → cognite_neat-0.88.3/cognite/neat/graph/extractors/_classic_cdf}/__init__.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/graph/extractors/_classic_cdf/_assets.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/graph/extractors/_classic_cdf/_base.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/graph/extractors/_classic_cdf/_events.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/graph/extractors/_classic_cdf/_files.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/graph/extractors/_classic_cdf/_labels.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/graph/extractors/_classic_cdf/_relationships.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/graph/extractors/_classic_cdf/_sequences.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/graph/extractors/_classic_cdf/_timeseries.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/graph/extractors/_dexpi.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/graph/extractors/_mock_graph_generator.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/graph/extractors/_rdf_file.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/graph/loaders/__init__.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/graph/models.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/graph/queries/__init__.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/graph/queries/_base.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/graph/queries/_construct.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/graph/queries/_shared.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/graph/transformers/__init__.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/graph/transformers/_base.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/graph/transformers/_classic_cdf.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/graph/transformers/_rdfpath.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/py.typed +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/__init__.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/analysis/__init__.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/analysis/_asset.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/analysis/_base.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/analysis/_information.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/examples/__init__.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/examples/wind-energy.owl +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/exporters/__init__.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/importers/_dtdl2rules/__init__.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/importers/_dtdl2rules/_unit_lookup.py +0 -0
- {cognite_neat-0.88.1/cognite/neat/utils → cognite_neat-0.88.3/cognite/neat/rules/importers/_rdf}/__init__.py +0 -0
- {cognite_neat-0.88.1/cognite/neat/rules/importers → cognite_neat-0.88.3/cognite/neat/rules/importers/_rdf}/_owl2rules/__init__.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/models/__init__.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/models/_base.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/models/_types/__init__.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/models/asset/__init__.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/models/asset/_converter.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/models/asset/_rules_input.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/models/asset/_serializer.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/models/data_types.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/models/dms/__init__.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/models/dms/_rules_input.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/models/dms/_serializer.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/models/domain.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/models/information/__init__.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/models/information/_rules_input.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/models/information/_serializer.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/rules/models/wrapped_entities.py +0 -0
- {cognite_neat-0.88.1/cognite/neat/utils/cdf → cognite_neat-0.88.3/cognite/neat/rules/transformers}/__init__.py +0 -0
- {cognite_neat-0.88.1/cognite/neat/graph/stores → cognite_neat-0.88.3/cognite/neat/store}/__init__.py +0 -0
- {cognite_neat-0.88.1/cognite/neat/graph/stores → cognite_neat-0.88.3/cognite/neat/store}/_base.py +0 -0
- {cognite_neat-0.88.1/cognite/neat/graph/stores → cognite_neat-0.88.3/cognite/neat/store}/_provenance.py +0 -0
- {cognite_neat-0.88.1/cognite/neat/workflows/steps → cognite_neat-0.88.3/cognite/neat/utils}/__init__.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/utils/auth.py +0 -0
- {cognite_neat-0.88.1/cognite/neat/workflows/steps/lib → cognite_neat-0.88.3/cognite/neat/utils/cdf}/__init__.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/utils/cdf/data_classes.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/utils/cdf/loaders/__init__.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/utils/cdf/loaders/_base.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/utils/cdf/loaders/_data_modeling.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/utils/cdf/loaders/_ingestion.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/utils/collection_.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/utils/rdf_.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/utils/regex_patterns.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/utils/spreadsheet.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/utils/time_.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/utils/upload.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/utils/xml_.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/workflows/__init__.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/workflows/examples/Export_DMS/workflow.yaml +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/workflows/examples/Import_DMS/workflow.yaml +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/workflows/examples/Validate_Rules/workflow.yaml +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/workflows/examples/Validate_Solution_Model/workflow.yaml +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/workflows/examples/Visualize_Data_Model_Using_Mock_Graph/workflow.yaml +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/workflows/examples/Visualize_Semantic_Data_Model/workflow.yaml +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/workflows/manager.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/workflows/model.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/workflows/steps/lib/current/__init__.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/workflows/steps/lib/io/__init__.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/workflows/steps/step_model.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/workflows/tasks.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/workflows/triggers.py +0 -0
- {cognite_neat-0.88.1 → cognite_neat-0.88.3}/cognite/neat/workflows/utils.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.88.3"
|
|
@@ -6,9 +6,9 @@ from typing import ClassVar, Generic, TypeVar
|
|
|
6
6
|
from cognite.client import CogniteClient
|
|
7
7
|
from cognite.client.data_classes.capabilities import Capability
|
|
8
8
|
|
|
9
|
-
from cognite.neat.
|
|
10
|
-
from cognite.neat.
|
|
11
|
-
from cognite.neat.
|
|
9
|
+
from cognite.neat.issues import IssueList, NeatIssue, NeatIssueList
|
|
10
|
+
from cognite.neat.issues.errors import AuthorizationError
|
|
11
|
+
from cognite.neat.store import NeatGraphStore
|
|
12
12
|
from cognite.neat.utils.auxiliary import class_html_doc
|
|
13
13
|
from cognite.neat.utils.upload import UploadResult, UploadResultList
|
|
14
14
|
|
|
@@ -61,12 +61,12 @@ class CDFLoader(BaseLoader[T_Output]):
|
|
|
61
61
|
if missing_capabilities:
|
|
62
62
|
upload_result = UploadResult[Hashable](name=type(self).__name__)
|
|
63
63
|
upload_result.issues.append(
|
|
64
|
-
|
|
64
|
+
AuthorizationError(action="Upload to CDF", reason=str(missing_capabilities))
|
|
65
65
|
)
|
|
66
66
|
yield upload_result
|
|
67
67
|
return
|
|
68
68
|
|
|
69
|
-
issues =
|
|
69
|
+
issues = IssueList()
|
|
70
70
|
items: list[T_Output] = []
|
|
71
71
|
for result in self._load(stop_on_exception=False):
|
|
72
72
|
if isinstance(result, NeatIssue):
|
|
@@ -79,7 +79,7 @@ class CDFLoader(BaseLoader[T_Output]):
|
|
|
79
79
|
|
|
80
80
|
if len(items) >= self._UPLOAD_BATCH_SIZE or result is _END_OF_CLASS:
|
|
81
81
|
yield from self._upload_to_cdf(client, items, dry_run, issues)
|
|
82
|
-
issues =
|
|
82
|
+
issues = IssueList()
|
|
83
83
|
items = []
|
|
84
84
|
if items:
|
|
85
85
|
yield from self._upload_to_cdf(client, items, dry_run, issues)
|
|
@@ -19,12 +19,12 @@ from cognite.client.exceptions import CogniteAPIError, CogniteDuplicatedError
|
|
|
19
19
|
|
|
20
20
|
from cognite.neat.graph._tracking.base import Tracker
|
|
21
21
|
from cognite.neat.graph._tracking.log import LogTracker
|
|
22
|
-
from cognite.neat.
|
|
23
|
-
from cognite.neat.
|
|
24
|
-
from cognite.neat.issues import NeatIssue, NeatIssueList
|
|
22
|
+
from cognite.neat.issues import IssueList, NeatError, NeatIssue, NeatIssueList
|
|
23
|
+
from cognite.neat.issues.errors import ResourceCreationError, ResourceNotFoundError
|
|
25
24
|
from cognite.neat.rules.analysis._asset import AssetAnalysis
|
|
26
25
|
from cognite.neat.rules.models import AssetRules
|
|
27
26
|
from cognite.neat.rules.models.entities import ClassEntity, EntityTypes
|
|
27
|
+
from cognite.neat.store import NeatGraphStore
|
|
28
28
|
from cognite.neat.utils.auxiliary import create_sha256_hash
|
|
29
29
|
from cognite.neat.utils.upload import UploadResult
|
|
30
30
|
|
|
@@ -80,7 +80,7 @@ class AssetLoader(CDFLoader[AssetWrite]):
|
|
|
80
80
|
self.external_id_prefix = external_id_prefix
|
|
81
81
|
|
|
82
82
|
self.processed_assets: set[str] = set()
|
|
83
|
-
self._issues =
|
|
83
|
+
self._issues = IssueList(create_issues or [])
|
|
84
84
|
self._tracker: type[Tracker] = tracker or LogTracker
|
|
85
85
|
|
|
86
86
|
def _load(self, stop_on_exception: bool = False) -> Iterable[AssetWrite | NeatIssue | type[_END_OF_CLASS]]:
|
|
@@ -122,6 +122,7 @@ class AssetLoader(CDFLoader[AssetWrite]):
|
|
|
122
122
|
tracker: Tracker,
|
|
123
123
|
stop_on_exception: bool,
|
|
124
124
|
) -> Iterable[Any]:
|
|
125
|
+
error: NeatError
|
|
125
126
|
for class_ in ordered_classes:
|
|
126
127
|
tracker.start(repr(class_.id))
|
|
127
128
|
|
|
@@ -143,20 +144,18 @@ class AssetLoader(CDFLoader[AssetWrite]):
|
|
|
143
144
|
|
|
144
145
|
# check on parent
|
|
145
146
|
if "parentExternalId" in fields and fields["parentExternalId"] not in self.processed_assets:
|
|
146
|
-
error =
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
else ''}"""
|
|
155
|
-
),
|
|
147
|
+
error = ResourceNotFoundError(
|
|
148
|
+
fields["parentExternalId"],
|
|
149
|
+
EntityTypes.asset,
|
|
150
|
+
identifier,
|
|
151
|
+
EntityTypes.asset,
|
|
152
|
+
f"Moving the asset {identifier} under orphanage {self.orphanage.external_id}"
|
|
153
|
+
if self.orphanage
|
|
154
|
+
else "",
|
|
156
155
|
)
|
|
157
156
|
tracker.issue(error)
|
|
158
157
|
if stop_on_exception:
|
|
159
|
-
raise error
|
|
158
|
+
raise error
|
|
160
159
|
yield error
|
|
161
160
|
|
|
162
161
|
# if orphanage is set asset will use orphanage as parent
|
|
@@ -171,12 +170,10 @@ class AssetLoader(CDFLoader[AssetWrite]):
|
|
|
171
170
|
yield AssetWrite.load(fields)
|
|
172
171
|
self.processed_assets.add(identifier)
|
|
173
172
|
except KeyError as e:
|
|
174
|
-
error =
|
|
175
|
-
type_=EntityTypes.asset, identifier=identifier, reason=str(e)
|
|
176
|
-
)
|
|
173
|
+
error = ResourceCreationError(identifier, EntityTypes.asset, error=str(e))
|
|
177
174
|
tracker.issue(error)
|
|
178
175
|
if stop_on_exception:
|
|
179
|
-
raise error
|
|
176
|
+
raise error from e
|
|
180
177
|
yield error
|
|
181
178
|
|
|
182
179
|
yield _END_OF_CLASS
|
|
@@ -203,17 +200,17 @@ class AssetLoader(CDFLoader[AssetWrite]):
|
|
|
203
200
|
|
|
204
201
|
# check if source asset exists
|
|
205
202
|
if source_external_id not in self.processed_assets:
|
|
206
|
-
error =
|
|
207
|
-
|
|
203
|
+
error = ResourceCreationError(
|
|
204
|
+
resource_type=EntityTypes.relationship,
|
|
208
205
|
identifier=source_external_id,
|
|
209
|
-
|
|
206
|
+
error=(
|
|
210
207
|
f"Asset {source_external_id} does not exist! "
|
|
211
208
|
"Aborting creation of relationships which use this asset as the source."
|
|
212
209
|
),
|
|
213
210
|
)
|
|
214
211
|
tracker.issue(error)
|
|
215
212
|
if stop_on_exception:
|
|
216
|
-
raise error
|
|
213
|
+
raise error
|
|
217
214
|
yield error
|
|
218
215
|
continue
|
|
219
216
|
|
|
@@ -223,10 +220,10 @@ class AssetLoader(CDFLoader[AssetWrite]):
|
|
|
223
220
|
target_external_id = f"{self.external_id_prefix or ''}{target_external_id}"
|
|
224
221
|
# check if source asset exists
|
|
225
222
|
if target_external_id not in self.processed_assets:
|
|
226
|
-
error =
|
|
227
|
-
|
|
223
|
+
error = ResourceCreationError(
|
|
224
|
+
resource_type=EntityTypes.relationship,
|
|
228
225
|
identifier=target_external_id,
|
|
229
|
-
|
|
226
|
+
error=(
|
|
230
227
|
f"Asset {target_external_id} does not exist! "
|
|
231
228
|
f"Cannot create relationship between {source_external_id}"
|
|
232
229
|
f" and {target_external_id}. "
|
|
@@ -234,7 +231,7 @@ class AssetLoader(CDFLoader[AssetWrite]):
|
|
|
234
231
|
)
|
|
235
232
|
tracker.issue(error)
|
|
236
233
|
if stop_on_exception:
|
|
237
|
-
raise error
|
|
234
|
+
raise error
|
|
238
235
|
yield error
|
|
239
236
|
continue
|
|
240
237
|
|
|
@@ -250,14 +247,14 @@ class AssetLoader(CDFLoader[AssetWrite]):
|
|
|
250
247
|
labels=[label] if self.use_labels else None,
|
|
251
248
|
)
|
|
252
249
|
except KeyError as e:
|
|
253
|
-
error =
|
|
254
|
-
|
|
250
|
+
error = ResourceCreationError(
|
|
251
|
+
resource_type=EntityTypes.relationship,
|
|
255
252
|
identifier=external_id,
|
|
256
|
-
|
|
253
|
+
error=str(e),
|
|
257
254
|
)
|
|
258
255
|
tracker.issue(error)
|
|
259
256
|
if stop_on_exception:
|
|
260
|
-
raise error
|
|
257
|
+
raise error from e
|
|
261
258
|
yield error
|
|
262
259
|
|
|
263
260
|
yield _END_OF_CLASS
|
|
@@ -15,11 +15,17 @@ from cognite.client.exceptions import CogniteAPIError
|
|
|
15
15
|
from pydantic import BaseModel, ValidationInfo, create_model, field_validator
|
|
16
16
|
|
|
17
17
|
from cognite.neat.graph._tracking import LogTracker, Tracker
|
|
18
|
-
from cognite.neat.
|
|
19
|
-
from cognite.neat.
|
|
20
|
-
|
|
18
|
+
from cognite.neat.issues import IssueList, NeatIssue, NeatIssueList
|
|
19
|
+
from cognite.neat.issues.errors import (
|
|
20
|
+
ResourceConvertionError,
|
|
21
|
+
ResourceCreationError,
|
|
22
|
+
ResourceDuplicatedError,
|
|
23
|
+
ResourceRetrievalError,
|
|
24
|
+
)
|
|
25
|
+
from cognite.neat.issues.warnings import PropertyTypeNotSupportedWarning
|
|
21
26
|
from cognite.neat.rules.models import DMSRules
|
|
22
27
|
from cognite.neat.rules.models.data_types import _DATA_TYPE_BY_DMS_TYPE, Json
|
|
28
|
+
from cognite.neat.store import NeatGraphStore
|
|
23
29
|
from cognite.neat.utils.auxiliary import create_sha256_hash
|
|
24
30
|
from cognite.neat.utils.upload import UploadResult
|
|
25
31
|
|
|
@@ -51,7 +57,7 @@ class DMSLoader(CDFLoader[dm.InstanceApply]):
|
|
|
51
57
|
self.data_model = data_model
|
|
52
58
|
self.instance_space = instance_space
|
|
53
59
|
self.class_by_view_id = class_by_view_id or {}
|
|
54
|
-
self._issues =
|
|
60
|
+
self._issues = IssueList(create_issues or [])
|
|
55
61
|
self._tracker: type[Tracker] = tracker or LogTracker
|
|
56
62
|
|
|
57
63
|
@classmethod
|
|
@@ -67,7 +73,7 @@ class DMSLoader(CDFLoader[dm.InstanceApply]):
|
|
|
67
73
|
try:
|
|
68
74
|
data_model = client.data_modeling.data_models.retrieve(data_model_id, inline_views=True).latest_version()
|
|
69
75
|
except Exception as e:
|
|
70
|
-
issues.append(
|
|
76
|
+
issues.append(ResourceRetrievalError(data_model_id, "data model", str(e)))
|
|
71
77
|
|
|
72
78
|
return cls(graph_store, data_model, instance_space, {}, issues)
|
|
73
79
|
|
|
@@ -79,8 +85,9 @@ class DMSLoader(CDFLoader[dm.InstanceApply]):
|
|
|
79
85
|
data_model = rules.as_schema().as_read_model()
|
|
80
86
|
except Exception as e:
|
|
81
87
|
issues.append(
|
|
82
|
-
|
|
88
|
+
ResourceConvertionError(
|
|
83
89
|
identifier=rules.metadata.as_identifier(),
|
|
90
|
+
resource_type="DMS Rules",
|
|
84
91
|
target_format="read DMS model",
|
|
85
92
|
reason=str(e),
|
|
86
93
|
)
|
|
@@ -110,10 +117,10 @@ class DMSLoader(CDFLoader[dm.InstanceApply]):
|
|
|
110
117
|
try:
|
|
111
118
|
yield self._create_node(identifier, properties, pydantic_cls, view_id)
|
|
112
119
|
except ValueError as e:
|
|
113
|
-
error =
|
|
120
|
+
error = ResourceCreationError(identifier, "node", error=str(e))
|
|
114
121
|
tracker.issue(error)
|
|
115
122
|
if stop_on_exception:
|
|
116
|
-
raise error
|
|
123
|
+
raise error from e
|
|
117
124
|
yield error
|
|
118
125
|
yield from self._create_edges(identifier, properties, edge_by_properties, tracker)
|
|
119
126
|
tracker.finish(repr(view_id))
|
|
@@ -141,7 +148,7 @@ class DMSLoader(CDFLoader[dm.InstanceApply]):
|
|
|
141
148
|
def _create_validation_classes(
|
|
142
149
|
self, view: dm.View
|
|
143
150
|
) -> tuple[type[BaseModel], dict[str, dm.EdgeConnection], NeatIssueList]:
|
|
144
|
-
issues =
|
|
151
|
+
issues = IssueList()
|
|
145
152
|
field_definitions: dict[str, tuple[type, Any]] = {}
|
|
146
153
|
edge_by_property: dict[str, dm.EdgeConnection] = {}
|
|
147
154
|
validators: dict[str, classmethod] = {}
|
|
@@ -158,9 +165,11 @@ class DMSLoader(CDFLoader[dm.InstanceApply]):
|
|
|
158
165
|
data_type = _DATA_TYPE_BY_DMS_TYPE.get(prop.type._type)
|
|
159
166
|
if not data_type:
|
|
160
167
|
issues.append(
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
168
|
+
PropertyTypeNotSupportedWarning(
|
|
169
|
+
view.as_id(),
|
|
170
|
+
"view",
|
|
171
|
+
prop_name,
|
|
172
|
+
prop.type._type,
|
|
164
173
|
)
|
|
165
174
|
)
|
|
166
175
|
continue
|
|
@@ -247,10 +256,10 @@ class DMSLoader(CDFLoader[dm.InstanceApply]):
|
|
|
247
256
|
continue
|
|
248
257
|
edge = edge_by_properties[prop]
|
|
249
258
|
if isinstance(edge, SingleEdgeConnection) and len(values) > 1:
|
|
250
|
-
error =
|
|
251
|
-
|
|
259
|
+
error = ResourceDuplicatedError(
|
|
260
|
+
resource_type="edge",
|
|
252
261
|
identifier=identifier,
|
|
253
|
-
|
|
262
|
+
location=f"Multiple values for single edge {edge}. Expected only one.",
|
|
254
263
|
)
|
|
255
264
|
tracker.issue(error)
|
|
256
265
|
yield error
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"""This is module contains all the Neat Exceptions (Errors) and Warnings as well
|
|
2
|
+
as some helper classes to handle them like NeatIssueList"""
|
|
3
|
+
|
|
4
|
+
from ._base import DefaultWarning, IssueList, MultiValueError, NeatError, NeatIssue, NeatIssueList, NeatWarning
|
|
5
|
+
|
|
6
|
+
__all__ = [
|
|
7
|
+
"NeatIssue",
|
|
8
|
+
"NeatError",
|
|
9
|
+
"NeatWarning",
|
|
10
|
+
"DefaultWarning",
|
|
11
|
+
"NeatIssueList",
|
|
12
|
+
"IssueList",
|
|
13
|
+
"MultiValueError",
|
|
14
|
+
]
|