cognite-neat 0.121.0__py3-none-any.whl → 0.121.2__py3-none-any.whl
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/_version.py +1 -1
- cognite/neat/core/_client/_api/statistics.py +91 -0
- cognite/neat/core/_client/_api_client.py +2 -0
- cognite/neat/core/_client/data_classes/statistics.py +125 -0
- cognite/neat/core/_client/testing.py +4 -0
- cognite/neat/core/_constants.py +6 -7
- cognite/neat/core/{_rules → _data_model}/_constants.py +25 -18
- cognite/neat/core/_data_model/_shared.py +59 -0
- cognite/neat/core/_data_model/analysis/__init__.py +3 -0
- cognite/neat/core/{_rules → _data_model}/analysis/_base.py +202 -195
- cognite/neat/core/{_rules → _data_model}/catalog/__init__.py +1 -1
- cognite/neat/core/{_rules → _data_model}/exporters/__init__.py +5 -5
- cognite/neat/core/{_rules → _data_model}/exporters/_base.py +10 -8
- cognite/neat/core/{_rules/exporters/_rules2dms.py → _data_model/exporters/_data_model2dms.py} +22 -18
- cognite/neat/core/{_rules/exporters/_rules2excel.py → _data_model/exporters/_data_model2excel.py} +61 -56
- cognite/neat/core/{_rules/exporters/_rules2instance_template.py → _data_model/exporters/_data_model2instance_template.py} +11 -9
- cognite/neat/core/{_rules/exporters/_rules2ontology.py → _data_model/exporters/_data_model2ontology.py} +64 -61
- cognite/neat/core/{_rules/exporters/_rules2yaml.py → _data_model/exporters/_data_model2yaml.py} +21 -18
- cognite/neat/core/{_rules → _data_model}/importers/__init__.py +6 -8
- cognite/neat/core/{_rules → _data_model}/importers/_base.py +8 -6
- cognite/neat/core/_data_model/importers/_base_file_reader.py +56 -0
- cognite/neat/core/{_rules/importers/_yaml2rules.py → _data_model/importers/_dict2data_model.py} +41 -21
- cognite/neat/core/{_rules/importers/_dms2rules.py → _data_model/importers/_dms2data_model.py} +79 -66
- cognite/neat/core/{_rules/importers/_dtdl2rules → _data_model/importers/_dtdl2data_model}/dtdl_converter.py +41 -41
- cognite/neat/core/{_rules/importers/_dtdl2rules → _data_model/importers/_dtdl2data_model}/dtdl_importer.py +16 -16
- cognite/neat/core/{_rules/importers/_dtdl2rules → _data_model/importers/_dtdl2data_model}/spec.py +3 -3
- cognite/neat/core/{_rules → _data_model}/importers/_rdf/_base.py +18 -16
- cognite/neat/core/{_rules → _data_model}/importers/_rdf/_imf2rules.py +17 -17
- cognite/neat/core/{_rules → _data_model}/importers/_rdf/_inference2rules.py +50 -50
- cognite/neat/core/{_rules → _data_model}/importers/_rdf/_owl2rules.py +14 -14
- cognite/neat/core/{_rules → _data_model}/importers/_rdf/_shared.py +25 -25
- cognite/neat/core/{_rules/importers/_spreadsheet2rules.py → _data_model/importers/_spreadsheet2data_model.py} +69 -38
- cognite/neat/core/_data_model/models/__init__.py +36 -0
- cognite/neat/core/{_rules/models/_base_input.py → _data_model/models/_base_unverified.py} +12 -12
- cognite/neat/core/{_rules/models/_base_rules.py → _data_model/models/_base_verified.py} +13 -13
- cognite/neat/core/{_rules → _data_model}/models/_types.py +13 -13
- cognite/neat/core/_data_model/models/conceptual/__init__.py +25 -0
- cognite/neat/core/{_rules/models/information/_rules_input.py → _data_model/models/conceptual/_unverified.py} +46 -43
- cognite/neat/core/{_rules/models/information → _data_model/models/conceptual}/_validation.py +93 -79
- cognite/neat/core/{_rules/models/information/_rules.py → _data_model/models/conceptual/_verified.py} +83 -83
- cognite/neat/core/{_rules → _data_model}/models/data_types.py +4 -4
- cognite/neat/core/{_rules → _data_model}/models/entities/__init__.py +8 -8
- cognite/neat/core/{_rules → _data_model}/models/entities/_loaders.py +12 -11
- cognite/neat/core/{_rules → _data_model}/models/entities/_multi_value.py +7 -7
- cognite/neat/core/{_rules → _data_model}/models/entities/_single_value.py +45 -39
- cognite/neat/core/{_rules → _data_model}/models/entities/_types.py +9 -3
- cognite/neat/core/{_rules → _data_model}/models/entities/_wrapped.py +3 -3
- cognite/neat/core/{_rules → _data_model}/models/mapping/_classic2core.py +12 -9
- cognite/neat/core/_data_model/models/physical/__init__.py +40 -0
- cognite/neat/core/{_rules/models/dms → _data_model/models/physical}/_exporter.py +83 -64
- cognite/neat/core/{_rules/models/dms/_rules_input.py → _data_model/models/physical/_unverified.py} +56 -44
- cognite/neat/core/{_rules/models/dms → _data_model/models/physical}/_validation.py +20 -17
- cognite/neat/core/{_rules/models/dms/_rules.py → _data_model/models/physical/_verified.py} +79 -71
- cognite/neat/core/{_rules → _data_model}/transformers/__init__.py +27 -23
- cognite/neat/core/{_rules → _data_model}/transformers/_base.py +29 -19
- cognite/neat/core/{_rules → _data_model}/transformers/_converters.py +758 -659
- cognite/neat/core/{_rules → _data_model}/transformers/_mapping.py +79 -60
- cognite/neat/core/_data_model/transformers/_verification.py +120 -0
- cognite/neat/core/{_graph → _instances}/extractors/_base.py +2 -2
- cognite/neat/core/{_graph → _instances}/extractors/_classic_cdf/_base.py +1 -1
- cognite/neat/core/{_graph → _instances}/extractors/_classic_cdf/_classic.py +17 -11
- cognite/neat/core/{_graph → _instances}/extractors/_dms_graph.py +47 -39
- cognite/neat/core/{_graph → _instances}/extractors/_mock_graph_generator.py +102 -99
- cognite/neat/core/{_graph → _instances}/extractors/_rdf_file.py +2 -2
- cognite/neat/core/{_graph → _instances}/loaders/_base.py +2 -2
- cognite/neat/core/{_graph → _instances}/loaders/_rdf2dms.py +16 -14
- cognite/neat/core/{_graph → _instances}/transformers/_base.py +7 -4
- cognite/neat/core/{_graph → _instances}/transformers/_classic_cdf.py +1 -1
- cognite/neat/core/{_graph → _instances}/transformers/_value_type.py +2 -6
- cognite/neat/core/_issues/_base.py +4 -4
- cognite/neat/core/_issues/errors/__init__.py +2 -2
- cognite/neat/core/_issues/errors/_wrapper.py +2 -2
- cognite/neat/core/_issues/warnings/__init__.py +2 -0
- cognite/neat/core/_issues/warnings/_models.py +4 -4
- cognite/neat/core/_issues/warnings/_properties.py +7 -0
- cognite/neat/core/_store/__init__.py +3 -3
- cognite/neat/core/_store/{_rules_store.py → _data_model.py} +128 -121
- cognite/neat/core/_store/{_graph_store.py → _instance.py} +7 -8
- cognite/neat/core/_store/_provenance.py +2 -2
- cognite/neat/core/_store/exceptions.py +4 -4
- cognite/neat/core/_utils/rdf_.py +14 -0
- cognite/neat/core/_utils/spreadsheet.py +1 -1
- cognite/neat/core/_utils/text.py +2 -2
- cognite/neat/session/_base.py +29 -25
- cognite/neat/session/_drop.py +3 -3
- cognite/neat/session/_fix.py +2 -2
- cognite/neat/session/_inspect.py +5 -5
- cognite/neat/session/_mapping.py +11 -9
- cognite/neat/session/_prepare.py +4 -4
- cognite/neat/session/_read.py +15 -15
- cognite/neat/session/_set.py +5 -5
- cognite/neat/session/_show.py +11 -11
- cognite/neat/session/_state.py +17 -17
- cognite/neat/session/_subset.py +14 -11
- cognite/neat/session/_template.py +19 -19
- cognite/neat/session/_to.py +21 -21
- cognite/neat/session/_wizard.py +1 -1
- {cognite_neat-0.121.0.dist-info → cognite_neat-0.121.2.dist-info}/METADATA +1 -1
- cognite_neat-0.121.2.dist-info/RECORD +189 -0
- cognite/neat/core/_rules/_shared.py +0 -43
- cognite/neat/core/_rules/analysis/__init__.py +0 -3
- cognite/neat/core/_rules/exporters/_validation.py +0 -14
- cognite/neat/core/_rules/models/__init__.py +0 -34
- cognite/neat/core/_rules/models/dms/__init__.py +0 -32
- cognite/neat/core/_rules/models/information/__init__.py +0 -20
- cognite/neat/core/_rules/transformers/_verification.py +0 -111
- cognite_neat-0.121.0.dist-info/RECORD +0 -187
- /cognite/neat/core/{_graph → _data_model}/__init__.py +0 -0
- /cognite/neat/core/{_rules → _data_model}/catalog/classic_model.xlsx +0 -0
- /cognite/neat/core/{_rules/catalog/info-rules-imf.xlsx → _data_model/catalog/conceptual-imf-data-model.xlsx} +0 -0
- /cognite/neat/core/{_rules → _data_model}/catalog/hello_world_pump.xlsx +0 -0
- /cognite/neat/core/{_rules/importers/_dtdl2rules → _data_model/importers/_dtdl2data_model}/__init__.py +0 -0
- /cognite/neat/core/{_rules/importers/_dtdl2rules → _data_model/importers/_dtdl2data_model}/_unit_lookup.py +0 -0
- /cognite/neat/core/{_rules → _data_model}/importers/_rdf/__init__.py +0 -0
- /cognite/neat/core/{_rules → _data_model}/models/entities/_constants.py +0 -0
- /cognite/neat/core/{_rules → _data_model}/models/mapping/__init__.py +0 -0
- /cognite/neat/core/{_rules → _data_model}/models/mapping/_classic2core.yaml +0 -0
- /cognite/neat/core/{_graph/extractors/_classic_cdf → _instances}/__init__.py +0 -0
- /cognite/neat/core/{_graph → _instances}/_shared.py +0 -0
- /cognite/neat/core/{_graph → _instances}/_tracking/__init__.py +0 -0
- /cognite/neat/core/{_graph → _instances}/_tracking/base.py +0 -0
- /cognite/neat/core/{_graph → _instances}/_tracking/log.py +0 -0
- /cognite/neat/core/{_graph → _instances}/examples/Knowledge-Graph-Nordic44-dirty.xml +0 -0
- /cognite/neat/core/{_graph → _instances}/examples/Knowledge-Graph-Nordic44.xml +0 -0
- /cognite/neat/core/{_graph → _instances}/examples/__init__.py +0 -0
- /cognite/neat/core/{_graph → _instances}/examples/skos-capturing-sheet-wind-topics.xlsx +0 -0
- /cognite/neat/core/{_graph → _instances}/extractors/__init__.py +0 -0
- /cognite/neat/core/{_rules → _instances/extractors/_classic_cdf}/__init__.py +0 -0
- /cognite/neat/core/{_graph → _instances}/extractors/_classic_cdf/_assets.py +0 -0
- /cognite/neat/core/{_graph → _instances}/extractors/_classic_cdf/_data_sets.py +0 -0
- /cognite/neat/core/{_graph → _instances}/extractors/_classic_cdf/_events.py +0 -0
- /cognite/neat/core/{_graph → _instances}/extractors/_classic_cdf/_files.py +0 -0
- /cognite/neat/core/{_graph → _instances}/extractors/_classic_cdf/_labels.py +0 -0
- /cognite/neat/core/{_graph → _instances}/extractors/_classic_cdf/_relationships.py +0 -0
- /cognite/neat/core/{_graph → _instances}/extractors/_classic_cdf/_sequences.py +0 -0
- /cognite/neat/core/{_graph → _instances}/extractors/_classic_cdf/_timeseries.py +0 -0
- /cognite/neat/core/{_graph → _instances}/extractors/_dict.py +0 -0
- /cognite/neat/core/{_graph → _instances}/extractors/_dms.py +0 -0
- /cognite/neat/core/{_graph → _instances}/extractors/_raw.py +0 -0
- /cognite/neat/core/{_graph → _instances}/loaders/__init__.py +0 -0
- /cognite/neat/core/{_graph → _instances}/queries/__init__.py +0 -0
- /cognite/neat/core/{_graph → _instances}/queries/_base.py +0 -0
- /cognite/neat/core/{_graph → _instances}/queries/_queries.py +0 -0
- /cognite/neat/core/{_graph → _instances}/queries/_select.py +0 -0
- /cognite/neat/core/{_graph → _instances}/queries/_update.py +0 -0
- /cognite/neat/core/{_graph → _instances}/transformers/__init__.py +0 -0
- /cognite/neat/core/{_graph → _instances}/transformers/_prune_graph.py +0 -0
- /cognite/neat/core/{_graph → _instances}/transformers/_rdfpath.py +0 -0
- {cognite_neat-0.121.0.dist-info → cognite_neat-0.121.2.dist-info}/WHEEL +0 -0
- {cognite_neat-0.121.0.dist-info → cognite_neat-0.121.2.dist-info}/licenses/LICENSE +0 -0
cognite/neat/session/_to.py
CHANGED
|
@@ -8,14 +8,14 @@ from cognite.client.data_classes.data_modeling import DataModelIdentifier
|
|
|
8
8
|
|
|
9
9
|
from cognite.neat.core._client._api_client import NeatClient
|
|
10
10
|
from cognite.neat.core._constants import COGNITE_MODELS
|
|
11
|
-
from cognite.neat.core.
|
|
11
|
+
from cognite.neat.core._data_model import exporters
|
|
12
|
+
from cognite.neat.core._data_model._constants import PATTERNS
|
|
13
|
+
from cognite.neat.core._data_model._shared import VerifiedDataModel
|
|
14
|
+
from cognite.neat.core._data_model.importers import DMSImporter
|
|
15
|
+
from cognite.neat.core._data_model.models import ConceptualDataModel, PhysicalDataModel
|
|
16
|
+
from cognite.neat.core._data_model.models.physical import PhysicalMetadata
|
|
17
|
+
from cognite.neat.core._instances import loaders
|
|
12
18
|
from cognite.neat.core._issues import IssueList, NeatIssue, catch_issues
|
|
13
|
-
from cognite.neat.core._rules import exporters
|
|
14
|
-
from cognite.neat.core._rules._constants import PATTERNS
|
|
15
|
-
from cognite.neat.core._rules._shared import VerifiedRules
|
|
16
|
-
from cognite.neat.core._rules.importers import DMSImporter
|
|
17
|
-
from cognite.neat.core._rules.models import DMSRules, InformationRules
|
|
18
|
-
from cognite.neat.core._rules.models.dms import DMSMetadata
|
|
19
19
|
from cognite.neat.core._utils.upload import UploadResultList
|
|
20
20
|
from cognite.neat.session._experimental import ExperimentalFlags
|
|
21
21
|
|
|
@@ -113,12 +113,12 @@ class ToAPI:
|
|
|
113
113
|
dms_rules_file_name = "dms_rules.xlsx"
|
|
114
114
|
neat.to.excel(dms_rules_file_name, include_reference=("cdf_cdm", "CogniteCore", "v1"))
|
|
115
115
|
"""
|
|
116
|
-
|
|
116
|
+
reference_data_model_with_prefix: tuple[VerifiedDataModel, str] | None = None
|
|
117
117
|
include_properties = include_properties.strip().lower()
|
|
118
118
|
|
|
119
119
|
if include_reference is not False:
|
|
120
120
|
if include_reference is True and self._state.last_reference is not None:
|
|
121
|
-
ref_rules:
|
|
121
|
+
ref_rules: ConceptualDataModel | PhysicalDataModel | None = self._state.last_reference
|
|
122
122
|
elif include_reference is True:
|
|
123
123
|
ref_rules = None
|
|
124
124
|
else:
|
|
@@ -126,20 +126,20 @@ class ToAPI:
|
|
|
126
126
|
raise NeatSessionError("No client provided!")
|
|
127
127
|
ref_rules = None
|
|
128
128
|
with catch_issues() as issues:
|
|
129
|
-
ref_read = DMSImporter.from_data_model_id(self._state.client, include_reference).
|
|
130
|
-
if ref_read.
|
|
131
|
-
ref_rules = ref_read.
|
|
129
|
+
ref_read = DMSImporter.from_data_model_id(self._state.client, include_reference).to_data_model()
|
|
130
|
+
if ref_read.unverified_data_model is not None:
|
|
131
|
+
ref_rules = ref_read.unverified_data_model.as_verified_data_model()
|
|
132
132
|
if ref_rules is None or issues.has_errors:
|
|
133
133
|
issues.action = f"Read {include_reference}"
|
|
134
134
|
return issues
|
|
135
135
|
if ref_rules is not None:
|
|
136
136
|
prefix = "Ref"
|
|
137
137
|
if (
|
|
138
|
-
isinstance(ref_rules.metadata,
|
|
138
|
+
isinstance(ref_rules.metadata, PhysicalMetadata)
|
|
139
139
|
and ref_rules.metadata.as_data_model_id() in COGNITE_MODELS
|
|
140
140
|
):
|
|
141
141
|
prefix = "CDM"
|
|
142
|
-
|
|
142
|
+
reference_data_model_with_prefix = ref_rules, prefix
|
|
143
143
|
|
|
144
144
|
if include_properties == "same-space":
|
|
145
145
|
warnings.filterwarnings("default")
|
|
@@ -147,7 +147,7 @@ class ToAPI:
|
|
|
147
147
|
|
|
148
148
|
exporter = exporters.ExcelExporter(
|
|
149
149
|
styling="maximal",
|
|
150
|
-
|
|
150
|
+
reference_data_model_with_prefix=reference_data_model_with_prefix,
|
|
151
151
|
add_empty_rows=add_empty_rows,
|
|
152
152
|
include_properties=include_properties, # type: ignore
|
|
153
153
|
)
|
|
@@ -310,7 +310,7 @@ class CDFToAPI:
|
|
|
310
310
|
)
|
|
311
311
|
|
|
312
312
|
client = cast(NeatClient, self._state.client)
|
|
313
|
-
dms_rules = self._state.rule_store.
|
|
313
|
+
dms_rules = self._state.rule_store.last_verified_physical_data_model
|
|
314
314
|
instance_space = instance_space or f"{dms_rules.metadata.space}_instances"
|
|
315
315
|
|
|
316
316
|
if instance_space and instance_space == dms_rules.metadata.space:
|
|
@@ -322,8 +322,8 @@ class CDFToAPI:
|
|
|
322
322
|
client.data_modeling.spaces.apply(dm.SpaceApply(space=instance_space))
|
|
323
323
|
|
|
324
324
|
loader = loaders.DMSLoader(
|
|
325
|
-
self._state.rule_store.
|
|
326
|
-
self._state.rule_store.
|
|
325
|
+
self._state.rule_store.last_verified_physical_data_model,
|
|
326
|
+
self._state.rule_store.last_verified_conceptual_data_model,
|
|
327
327
|
self._state.instances.store,
|
|
328
328
|
instance_space=instance_space,
|
|
329
329
|
client=client,
|
|
@@ -418,7 +418,7 @@ class ToPythonAPI:
|
|
|
418
418
|
instances = neat.to._python.instances(space_from_property="dataSetId")
|
|
419
419
|
```
|
|
420
420
|
"""
|
|
421
|
-
dms_rules = self._state.rule_store.
|
|
421
|
+
dms_rules = self._state.rule_store.last_verified_physical_data_model
|
|
422
422
|
instance_space = instance_space or f"{dms_rules.metadata.space}_instances"
|
|
423
423
|
|
|
424
424
|
if instance_space and instance_space == dms_rules.metadata.space:
|
|
@@ -427,8 +427,8 @@ class ToPythonAPI:
|
|
|
427
427
|
raise NeatSessionError(f"Please provide a valid space name. {PATTERNS.space_compliance.pattern}")
|
|
428
428
|
|
|
429
429
|
loader = loaders.DMSLoader(
|
|
430
|
-
self._state.rule_store.
|
|
431
|
-
self._state.rule_store.
|
|
430
|
+
self._state.rule_store.last_verified_physical_data_model,
|
|
431
|
+
self._state.rule_store.last_verified_conceptual_data_model,
|
|
432
432
|
self._state.instances.store,
|
|
433
433
|
instance_space=instance_space,
|
|
434
434
|
space_property=space_from_property,
|
cognite/neat/session/_wizard.py
CHANGED
|
@@ -3,7 +3,7 @@ from typing import Literal, TypeVar, get_args
|
|
|
3
3
|
|
|
4
4
|
from rich.prompt import IntPrompt, Prompt
|
|
5
5
|
|
|
6
|
-
from cognite.neat.core.
|
|
6
|
+
from cognite.neat.core._data_model._constants import PATTERNS
|
|
7
7
|
|
|
8
8
|
RDFFileType = Literal["Ontology", "IMF Types", "Inference"]
|
|
9
9
|
NeatObjectType = Literal["Data Model", "Instances"]
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
cognite/neat/__init__.py,sha256=12StS1dzH9_MElqxGvLWrNsxCJl9Hv8A2a9D0E5OD_U,193
|
|
2
|
+
cognite/neat/_version.py,sha256=TKK790fAQ-IgIu5ROiQCOKFVp_NCOAcDwbWmPlUUBqA,46
|
|
3
|
+
cognite/neat/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
cognite/neat/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
+
cognite/neat/core/_config.py,sha256=WT1BS8uADcFvGoUYOOfwFOVq_VBl472TisdoA3wLick,280
|
|
6
|
+
cognite/neat/core/_constants.py,sha256=KElntHBVIZ2mv407UyVmUXDI0yU4XnSuj24WRl2iv0g,8107
|
|
7
|
+
cognite/neat/core/_shared.py,sha256=Ov59SWYboRRsncB_5V1ZC_BAoACfNLjo80vqE5Ru6wo,2325
|
|
8
|
+
cognite/neat/core/_client/__init__.py,sha256=RQ7MwL8mwGqGHokRzsPqO3XStDzmI4-c12_gz1UPJ74,177
|
|
9
|
+
cognite/neat/core/_client/_api_client.py,sha256=CqgG4kEArI9jiKAh82YrRZv_SzeMKA5guIZOvDg2R5I,860
|
|
10
|
+
cognite/neat/core/_client/testing.py,sha256=rZGd-TFwNtfUqT8LV0u3FT0kHwNrjnvDNZU_Mcd5yx4,1329
|
|
11
|
+
cognite/neat/core/_client/_api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
12
|
+
cognite/neat/core/_client/_api/data_modeling_loaders.py,sha256=YEZP0V_RXenzzFSxDzt4SbVnpzB4VP0fcI-Bab1VLw8,39815
|
|
13
|
+
cognite/neat/core/_client/_api/neat_instances.py,sha256=2rSt4FVPvLA0lzwwOvCC9fJk87jTF1vudLO9Z6pgpk4,3354
|
|
14
|
+
cognite/neat/core/_client/_api/schema.py,sha256=lbA8Cka_7K_RjmaxdeqkVkIwKPfWeDvpYvvEOGI07xo,6967
|
|
15
|
+
cognite/neat/core/_client/_api/statistics.py,sha256=M0JpCHD6WMfggoe-HyXfeigwRCvZJjVF-xNB9CgB4UE,3796
|
|
16
|
+
cognite/neat/core/_client/data_classes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
|
+
cognite/neat/core/_client/data_classes/data_modeling.py,sha256=RvpUp9ygd-yffQFJ7O2mQqMLDPIa-dmip5zPb8QVIiw,6672
|
|
18
|
+
cognite/neat/core/_client/data_classes/neat_sequence.py,sha256=QZWSfWnwk6KlYJvsInco4Wdwc1U8DnOQKWmHebArbQY,10830
|
|
19
|
+
cognite/neat/core/_client/data_classes/schema.py,sha256=SpkBGbC2SUJG38Ixf1vYJINI66i_OZaT03q4XKRtK54,25067
|
|
20
|
+
cognite/neat/core/_client/data_classes/statistics.py,sha256=GU-u41cOTig0Y5pYhW5KqzCsuAUIX9tOmdizMEveYuw,4487
|
|
21
|
+
cognite/neat/core/_data_model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
22
|
+
cognite/neat/core/_data_model/_constants.py,sha256=RAQMEt0zuXKlnz6tKlvW97NDaMG6ycwKV929C_fVOAY,6018
|
|
23
|
+
cognite/neat/core/_data_model/_shared.py,sha256=gLEEMofI9prZLRNjHpwQe0uX9WoKd5qUt5pT1i_KAYo,2072
|
|
24
|
+
cognite/neat/core/_data_model/analysis/__init__.py,sha256=v3hSfz7AEEqcmdjL71I09tP8Hl-gPZYOiDYMp_CW4vg,70
|
|
25
|
+
cognite/neat/core/_data_model/analysis/_base.py,sha256=baqgY-66zOUxw8s-PA1KGAOs2R1gJDAo2UWWc8LlHGU,24257
|
|
26
|
+
cognite/neat/core/_data_model/catalog/__init__.py,sha256=MFmEdStzSGIPUNGs9KepKryCQZpWT81hCrC7g4RgA-Q,261
|
|
27
|
+
cognite/neat/core/_data_model/catalog/classic_model.xlsx,sha256=YkocpkKypizjsWYwOdn5yzIz_BSl8T8SQLxgm4GIjLQ,15014
|
|
28
|
+
cognite/neat/core/_data_model/catalog/conceptual-imf-data-model.xlsx,sha256=vrE5g8vBtsGpwJqygxG3t9I3x4SUAyQsi1vtWfZ8QW4,53682
|
|
29
|
+
cognite/neat/core/_data_model/catalog/hello_world_pump.xlsx,sha256=E63t5U1PQLIoUfXp1mEuhuq8I2TGKovZlEfIhO5bevw,23322
|
|
30
|
+
cognite/neat/core/_data_model/exporters/__init__.py,sha256=hfGzM6rKrWbGK6cox38BRe4w-UCVMBLFw9wEKJsdy2M,1229
|
|
31
|
+
cognite/neat/core/_data_model/exporters/_base.py,sha256=PHKTUiio4PmiEjWP9E9tJiOkfh_Po1JvcutwP_84-4A,2391
|
|
32
|
+
cognite/neat/core/_data_model/exporters/_data_model2dms.py,sha256=gFSWvYV71LSzDVYsGlJ_mMxhLuKK0nwBvBiwRJhbvTE,19891
|
|
33
|
+
cognite/neat/core/_data_model/exporters/_data_model2excel.py,sha256=mRVJzUCEWfm2XLhY4FZOVlRQQUT_WY84CteJVBT_khQ,25465
|
|
34
|
+
cognite/neat/core/_data_model/exporters/_data_model2instance_template.py,sha256=yijdgZqhaWiRBrtnwq5oxllkaHCIbjZ4Y8-DPvL-Hi0,6066
|
|
35
|
+
cognite/neat/core/_data_model/exporters/_data_model2ontology.py,sha256=YrLTwPAvOOyLFHFJaNs4I82HCp1llJnkF1BRdoIQMck,23409
|
|
36
|
+
cognite/neat/core/_data_model/exporters/_data_model2yaml.py,sha256=1dlb-v4sV8BArnX_6J4wpjQT7r-FinFAvoPDoMNkHYw,3284
|
|
37
|
+
cognite/neat/core/_data_model/importers/__init__.py,sha256=Nbp63_LDS9_4L0YS8cBuneqJDPFV9ZkYl72H91KW9ts,1354
|
|
38
|
+
cognite/neat/core/_data_model/importers/_base.py,sha256=pKe2OK86Wdj6CTj5bUgjY33ejZhRfD2eJbjcCapHD58,2013
|
|
39
|
+
cognite/neat/core/_data_model/importers/_base_file_reader.py,sha256=m7CwMujEybYMfHWbTQOb7wBvLl2X1TmROkPelJMSaDA,1621
|
|
40
|
+
cognite/neat/core/_data_model/importers/_dict2data_model.py,sha256=lY_Y9Vpa6tZxaSe9iTm0zOfsYkFY9XZqvzD4U9CWqEg,4645
|
|
41
|
+
cognite/neat/core/_data_model/importers/_dms2data_model.py,sha256=wDtCikD2qEZgl1SWBQ6qIClPXOZVmHNN7HUNaChoWIQ,28294
|
|
42
|
+
cognite/neat/core/_data_model/importers/_spreadsheet2data_model.py,sha256=M2S1dYEqudYPaDYTbrGGuSr1-2fRTAhqRCWDwdo-5MA,12122
|
|
43
|
+
cognite/neat/core/_data_model/importers/_dtdl2data_model/__init__.py,sha256=CNR-sUihs2mnR1bPMKs3j3L4ds3vFTsrl6YycExZTfU,68
|
|
44
|
+
cognite/neat/core/_data_model/importers/_dtdl2data_model/_unit_lookup.py,sha256=wW4saKva61Q_i17guY0dc4OseJDQfqHy_QZBtm0OD6g,12134
|
|
45
|
+
cognite/neat/core/_data_model/importers/_dtdl2data_model/dtdl_converter.py,sha256=mjouy5XQCJoybUkCnEoZFrFtWBQrBQRPIM4DwfMDUkw,11879
|
|
46
|
+
cognite/neat/core/_data_model/importers/_dtdl2data_model/dtdl_importer.py,sha256=t5EkawmYPuQ-dJ1J-IhqhdX_CkaCwQLQDAcpmx7QdS0,6288
|
|
47
|
+
cognite/neat/core/_data_model/importers/_dtdl2data_model/spec.py,sha256=HnKUZbp42pl4DSexo0N6t_20tsvlsxyHHnNak5SVgzg,12182
|
|
48
|
+
cognite/neat/core/_data_model/importers/_rdf/__init__.py,sha256=2alnwoYVj1-F_M0R2NFFp7A9pZUbViJngygOydlC45Y,239
|
|
49
|
+
cognite/neat/core/_data_model/importers/_rdf/_base.py,sha256=kcFuGYbtiidZcHPQgXGZQD3WYi_NCDM0ILWDr9EJGiU,5956
|
|
50
|
+
cognite/neat/core/_data_model/importers/_rdf/_imf2rules.py,sha256=N0I1o2IzsORZEXvZsxBW4GBEzzJDa5vO13B64vil4Jk,3776
|
|
51
|
+
cognite/neat/core/_data_model/importers/_rdf/_inference2rules.py,sha256=aJ5dIgeR_91Yg9C02vjzV8AVJZRfANXJkNol2Jhyu5w,28840
|
|
52
|
+
cognite/neat/core/_data_model/importers/_rdf/_owl2rules.py,sha256=zoqPxD8jY6axmUuozuD7FJR1iLN4h55dzs7ic5YSai0,3452
|
|
53
|
+
cognite/neat/core/_data_model/importers/_rdf/_shared.py,sha256=yB4BkupiPhizWSHNKdaspj3xE_6pKDiNG-_IHtTN1gI,5961
|
|
54
|
+
cognite/neat/core/_data_model/models/__init__.py,sha256=QEsXpd5OkO6IuL7T5WXhn9xMAw5stlUwMuU8C3SjLvs,1218
|
|
55
|
+
cognite/neat/core/_data_model/models/_base_unverified.py,sha256=Y-KTjbIkDFUbrb-Ss1yC9boOwqGOcF_84e7EsOVBbb0,6754
|
|
56
|
+
cognite/neat/core/_data_model/models/_base_verified.py,sha256=fyPSMHB8YNRZGODyE5qL-LzxygERkm9V0zFFLiNqvVI,15528
|
|
57
|
+
cognite/neat/core/_data_model/models/_types.py,sha256=70E8fiLdZkVF2sDUGPuDhzXNA5niVECkVDI7YN0NF60,5488
|
|
58
|
+
cognite/neat/core/_data_model/models/data_types.py,sha256=uQ_u9KxCetLjxo-VtFzOXSxQuuf97Kg-9lfTTGzY6hc,10150
|
|
59
|
+
cognite/neat/core/_data_model/models/conceptual/__init__.py,sha256=9A6myEV8s0-LqdXejaljqPj8S0pIpUL75rNdRDZzyR8,585
|
|
60
|
+
cognite/neat/core/_data_model/models/conceptual/_unverified.py,sha256=apisgtXMb50dOs7rxZ-jcCW4JqxCdAWGtsYtRe3ssfs,6282
|
|
61
|
+
cognite/neat/core/_data_model/models/conceptual/_validation.py,sha256=ppbBKpj6-nh9KYG5WIOXSRlnCPmQJJ40eVXOqHiHrsg,12996
|
|
62
|
+
cognite/neat/core/_data_model/models/conceptual/_verified.py,sha256=Gb7mKFu9vkJkfmjRRlsxS-_hT9GHT9OZYLN3oF25KlU,13650
|
|
63
|
+
cognite/neat/core/_data_model/models/entities/__init__.py,sha256=iQqfJay1j3PgSlZbW4X6nKReGxy3f3BayymqSBQJ6jo,1513
|
|
64
|
+
cognite/neat/core/_data_model/models/entities/_constants.py,sha256=GXRzVfArwxF3C67VCkzy0JWTZRkRJUYXBQaaecrqcWc,351
|
|
65
|
+
cognite/neat/core/_data_model/models/entities/_loaders.py,sha256=PkrVtGlZWYLvAVIRABrgVSgkMvJYpBqdrHBfz-H0Ut8,2783
|
|
66
|
+
cognite/neat/core/_data_model/models/entities/_multi_value.py,sha256=4507L7dr_CL4vo1En6EyMiHhUDOWPTDVR1aYZns6S38,2792
|
|
67
|
+
cognite/neat/core/_data_model/models/entities/_single_value.py,sha256=DRASB2OHj7evMYKNvO1BloKIIfLC2enPjY5PsZ-4ByU,20226
|
|
68
|
+
cognite/neat/core/_data_model/models/entities/_types.py,sha256=AJti5ZtK4CUmsNczkqrIECQmPgO0lFVAmZHbVkChIPk,1948
|
|
69
|
+
cognite/neat/core/_data_model/models/entities/_wrapped.py,sha256=hOvdyxCNFgv1UdfaasviKnbEN4yN09Iip0ggQiaXgB4,7993
|
|
70
|
+
cognite/neat/core/_data_model/models/mapping/__init__.py,sha256=T68Hf7rhiXa7b03h4RMwarAmkGnB-Bbhc1H07b2PyC4,100
|
|
71
|
+
cognite/neat/core/_data_model/models/mapping/_classic2core.py,sha256=Z0QpmvQ43-MhZ62MetEvW-k59TlhMHoTK8M8eM7n-EI,1405
|
|
72
|
+
cognite/neat/core/_data_model/models/mapping/_classic2core.yaml,sha256=ei-nuivNWVW9HmvzDBKIPF6ZdgaMq64XHw_rKm0CMxg,22584
|
|
73
|
+
cognite/neat/core/_data_model/models/physical/__init__.py,sha256=ONE_xLw1cxfw88rICG_RtbjCYUZm8yS2kBQ4Di3EGnA,987
|
|
74
|
+
cognite/neat/core/_data_model/models/physical/_exporter.py,sha256=-R0OyislUJ1mHABhoKZ5Wukqnufdrwctl0d2p3WPd60,29110
|
|
75
|
+
cognite/neat/core/_data_model/models/physical/_unverified.py,sha256=vDA6yNl0nwA3EudobqhHbr6e2vQZ13EWCAlyqXG03oA,16971
|
|
76
|
+
cognite/neat/core/_data_model/models/physical/_validation.py,sha256=ChpVphCpLJL2IXVYyu14Cv0Q1HjSMkdUd-NtzF3nclc,33098
|
|
77
|
+
cognite/neat/core/_data_model/models/physical/_verified.py,sha256=UsfzuIyYRsdUPK9wJM9Wxs4VkD4GiGUQAjRjgDCmIHw,24237
|
|
78
|
+
cognite/neat/core/_data_model/transformers/__init__.py,sha256=Boa-5pMBKiC0drHvElkJvjufOq6Vh2dqGFiKIfRj2mc,1780
|
|
79
|
+
cognite/neat/core/_data_model/transformers/_base.py,sha256=GRn0yaZEinkgJJiPuzi1zKma3W4ZhUEcHLXkEOxfGEE,3122
|
|
80
|
+
cognite/neat/core/_data_model/transformers/_converters.py,sha256=qx_lbyVy4EtJbvWViaRyaCzlenq_h1AJLGoLjGgdcig,111474
|
|
81
|
+
cognite/neat/core/_data_model/transformers/_mapping.py,sha256=oIabTo7fN21wTq5Tlf2bour3xC52lqIrqrkH91nKHb4,19018
|
|
82
|
+
cognite/neat/core/_data_model/transformers/_verification.py,sha256=q9jogqlzbbim7NCSMXHdP2wzdGzu7mKYloxGYt9vsTI,5177
|
|
83
|
+
cognite/neat/core/_instances/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
84
|
+
cognite/neat/core/_instances/_shared.py,sha256=6avH6mtjxjHI7JDLkXwICxGvZwooGBr6APs1_w1To-A,940
|
|
85
|
+
cognite/neat/core/_instances/_tracking/__init__.py,sha256=WOwsYieZtCW-iW15YkxUFrfKVVdLWdXHOGGStTwvE8A,91
|
|
86
|
+
cognite/neat/core/_instances/_tracking/base.py,sha256=tDS7UHFj58sT1CtqWjp3pL5P3n4qqJuf06MpdT2tA2g,826
|
|
87
|
+
cognite/neat/core/_instances/_tracking/log.py,sha256=rXjoRenOZO4TiZl7d1slBhwUUcEbtyD7uuKpg1MGmkg,933
|
|
88
|
+
cognite/neat/core/_instances/examples/Knowledge-Graph-Nordic44-dirty.xml,sha256=ujJip6XBs5n8enVDPzNnuGkMBwv8g21tIr1sEVJpK5M,1439359
|
|
89
|
+
cognite/neat/core/_instances/examples/Knowledge-Graph-Nordic44.xml,sha256=U2Ns-M4LRjT1fBkhmRj63ur7jDzlRtHK9yOLf_npZ_g,1437996
|
|
90
|
+
cognite/neat/core/_instances/examples/__init__.py,sha256=yAjHVY3b5jOjmbW-iLbhvu7BG014TpGi3K4igkDqW5I,368
|
|
91
|
+
cognite/neat/core/_instances/examples/skos-capturing-sheet-wind-topics.xlsx,sha256=CV_yK5ZSbYS_ktfIZUPD8Sevs47zpswLXQUDFkGE4Gw,45798
|
|
92
|
+
cognite/neat/core/_instances/extractors/__init__.py,sha256=6Rl6_za_F1nnLGwOhXvGohvM0-P1sFrxHJRUVqQVBWo,2209
|
|
93
|
+
cognite/neat/core/_instances/extractors/_base.py,sha256=8VhrtEkF9UxHEIL8A8hnhueqvwETIr1388ApSIkwL8Q,1952
|
|
94
|
+
cognite/neat/core/_instances/extractors/_dict.py,sha256=Y5J5WvrIQOa762y59Jv2jNLFQmTSUBwL8XY-ormd7R0,4331
|
|
95
|
+
cognite/neat/core/_instances/extractors/_dms.py,sha256=e687PHBnqh5CS292xaxIRsD9v2cdcsZU3Yg6aVVw4rQ,13840
|
|
96
|
+
cognite/neat/core/_instances/extractors/_dms_graph.py,sha256=DLrPQ8vCdWmrjlgpWPqENLgnlQ1aT1Xid7qq0knoWBU,10195
|
|
97
|
+
cognite/neat/core/_instances/extractors/_mock_graph_generator.py,sha256=RO_-VDmyPKbzSkyxwOTEo1c5O2SHWBVO8W1ef3_dNGs,15909
|
|
98
|
+
cognite/neat/core/_instances/extractors/_raw.py,sha256=Jw_Nci5giKgU7k8NV2SZvnYZ0ykPlE2NEIOZLcr0dlQ,2514
|
|
99
|
+
cognite/neat/core/_instances/extractors/_rdf_file.py,sha256=j93C7WWB5G-e2fFHmItzLfzxkZDqjiSaBrA36wMxIsU,2956
|
|
100
|
+
cognite/neat/core/_instances/extractors/_classic_cdf/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
101
|
+
cognite/neat/core/_instances/extractors/_classic_cdf/_assets.py,sha256=9WVFrAtUFAp_AAlb26Rtt2Axz9xsPQYetg7SKVrNCr4,1474
|
|
102
|
+
cognite/neat/core/_instances/extractors/_classic_cdf/_base.py,sha256=_Pzx1QmqEOuT03BStUx7Y6JuBi4SjRrLnk1qLk5F-nc,18513
|
|
103
|
+
cognite/neat/core/_instances/extractors/_classic_cdf/_classic.py,sha256=UofULDw2fMtMDdymEphspv8X76H26szBbrstHEbo-DU,24430
|
|
104
|
+
cognite/neat/core/_instances/extractors/_classic_cdf/_data_sets.py,sha256=xRFv9pVFgIMTZ45E8teMC0Ynku_CuZdcZkVCbhPuPBk,1294
|
|
105
|
+
cognite/neat/core/_instances/extractors/_classic_cdf/_events.py,sha256=B8hRoMAg8GQvApjxals5PfPyjmdPO93U3nj_G7g0kDQ,1394
|
|
106
|
+
cognite/neat/core/_instances/extractors/_classic_cdf/_files.py,sha256=9lIleYyM3r0_CHteTEWboyknBeHYNtvgpNJuvS9UUU0,1894
|
|
107
|
+
cognite/neat/core/_instances/extractors/_classic_cdf/_labels.py,sha256=7guTZdGFT1r7ItE2VNgXwbBZ1y_005oB3fg1XbwT7WQ,2083
|
|
108
|
+
cognite/neat/core/_instances/extractors/_classic_cdf/_relationships.py,sha256=kNzrqHQuIZMBecZ8957Qs3-Pp2m2-k2CCfiUZlVwaD0,5395
|
|
109
|
+
cognite/neat/core/_instances/extractors/_classic_cdf/_sequences.py,sha256=zwHM52afnq-JHvLOTi4rH6DyfkTftxH6cmODwoZi8uw,11399
|
|
110
|
+
cognite/neat/core/_instances/extractors/_classic_cdf/_timeseries.py,sha256=Py8MDcn82MJcsDPbeqDHMx4g2rQHmEOSHNe6gOi5gew,2044
|
|
111
|
+
cognite/neat/core/_instances/loaders/__init__.py,sha256=XS6vwmxgBzntg7UuG_ct_1hfhShVnFH5u0gGrdA8WfA,699
|
|
112
|
+
cognite/neat/core/_instances/loaders/_base.py,sha256=aw61_p8gne3B8iKuhmi0kl7bYNXRJI34_eN53VlCeD4,4503
|
|
113
|
+
cognite/neat/core/_instances/loaders/_rdf2dms.py,sha256=4U3c7Fq-g26ni8rX06MmwJ_FwiyYaPyiiUnRV7bHj5E,34128
|
|
114
|
+
cognite/neat/core/_instances/queries/__init__.py,sha256=W477LMyB4l6HIRbQhJoFgA_MUBwVCh2GBvtFeZu0AUA,53
|
|
115
|
+
cognite/neat/core/_instances/queries/_base.py,sha256=APevHeeWQDEoOQ0MlBtVlPf9hbZukVkI5fOvt5oPJCE,543
|
|
116
|
+
cognite/neat/core/_instances/queries/_queries.py,sha256=4BidSQXhdZYZ6_kyG7jMJ2iG0UtSrbQxfmwPM7V167A,466
|
|
117
|
+
cognite/neat/core/_instances/queries/_select.py,sha256=ah4F03SJLUVsn_Fw4NHDi1KtiMXYNXpMYlalqW7eK_E,18533
|
|
118
|
+
cognite/neat/core/_instances/queries/_update.py,sha256=j2hU62rEIYWvZ_ZAkm9Khc2lNddnww0W-1jR7MJJbFY,1290
|
|
119
|
+
cognite/neat/core/_instances/transformers/__init__.py,sha256=YzC1Z8BuT77NwagWX4Z-F9R9BARLSS7zM4bCdxBbqKg,1761
|
|
120
|
+
cognite/neat/core/_instances/transformers/_base.py,sha256=RYa9es5fEsjLpaok8liuy73ACPDWwHVfTm2Lq4HVCig,4695
|
|
121
|
+
cognite/neat/core/_instances/transformers/_classic_cdf.py,sha256=Bybiebd9MnDVKqwmwtrToH6CNZG3kLE1YjRYUVCZPVY,25328
|
|
122
|
+
cognite/neat/core/_instances/transformers/_prune_graph.py,sha256=fWE73BndkEB7qfMndrt3afNQ-EsBO7IOfh2-SXAAYK4,12635
|
|
123
|
+
cognite/neat/core/_instances/transformers/_rdfpath.py,sha256=NwK1uBj5fkAThSDRgcTE7Qc8SZKCMSM5oC9MggjC8-I,3161
|
|
124
|
+
cognite/neat/core/_instances/transformers/_value_type.py,sha256=-d18yefiGrx8CaVNLgJe0dF0zsMxtCQxlD2q2ZFGJ8U,15820
|
|
125
|
+
cognite/neat/core/_issues/__init__.py,sha256=NQ-PN3fqp-hBPlpG2AZEND4cDn3_3UXAPfhLNtF5mtc,457
|
|
126
|
+
cognite/neat/core/_issues/_base.py,sha256=iZcqGd5R6nnTBvVDGJ5VV67vQNvDuUzSQGtl2ZjCNP0,11800
|
|
127
|
+
cognite/neat/core/_issues/_contextmanagers.py,sha256=5-QXVmfplt4S_k2csrQ2xuezOOuE5_FxSA9GVGVG1s4,1582
|
|
128
|
+
cognite/neat/core/_issues/_factory.py,sha256=F8xv1_qUAkavFM3s_8Lcsobm22H3zK0CVGSwl0YANoo,2821
|
|
129
|
+
cognite/neat/core/_issues/formatters.py,sha256=k2h_6wHW0ve52gXeuRoEcGwrxqqSe5sYFa_HycPiqW8,3323
|
|
130
|
+
cognite/neat/core/_issues/errors/__init__.py,sha256=Qx70RN1C6JjYj16NtSz191DAUPzM5XxD6OqWSSM_uss,2368
|
|
131
|
+
cognite/neat/core/_issues/errors/_external.py,sha256=AaKwO5-AvX01d7Hd83vqYl1qNmMtgsmShmvyH8ioZAM,2354
|
|
132
|
+
cognite/neat/core/_issues/errors/_general.py,sha256=R6TNBmvCsicqadC56ehiEc9lS18K5DMyK2_UXfv74uA,854
|
|
133
|
+
cognite/neat/core/_issues/errors/_properties.py,sha256=XkMLO4tkFX8vmGRixLdsmDAnlcipc78lypGccMYVAQk,2541
|
|
134
|
+
cognite/neat/core/_issues/errors/_resources.py,sha256=OHgOIv-GSpZh6VPUINUAIn-sboCdeawWH_Qnm0MO168,3997
|
|
135
|
+
cognite/neat/core/_issues/errors/_wrapper.py,sha256=clhuSwUuHy-FQXQopFIQRY8c_NZM5u-QB9ncoc6Hrbo,2320
|
|
136
|
+
cognite/neat/core/_issues/warnings/__init__.py,sha256=wWt2GzMnz8PqhebT02jfUlBy4SbwXAeuWsWWga-kGL4,3101
|
|
137
|
+
cognite/neat/core/_issues/warnings/_external.py,sha256=w-1R7ea6DXTIWqwlwMMjY0YxKDMSJ8gKAbp_nIIM1AI,1324
|
|
138
|
+
cognite/neat/core/_issues/warnings/_general.py,sha256=_6dAFaMz-LIv7GsBBIBq2d-kmbuxVXKvU4jZeb7tjAo,972
|
|
139
|
+
cognite/neat/core/_issues/warnings/_models.py,sha256=0uqJTR8sXiobIqqh05sRc8-QdMuV6h_4ZDm2RfxpEew,4396
|
|
140
|
+
cognite/neat/core/_issues/warnings/_properties.py,sha256=XBPgOd83MbO9G0cDjAmYZ5O_ShOcYq4wT6sZGlNNvRU,3442
|
|
141
|
+
cognite/neat/core/_issues/warnings/_resources.py,sha256=_iPRq0pRMmRu3LFjqZTaG3OqOzw4f8-Vc9G4Im__FHc,3578
|
|
142
|
+
cognite/neat/core/_issues/warnings/user_modeling.py,sha256=Qn_S8TLw7MMYQaJcZBScJA48kz_PrTWz0NaepSR70Fk,4144
|
|
143
|
+
cognite/neat/core/_store/__init__.py,sha256=wpsF8xjIQ5V21NOh45XQV813n_EzgyPOt0VVinYjnDI,140
|
|
144
|
+
cognite/neat/core/_store/_data_model.py,sha256=a7061nfqmiWConIU0CBDISEjoY_dwHLzvA3PHk8-KRY,19583
|
|
145
|
+
cognite/neat/core/_store/_instance.py,sha256=F8KAUh46Be8mTLH2KGsL44lCAJf5emyk4lRXGs_V8vs,17374
|
|
146
|
+
cognite/neat/core/_store/_provenance.py,sha256=aMEsq27dZ4NZ6XEC8hA0fIDF13i1ZP3QwnclLCRaNk4,7326
|
|
147
|
+
cognite/neat/core/_store/exceptions.py,sha256=jcd1Gv65mfTdC4cipFAMWUNghEmdLS_lwPH1FB_ebxI,1656
|
|
148
|
+
cognite/neat/core/_utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
149
|
+
cognite/neat/core/_utils/auth.py,sha256=tP_diUZdtacUkM8TLlbSOyHlNcq9VGh-4o_7myWRU_o,14763
|
|
150
|
+
cognite/neat/core/_utils/auxiliary.py,sha256=0A5dE0oLahErqAClF3OjRge_RFqnq3GBK6L3t-GpmuM,6850
|
|
151
|
+
cognite/neat/core/_utils/collection_.py,sha256=zVrSmm4045pjw6Pt6y4VPTIJ4dXdMJPyOV70LdFyDBM,2376
|
|
152
|
+
cognite/neat/core/_utils/graph_transformations_report.py,sha256=ORVH7lw357TPOq4elU5lH46Qx6GCLVrSj-1nX6Ggk1U,1235
|
|
153
|
+
cognite/neat/core/_utils/io_.py,sha256=D2Mg8sOxfBoDg3fC0jBzaxO3vkXmr0QvZSgYIv6xRkM,386
|
|
154
|
+
cognite/neat/core/_utils/rdf_.py,sha256=8AALp8H_nXEDSBo6jZ1idyT_x3K4PJT5ZyBEyxPmgxI,10403
|
|
155
|
+
cognite/neat/core/_utils/spreadsheet.py,sha256=MMI_1zxeHEf9Ggu_-t_ryjj54ky085QIf8eArt5hXEY,5749
|
|
156
|
+
cognite/neat/core/_utils/text.py,sha256=ON4ihfscFJkQqQ-Rj46XXtf-9tAobwXbbfa3wuekSu4,8519
|
|
157
|
+
cognite/neat/core/_utils/time_.py,sha256=7ayUm0OWZm1JDmy32E4ip8WRr2o0GLwrHwJA8sJ43Z4,357
|
|
158
|
+
cognite/neat/core/_utils/upload.py,sha256=yR-BvvrWPh0XHoIGByXMEVi3JONzmc5xwXbmEDBdA8U,5860
|
|
159
|
+
cognite/neat/core/_utils/xml_.py,sha256=FQkq84u35MUsnKcL6nTMJ9ajtG9D5i1u4VBnhGqP2DQ,1710
|
|
160
|
+
cognite/neat/core/_utils/reader/__init__.py,sha256=fPkrNB_9hLB7CyHTCFV_xEbIfOMqUQzNly5JN33-QfM,146
|
|
161
|
+
cognite/neat/core/_utils/reader/_base.py,sha256=fRXxUWW8a3UFedeCLxDTDgFntWGlHaEGxmKLcITtiWE,5417
|
|
162
|
+
cognite/neat/session/__init__.py,sha256=fxQ5URVlUnmEGYyB8Baw7IDq-uYacqkigbc4b-Pr9Fw,58
|
|
163
|
+
cognite/neat/session/_base.py,sha256=qxXlXJtx57In-92Jo4myJz1lzV8IjewX8tvADdXB59M,12583
|
|
164
|
+
cognite/neat/session/_collector.py,sha256=-icWXOT9YBjAOVZfpPtBx-D39kpRP2RaQKdPtcr7Xm8,4233
|
|
165
|
+
cognite/neat/session/_drop.py,sha256=MmhSTMpeOc380euRrNn3Lzf1AlZrAR1nAp1cn7nITAY,4221
|
|
166
|
+
cognite/neat/session/_experimental.py,sha256=LvvLIpOO5OBC-fIXkhe-ghEF1uSeEYoWvwT6-ajrhQw,1219
|
|
167
|
+
cognite/neat/session/_explore.py,sha256=PLxpHDqBk5B0Q4a5tJKnF6KzL4heQ77b2qUETbf6iVQ,1599
|
|
168
|
+
cognite/neat/session/_fix.py,sha256=9XrNIH1Zw4DI0HDH3XqnI2c-us4V0CyZpoM_Mtt2H0g,913
|
|
169
|
+
cognite/neat/session/_inspect.py,sha256=YggE3TJL1nU8UEc3qDqH_0dcJgzKylyShbgGNxW-ETU,10135
|
|
170
|
+
cognite/neat/session/_mapping.py,sha256=470I0YRW4M9bHkt-JTsPi1Gfx4DNqcH-CRYBvvFZ1lE,2762
|
|
171
|
+
cognite/neat/session/_prepare.py,sha256=xa-35JKgi1j8X347ub6komEMNGFjytPaQReFOgeFHnA,12760
|
|
172
|
+
cognite/neat/session/_read.py,sha256=WdAjJsYSn-BtI35Zjvy730JBeZMriAiVeMMsltCMq3k,35054
|
|
173
|
+
cognite/neat/session/_set.py,sha256=wOyxemhLnpH0qciFeGxJbb1rluheLRWn-3EmLnuKUEM,4555
|
|
174
|
+
cognite/neat/session/_show.py,sha256=nEATndz1pNYvNIYFByItnHcrCkCikTk0PL5L4UgyPbc,10638
|
|
175
|
+
cognite/neat/session/_state.py,sha256=BVbQCrvWqFLAmA00YJtcCV2CBIkZJXklI6sR1Id4Aqw,6446
|
|
176
|
+
cognite/neat/session/_subset.py,sha256=S-9WLTG3U8NPUuIfS5TYAQIs45Vc-Fzsd2vPcjUeNsE,2801
|
|
177
|
+
cognite/neat/session/_template.py,sha256=blqKN39EI8P8YyBITegnGxIOOTqXa5l9e4BIBLvVHOE,9819
|
|
178
|
+
cognite/neat/session/_to.py,sha256=EPBZ7Ll25jGDcENrwkJt5bFbI8tR-wE26aaHfYEE04Q,19068
|
|
179
|
+
cognite/neat/session/_wizard.py,sha256=hARNNzD5Zfkk_V147rIjOLVvrFaqzXGXWhZuH1NJG3M,1486
|
|
180
|
+
cognite/neat/session/exceptions.py,sha256=pZ6z5GXBTOjmh6xIszYMYL5LckOMcqfcT_BrxHQGOTo,3269
|
|
181
|
+
cognite/neat/session/_state/README.md,sha256=G6my1CtTDNyIR7G3H1Is_92dHsH_dXjmJmYQb9xh_dk,898
|
|
182
|
+
cognite/neat/session/engine/__init__.py,sha256=D3MxUorEs6-NtgoICqtZ8PISQrjrr4dvca6n48bu_bI,120
|
|
183
|
+
cognite/neat/session/engine/_import.py,sha256=1QxA2_EK613lXYAHKQbZyw2yjo5P9XuiX4Z6_6-WMNQ,169
|
|
184
|
+
cognite/neat/session/engine/_interface.py,sha256=3W-cYr493c_mW3P5O6MKN1xEQg3cA7NHR_ev3zdF9Vk,533
|
|
185
|
+
cognite/neat/session/engine/_load.py,sha256=g52uYakQM03VqHt_RDHtpHso1-mFFifH5M4T2ScuH8A,5198
|
|
186
|
+
cognite_neat-0.121.2.dist-info/METADATA,sha256=wFZ-StxSUaQ74_Yvyq0ZzL1n8Vk_PtbAgttDNN54IrA,7608
|
|
187
|
+
cognite_neat-0.121.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
188
|
+
cognite_neat-0.121.2.dist-info/licenses/LICENSE,sha256=W8VmvFia4WHa3Gqxq1Ygrq85McUNqIGDVgtdvzT-XqA,11351
|
|
189
|
+
cognite_neat-0.121.2.dist-info/RECORD,,
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
from dataclasses import dataclass
|
|
2
|
-
from typing import Generic, TypeAlias, TypeVar
|
|
3
|
-
|
|
4
|
-
from cognite.neat.core._rules.models import (
|
|
5
|
-
DMSRules,
|
|
6
|
-
InformationRules,
|
|
7
|
-
)
|
|
8
|
-
from cognite.neat.core._rules.models.dms._rules_input import DMSInputRules
|
|
9
|
-
from cognite.neat.core._rules.models.information._rules_input import (
|
|
10
|
-
InformationInputRules,
|
|
11
|
-
)
|
|
12
|
-
from cognite.neat.core._utils.spreadsheet import SpreadsheetRead
|
|
13
|
-
|
|
14
|
-
VerifiedRules: TypeAlias = InformationRules | DMSRules
|
|
15
|
-
|
|
16
|
-
T_VerifiedRules = TypeVar("T_VerifiedRules", bound=VerifiedRules)
|
|
17
|
-
InputRules: TypeAlias = DMSInputRules | InformationInputRules
|
|
18
|
-
T_InputRules = TypeVar("T_InputRules", bound=InputRules)
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
@dataclass
|
|
22
|
-
class ReadRules(Generic[T_InputRules]):
|
|
23
|
-
"""This represents a rules that has been read."""
|
|
24
|
-
|
|
25
|
-
rules: T_InputRules | None
|
|
26
|
-
read_context: dict[str, SpreadsheetRead]
|
|
27
|
-
|
|
28
|
-
@classmethod
|
|
29
|
-
def display_type_name(cls) -> str:
|
|
30
|
-
return "UnverifiedModel"
|
|
31
|
-
|
|
32
|
-
@property
|
|
33
|
-
def display_name(self) -> str:
|
|
34
|
-
if self.rules is None:
|
|
35
|
-
return "FailedRead"
|
|
36
|
-
return self.rules.display_name
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
ReadInputRules: TypeAlias = ReadRules[DMSInputRules] | ReadRules[InformationInputRules]
|
|
40
|
-
T_ReadInputRules = TypeVar("T_ReadInputRules", bound=ReadInputRules)
|
|
41
|
-
|
|
42
|
-
Rules: TypeAlias = InformationRules | DMSRules | ReadRules[DMSInputRules] | ReadRules[InformationInputRules]
|
|
43
|
-
T_Rules = TypeVar("T_Rules", bound=Rules)
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
from collections import defaultdict
|
|
2
|
-
from collections.abc import Iterable
|
|
3
|
-
|
|
4
|
-
from cognite.neat.core._rules.models.entities import ClassEntity
|
|
5
|
-
from cognite.neat.core._rules.models.information import InformationProperty
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
def duplicated_properties(
|
|
9
|
-
properties: Iterable[InformationProperty],
|
|
10
|
-
) -> dict[tuple[ClassEntity, str], list[tuple[int, InformationProperty]]]:
|
|
11
|
-
class_properties_by_id: dict[tuple[ClassEntity, str], list[tuple[int, InformationProperty]]] = defaultdict(list)
|
|
12
|
-
for prop_no, prop in enumerate(properties):
|
|
13
|
-
class_properties_by_id[(prop.class_, prop.property_)].append((prop_no, prop))
|
|
14
|
-
return {k: v for k, v in class_properties_by_id.items() if len(v) > 1}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
from cognite.neat.core._client.data_classes.schema import DMSSchema
|
|
2
|
-
from cognite.neat.core._rules.models.information._rules import InformationRules
|
|
3
|
-
from cognite.neat.core._rules.models.information._rules_input import (
|
|
4
|
-
InformationInputRules,
|
|
5
|
-
)
|
|
6
|
-
|
|
7
|
-
from ._base_rules import DataModelType, ExtensionCategory, RoleTypes, SchemaCompleteness, SheetList, SheetRow
|
|
8
|
-
from .dms._rules import DMSRules
|
|
9
|
-
from .dms._rules_input import DMSInputRules
|
|
10
|
-
|
|
11
|
-
INPUT_RULES_BY_ROLE: dict[RoleTypes, type[InformationInputRules] | type[DMSInputRules]] = {
|
|
12
|
-
RoleTypes.information: InformationInputRules,
|
|
13
|
-
RoleTypes.dms: DMSInputRules,
|
|
14
|
-
}
|
|
15
|
-
VERIFIED_RULES_BY_ROLE: dict[RoleTypes, type[InformationRules] | type[DMSRules]] = {
|
|
16
|
-
RoleTypes.information: InformationRules,
|
|
17
|
-
RoleTypes.dms: DMSRules,
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
__all__ = [
|
|
22
|
-
"INPUT_RULES_BY_ROLE",
|
|
23
|
-
"DMSInputRules",
|
|
24
|
-
"DMSRules",
|
|
25
|
-
"DMSSchema",
|
|
26
|
-
"DataModelType",
|
|
27
|
-
"ExtensionCategory",
|
|
28
|
-
"InformationInputRules",
|
|
29
|
-
"InformationRules",
|
|
30
|
-
"RoleTypes",
|
|
31
|
-
"SchemaCompleteness",
|
|
32
|
-
"SheetList",
|
|
33
|
-
"SheetRow",
|
|
34
|
-
]
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
from cognite.neat.core._client.data_classes.schema import DMSSchema
|
|
2
|
-
|
|
3
|
-
from ._rules import DMSContainer, DMSEnum, DMSMetadata, DMSNode, DMSProperty, DMSRules, DMSView
|
|
4
|
-
from ._rules_input import (
|
|
5
|
-
DMSInputContainer,
|
|
6
|
-
DMSInputEnum,
|
|
7
|
-
DMSInputMetadata,
|
|
8
|
-
DMSInputNode,
|
|
9
|
-
DMSInputProperty,
|
|
10
|
-
DMSInputRules,
|
|
11
|
-
DMSInputView,
|
|
12
|
-
)
|
|
13
|
-
from ._validation import DMSValidation
|
|
14
|
-
|
|
15
|
-
__all__ = [
|
|
16
|
-
"DMSContainer",
|
|
17
|
-
"DMSEnum",
|
|
18
|
-
"DMSInputContainer",
|
|
19
|
-
"DMSInputEnum",
|
|
20
|
-
"DMSInputMetadata",
|
|
21
|
-
"DMSInputNode",
|
|
22
|
-
"DMSInputProperty",
|
|
23
|
-
"DMSInputRules",
|
|
24
|
-
"DMSInputView",
|
|
25
|
-
"DMSMetadata",
|
|
26
|
-
"DMSNode",
|
|
27
|
-
"DMSProperty",
|
|
28
|
-
"DMSRules",
|
|
29
|
-
"DMSSchema",
|
|
30
|
-
"DMSValidation",
|
|
31
|
-
"DMSView",
|
|
32
|
-
]
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
from ._rules import InformationClass, InformationMetadata, InformationProperty, InformationRules
|
|
2
|
-
from ._rules_input import (
|
|
3
|
-
InformationInputClass,
|
|
4
|
-
InformationInputMetadata,
|
|
5
|
-
InformationInputProperty,
|
|
6
|
-
InformationInputRules,
|
|
7
|
-
)
|
|
8
|
-
from ._validation import InformationValidation
|
|
9
|
-
|
|
10
|
-
__all__ = [
|
|
11
|
-
"InformationClass",
|
|
12
|
-
"InformationInputClass",
|
|
13
|
-
"InformationInputMetadata",
|
|
14
|
-
"InformationInputProperty",
|
|
15
|
-
"InformationInputRules",
|
|
16
|
-
"InformationMetadata",
|
|
17
|
-
"InformationProperty",
|
|
18
|
-
"InformationRules",
|
|
19
|
-
"InformationValidation",
|
|
20
|
-
]
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
from abc import ABC
|
|
2
|
-
|
|
3
|
-
from cognite.neat.core._client import NeatClient
|
|
4
|
-
from cognite.neat.core._issues import MultiValueError, catch_issues
|
|
5
|
-
from cognite.neat.core._issues.errors import NeatTypeError, NeatValueError
|
|
6
|
-
from cognite.neat.core._rules._shared import (
|
|
7
|
-
ReadRules,
|
|
8
|
-
T_ReadInputRules,
|
|
9
|
-
T_VerifiedRules,
|
|
10
|
-
VerifiedRules,
|
|
11
|
-
)
|
|
12
|
-
from cognite.neat.core._rules.models import (
|
|
13
|
-
DMSInputRules,
|
|
14
|
-
DMSRules,
|
|
15
|
-
InformationInputRules,
|
|
16
|
-
InformationRules,
|
|
17
|
-
)
|
|
18
|
-
from cognite.neat.core._rules.models.dms import DMSValidation
|
|
19
|
-
from cognite.neat.core._rules.models.information import InformationValidation
|
|
20
|
-
|
|
21
|
-
from ._base import RulesTransformer
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
class VerificationTransformer(RulesTransformer[T_ReadInputRules, T_VerifiedRules], ABC):
|
|
25
|
-
"""Base class for all verification transformers."""
|
|
26
|
-
|
|
27
|
-
_rules_cls: type[T_VerifiedRules]
|
|
28
|
-
_validation_cls: type
|
|
29
|
-
|
|
30
|
-
def __init__(self, validate: bool = True, client: NeatClient | None = None) -> None:
|
|
31
|
-
self.validate = validate
|
|
32
|
-
self._client = client
|
|
33
|
-
|
|
34
|
-
def transform(self, rules: T_ReadInputRules) -> T_VerifiedRules:
|
|
35
|
-
in_ = rules.rules
|
|
36
|
-
if in_ is None:
|
|
37
|
-
raise NeatValueError("Cannot verify rules. The reading of the rules failed.")
|
|
38
|
-
verified_rules: T_VerifiedRules | None = None
|
|
39
|
-
# We need to catch issues as we use the error args to provide extra context for the errors/warnings
|
|
40
|
-
# For example, which row in the spreadsheet the error occurred.
|
|
41
|
-
with catch_issues(rules.read_context) as issues:
|
|
42
|
-
rules_cls = self._get_rules_cls(rules)
|
|
43
|
-
dumped = in_.dump()
|
|
44
|
-
verified_rules = rules_cls.model_validate(dumped) # type: ignore[assignment]
|
|
45
|
-
if self.validate:
|
|
46
|
-
validation_cls = self._get_validation_cls(verified_rules) # type: ignore[arg-type]
|
|
47
|
-
if issubclass(validation_cls, DMSValidation):
|
|
48
|
-
validation_issues = DMSValidation(verified_rules, self._client, rules.read_context).validate() # type: ignore[arg-type]
|
|
49
|
-
elif issubclass(validation_cls, InformationValidation):
|
|
50
|
-
validation_issues = InformationValidation(verified_rules, rules.read_context).validate() # type: ignore[arg-type]
|
|
51
|
-
else:
|
|
52
|
-
raise NeatValueError("Unsupported rule type")
|
|
53
|
-
issues.extend(validation_issues)
|
|
54
|
-
|
|
55
|
-
# Raise issues which is expected to be handled outside of this method
|
|
56
|
-
issues.trigger_warnings()
|
|
57
|
-
if issues.has_errors:
|
|
58
|
-
raise MultiValueError(issues.errors)
|
|
59
|
-
if verified_rules is None:
|
|
60
|
-
raise NeatValueError("Rules were not verified")
|
|
61
|
-
return verified_rules
|
|
62
|
-
|
|
63
|
-
def _get_rules_cls(self, in_: T_ReadInputRules) -> type[T_VerifiedRules]:
|
|
64
|
-
return self._rules_cls
|
|
65
|
-
|
|
66
|
-
def _get_validation_cls(self, rules: T_VerifiedRules) -> type:
|
|
67
|
-
return self._validation_cls
|
|
68
|
-
|
|
69
|
-
@property
|
|
70
|
-
def description(self) -> str:
|
|
71
|
-
return "Verify rules"
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
class VerifyDMSRules(VerificationTransformer[ReadRules[DMSInputRules], DMSRules]):
|
|
75
|
-
"""Class to verify DMS rules."""
|
|
76
|
-
|
|
77
|
-
_rules_cls = DMSRules
|
|
78
|
-
_validation_cls = DMSValidation
|
|
79
|
-
|
|
80
|
-
def transform(self, rules: ReadRules[DMSInputRules]) -> DMSRules:
|
|
81
|
-
return super().transform(rules)
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
class VerifyInformationRules(VerificationTransformer[ReadRules[InformationInputRules], InformationRules]):
|
|
85
|
-
"""Class to verify Information rules."""
|
|
86
|
-
|
|
87
|
-
_rules_cls = InformationRules
|
|
88
|
-
_validation_cls = InformationValidation
|
|
89
|
-
|
|
90
|
-
def transform(self, rules: ReadRules[InformationInputRules]) -> InformationRules:
|
|
91
|
-
return super().transform(rules)
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
class VerifyAnyRules(VerificationTransformer[T_ReadInputRules, VerifiedRules]):
|
|
95
|
-
"""Class to verify arbitrary rules"""
|
|
96
|
-
|
|
97
|
-
def _get_rules_cls(self, in_: T_ReadInputRules) -> type[VerifiedRules]:
|
|
98
|
-
if isinstance(in_.rules, InformationInputRules):
|
|
99
|
-
return InformationRules
|
|
100
|
-
elif isinstance(in_.rules, DMSInputRules):
|
|
101
|
-
return DMSRules
|
|
102
|
-
else:
|
|
103
|
-
raise NeatTypeError(f"Unsupported rules type: {type(in_)}")
|
|
104
|
-
|
|
105
|
-
def _get_validation_cls(self, rules: VerifiedRules) -> type:
|
|
106
|
-
if isinstance(rules, InformationRules):
|
|
107
|
-
return InformationValidation
|
|
108
|
-
elif isinstance(rules, DMSRules):
|
|
109
|
-
return DMSValidation
|
|
110
|
-
else:
|
|
111
|
-
raise NeatTypeError(f"Unsupported rules type: {type(rules)}")
|