cognite-neat 0.88.1__py3-none-any.whl → 0.88.3__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.
- cognite/neat/_version.py +1 -1
- cognite/neat/graph/__init__.py +0 -3
- cognite/neat/graph/loaders/_base.py +6 -6
- cognite/neat/graph/loaders/_rdf2asset.py +28 -31
- cognite/neat/graph/loaders/_rdf2dms.py +24 -15
- cognite/neat/issues/__init__.py +14 -0
- cognite/neat/issues/_base.py +415 -0
- cognite/neat/issues/errors/__init__.py +72 -0
- cognite/neat/issues/errors/_external.py +67 -0
- cognite/neat/issues/errors/_general.py +28 -0
- cognite/neat/issues/errors/_properties.py +62 -0
- cognite/neat/issues/errors/_resources.py +111 -0
- cognite/neat/issues/errors/_workflow.py +36 -0
- cognite/neat/{rules/issues → issues}/formatters.py +10 -10
- cognite/neat/issues/warnings/__init__.py +66 -0
- cognite/neat/issues/warnings/_external.py +40 -0
- cognite/neat/issues/warnings/_general.py +29 -0
- cognite/neat/issues/warnings/_models.py +92 -0
- cognite/neat/issues/warnings/_properties.py +44 -0
- cognite/neat/issues/warnings/_resources.py +55 -0
- cognite/neat/issues/warnings/user_modeling.py +113 -0
- cognite/neat/rules/_shared.py +10 -2
- cognite/neat/rules/exporters/_base.py +6 -6
- cognite/neat/rules/exporters/_rules2dms.py +19 -11
- cognite/neat/rules/exporters/_rules2excel.py +4 -4
- cognite/neat/rules/exporters/_rules2ontology.py +74 -51
- cognite/neat/rules/exporters/_rules2yaml.py +3 -3
- cognite/neat/rules/exporters/_validation.py +11 -96
- cognite/neat/rules/importers/__init__.py +7 -3
- cognite/neat/rules/importers/_base.py +9 -13
- cognite/neat/rules/importers/_dms2rules.py +42 -24
- cognite/neat/rules/importers/_dtdl2rules/dtdl_converter.py +49 -53
- cognite/neat/rules/importers/_dtdl2rules/dtdl_importer.py +31 -23
- cognite/neat/rules/importers/_dtdl2rules/spec.py +7 -0
- cognite/neat/rules/importers/_rdf/_imf2rules/__init__.py +3 -0
- cognite/neat/rules/importers/_rdf/_imf2rules/_imf2classes.py +82 -0
- cognite/neat/rules/importers/_rdf/_imf2rules/_imf2metadata.py +34 -0
- cognite/neat/rules/importers/_rdf/_imf2rules/_imf2properties.py +123 -0
- cognite/neat/rules/importers/{_owl2rules/_owl2rules.py → _rdf/_imf2rules/_imf2rules.py} +24 -18
- cognite/neat/rules/importers/{_inference2rules.py → _rdf/_inference2rules.py} +9 -9
- cognite/neat/rules/importers/_rdf/_owl2rules/_owl2classes.py +58 -0
- cognite/neat/rules/importers/_rdf/_owl2rules/_owl2metadata.py +68 -0
- cognite/neat/rules/importers/_rdf/_owl2rules/_owl2properties.py +60 -0
- cognite/neat/rules/importers/_rdf/_owl2rules/_owl2rules.py +76 -0
- cognite/neat/rules/importers/_rdf/_shared.py +586 -0
- cognite/neat/rules/importers/_spreadsheet2rules.py +35 -22
- cognite/neat/rules/importers/_yaml2rules.py +23 -21
- cognite/neat/rules/models/_constants.py +2 -1
- cognite/neat/rules/models/_rdfpath.py +4 -4
- cognite/neat/rules/models/_types/_field.py +9 -11
- cognite/neat/rules/models/asset/_rules.py +1 -3
- cognite/neat/rules/models/asset/_validation.py +14 -10
- cognite/neat/rules/models/dms/_converter.py +2 -4
- cognite/neat/rules/models/dms/_exporter.py +30 -8
- cognite/neat/rules/models/dms/_rules.py +23 -7
- cognite/neat/rules/models/dms/_schema.py +94 -62
- cognite/neat/rules/models/dms/_validation.py +105 -66
- cognite/neat/rules/models/entities.py +3 -0
- cognite/neat/rules/models/information/_converter.py +2 -2
- cognite/neat/rules/models/information/_rules.py +7 -8
- cognite/neat/rules/models/information/_validation.py +48 -25
- cognite/neat/rules/transformers/__init__.py +0 -0
- cognite/neat/rules/transformers/_base.py +15 -0
- cognite/neat/utils/auxiliary.py +2 -35
- cognite/neat/utils/text.py +17 -0
- cognite/neat/workflows/base.py +4 -4
- cognite/neat/workflows/cdf_store.py +3 -3
- cognite/neat/workflows/steps/data_contracts.py +1 -1
- cognite/neat/workflows/steps/lib/current/graph_extractor.py +3 -3
- cognite/neat/workflows/steps/lib/current/graph_loader.py +2 -2
- cognite/neat/workflows/steps/lib/current/graph_store.py +1 -1
- cognite/neat/workflows/steps/lib/current/rules_exporter.py +10 -10
- cognite/neat/workflows/steps/lib/current/rules_importer.py +78 -6
- cognite/neat/workflows/steps/lib/current/rules_validator.py +20 -9
- cognite/neat/workflows/steps/lib/io/io_steps.py +5 -5
- cognite/neat/workflows/steps_registry.py +4 -5
- {cognite_neat-0.88.1.dist-info → cognite_neat-0.88.3.dist-info}/METADATA +1 -1
- {cognite_neat-0.88.1.dist-info → cognite_neat-0.88.3.dist-info}/RECORD +86 -77
- cognite/neat/exceptions.py +0 -145
- cognite/neat/graph/exceptions.py +0 -90
- cognite/neat/graph/issues/loader.py +0 -104
- cognite/neat/issues.py +0 -158
- cognite/neat/rules/importers/_owl2rules/_owl2classes.py +0 -215
- cognite/neat/rules/importers/_owl2rules/_owl2metadata.py +0 -209
- cognite/neat/rules/importers/_owl2rules/_owl2properties.py +0 -203
- cognite/neat/rules/issues/__init__.py +0 -26
- cognite/neat/rules/issues/base.py +0 -82
- cognite/neat/rules/issues/dms.py +0 -683
- cognite/neat/rules/issues/fileread.py +0 -197
- cognite/neat/rules/issues/importing.py +0 -423
- cognite/neat/rules/issues/ontology.py +0 -298
- cognite/neat/rules/issues/spreadsheet.py +0 -563
- cognite/neat/rules/issues/spreadsheet_file.py +0 -151
- cognite/neat/rules/issues/tables.py +0 -72
- cognite/neat/workflows/_exceptions.py +0 -41
- /cognite/neat/{graph/issues → rules/importers/_rdf}/__init__.py +0 -0
- /cognite/neat/rules/importers/{_owl2rules → _rdf/_owl2rules}/__init__.py +0 -0
- /cognite/neat/{graph/stores → store}/__init__.py +0 -0
- /cognite/neat/{graph/stores → store}/_base.py +0 -0
- /cognite/neat/{graph/stores → store}/_provenance.py +0 -0
- {cognite_neat-0.88.1.dist-info → cognite_neat-0.88.3.dist-info}/LICENSE +0 -0
- {cognite_neat-0.88.1.dist-info → cognite_neat-0.88.3.dist-info}/WHEEL +0 -0
- {cognite_neat-0.88.1.dist-info → cognite_neat-0.88.3.dist-info}/entry_points.txt +0 -0
|
@@ -5,12 +5,11 @@ from typing import ClassVar
|
|
|
5
5
|
|
|
6
6
|
from cognite.client import CogniteClient
|
|
7
7
|
|
|
8
|
-
from cognite.neat.
|
|
9
|
-
from cognite.neat.
|
|
10
|
-
from cognite.neat.
|
|
8
|
+
from cognite.neat.issues import NeatIssueList
|
|
9
|
+
from cognite.neat.issues.errors import ResourceNotFoundError, WorkflowStepNotInitializedError
|
|
10
|
+
from cognite.neat.issues.formatters import FORMATTER_BY_NAME
|
|
11
11
|
from cognite.neat.rules.models import DMSRules, SchemaCompleteness
|
|
12
12
|
from cognite.neat.utils.cdf.loaders import ViewLoader
|
|
13
|
-
from cognite.neat.workflows._exceptions import StepNotInitialized
|
|
14
13
|
from cognite.neat.workflows.model import FlowMessage, StepExecutionStatus
|
|
15
14
|
from cognite.neat.workflows.steps.data_contracts import MultiRuleData
|
|
16
15
|
from cognite.neat.workflows.steps.step_model import Configurable, Step
|
|
@@ -42,7 +41,7 @@ class ValidateRulesAgainstCDF(Step):
|
|
|
42
41
|
|
|
43
42
|
def run(self, rules: MultiRuleData, cdf_client: CogniteClient) -> FlowMessage: # type: ignore[override, syntax]
|
|
44
43
|
if self.configs is None or self.data_store_path is None:
|
|
45
|
-
raise
|
|
44
|
+
raise WorkflowStepNotInitializedError(type(self).__name__)
|
|
46
45
|
|
|
47
46
|
if not isinstance(rules.dms, DMSRules):
|
|
48
47
|
return FlowMessage(
|
|
@@ -61,9 +60,21 @@ class ValidateRulesAgainstCDF(Step):
|
|
|
61
60
|
if not errors:
|
|
62
61
|
return FlowMessage(output_text="Rules are complete and valid. No need to fetch from CDF.")
|
|
63
62
|
|
|
64
|
-
missing_spaces = [
|
|
65
|
-
|
|
66
|
-
|
|
63
|
+
missing_spaces = [
|
|
64
|
+
error.identifier
|
|
65
|
+
for error in errors
|
|
66
|
+
if isinstance(error, ResourceNotFoundError) and error.resource_type == "Space"
|
|
67
|
+
]
|
|
68
|
+
missing_views = [
|
|
69
|
+
error.identifier
|
|
70
|
+
for error in errors
|
|
71
|
+
if isinstance(error, ResourceNotFoundError) and error.resource_type == "View"
|
|
72
|
+
]
|
|
73
|
+
missing_containers = [
|
|
74
|
+
error.identifier
|
|
75
|
+
for error in errors
|
|
76
|
+
if isinstance(error, ResourceNotFoundError) and error.resource_type == "Container"
|
|
77
|
+
]
|
|
67
78
|
|
|
68
79
|
retrieved_spaces = cdf_client.data_modeling.spaces.retrieve(missing_spaces).as_write()
|
|
69
80
|
retrieved_containers = cdf_client.data_modeling.containers.retrieve(missing_containers).as_write()
|
|
@@ -87,7 +98,7 @@ class ValidateRulesAgainstCDF(Step):
|
|
|
87
98
|
output_dir = self.data_store_path / Path("staging")
|
|
88
99
|
report_writer = FORMATTER_BY_NAME[self.configs["Report Formatter"]]()
|
|
89
100
|
report_writer.write_to_file(
|
|
90
|
-
|
|
101
|
+
NeatIssueList(errors, title=dms_rules.metadata.name or dms_rules.metadata.external_id),
|
|
91
102
|
file_or_dir_path=output_dir,
|
|
92
103
|
)
|
|
93
104
|
report_file = report_writer.default_file_name
|
|
@@ -6,7 +6,7 @@ from typing import ClassVar
|
|
|
6
6
|
import requests
|
|
7
7
|
from cognite.client import CogniteClient
|
|
8
8
|
|
|
9
|
-
from cognite.neat.
|
|
9
|
+
from cognite.neat.issues.errors import WorkflowStepNotInitializedError
|
|
10
10
|
from cognite.neat.workflows.model import FlowMessage, StepExecutionStatus
|
|
11
11
|
from cognite.neat.workflows.steps.step_model import Configurable, Step
|
|
12
12
|
|
|
@@ -51,7 +51,7 @@ class DownloadFileFromGitHub(Step):
|
|
|
51
51
|
|
|
52
52
|
def run(self) -> FlowMessage: # type: ignore[override, syntax]
|
|
53
53
|
if self.configs is None or self.data_store_path is None:
|
|
54
|
-
raise
|
|
54
|
+
raise WorkflowStepNotInitializedError(type(self).__name__)
|
|
55
55
|
github_filepath = self.configs["github.filepath"]
|
|
56
56
|
github_personal_token = self.configs["github.personal_token"]
|
|
57
57
|
github_owner = self.configs["github.owner"]
|
|
@@ -136,7 +136,7 @@ class UploadFileToGitHub(Step):
|
|
|
136
136
|
|
|
137
137
|
def run(self) -> FlowMessage: # type: ignore[override, syntax]
|
|
138
138
|
if self.configs is None or self.data_store_path is None:
|
|
139
|
-
raise
|
|
139
|
+
raise WorkflowStepNotInitializedError(type(self).__name__)
|
|
140
140
|
github_filepath = self.configs["github.filepath"]
|
|
141
141
|
github_personal_token = self.configs["github.personal_token"]
|
|
142
142
|
github_owner = self.configs["github.owner"]
|
|
@@ -210,7 +210,7 @@ class DownloadFileFromCDF(Step):
|
|
|
210
210
|
|
|
211
211
|
def run(self, cdf_client: CogniteClient) -> FlowMessage: # type: ignore[override, syntax]
|
|
212
212
|
if self.configs is None or self.data_store_path is None:
|
|
213
|
-
raise
|
|
213
|
+
raise WorkflowStepNotInitializedError(type(self).__name__)
|
|
214
214
|
|
|
215
215
|
output_dir = self.data_store_path / Path(self.configs["local.storage_dir"])
|
|
216
216
|
output_dir.mkdir(parents=True, exist_ok=True)
|
|
@@ -244,7 +244,7 @@ class UploadFileToCDF(Step):
|
|
|
244
244
|
|
|
245
245
|
def run(self, cdf_client: CogniteClient) -> FlowMessage: # type: ignore[override, syntax]
|
|
246
246
|
if self.configs is None or self.data_store_path is None:
|
|
247
|
-
raise
|
|
247
|
+
raise WorkflowStepNotInitializedError(type(self).__name__)
|
|
248
248
|
full_local_file_path = (
|
|
249
249
|
self.data_store_path / Path(self.configs["local.storage_dir"]) / self.configs["local.file_name"]
|
|
250
250
|
)
|
|
@@ -14,8 +14,7 @@ import cognite.neat.workflows.steps.lib.current
|
|
|
14
14
|
import cognite.neat.workflows.steps.lib.io
|
|
15
15
|
from cognite.neat.app.monitoring.metrics import NeatMetricsCollector
|
|
16
16
|
from cognite.neat.config import Config
|
|
17
|
-
from cognite.neat.
|
|
18
|
-
from cognite.neat.workflows._exceptions import ConfigurationNotSet
|
|
17
|
+
from cognite.neat.issues.errors import WorkflowConfigurationNotSetError, WorkFlowMissingDataError
|
|
19
18
|
from cognite.neat.workflows.model import FlowMessage, WorkflowConfigs
|
|
20
19
|
from cognite.neat.workflows.steps.step_model import Configurable, DataContract, Step
|
|
21
20
|
|
|
@@ -71,7 +70,7 @@ class StepsRegistry:
|
|
|
71
70
|
|
|
72
71
|
def load_workflow_step_classes(self, workflow_name: str):
|
|
73
72
|
if not self.data_store_path:
|
|
74
|
-
raise
|
|
73
|
+
raise WorkflowConfigurationNotSetError("data_store_path")
|
|
75
74
|
workflow_steps_path = Path(self.data_store_path) / "workflows" / workflow_name
|
|
76
75
|
if workflow_steps_path.exists():
|
|
77
76
|
self.load_custom_step_classes(workflow_steps_path, scope="workflow")
|
|
@@ -164,9 +163,9 @@ class StepsRegistry:
|
|
|
164
163
|
missing_data.append(parameter.annotation.__name__)
|
|
165
164
|
continue
|
|
166
165
|
if not is_valid:
|
|
167
|
-
raise
|
|
166
|
+
raise WorkFlowMissingDataError(step_name, frozenset(missing_data))
|
|
168
167
|
return step_obj.run(*input_data)
|
|
169
|
-
raise
|
|
168
|
+
raise WorkFlowMissingDataError(step_name, frozenset({}))
|
|
170
169
|
|
|
171
170
|
def get_list_of_steps(self) -> list[StepMetadata]:
|
|
172
171
|
steps: list[StepMetadata] = []
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
cognite/neat/__init__.py,sha256=AiexNcHdAHFbrrbo9c65gtil1dqx_SGraDH1PSsXjKE,126
|
|
2
2
|
cognite/neat/_shared.py,sha256=RSaHm2eJceTlvb-hMMe4nHgoHdPYDfN3XcxDXo24k3A,1530
|
|
3
|
-
cognite/neat/_version.py,sha256=
|
|
3
|
+
cognite/neat/_version.py,sha256=n4HA9gqnPDJQQ2u0lCOtmkV4pXgTed2pvJLXhBU7Obg,23
|
|
4
4
|
cognite/neat/app/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
cognite/neat/app/api/asgi/metrics.py,sha256=nxFy7L5cChTI0a-zkCiJ59Aq8yLuIJp5c9Dg0wRXtV0,152
|
|
6
6
|
cognite/neat/app/api/configuration.py,sha256=L1DCtLZ1HZku8I2z-JWd5RDsXhIsboFsKwAMhkrm-bY,3600
|
|
@@ -40,8 +40,7 @@ cognite/neat/app/ui/neat-app/build/static/js/main.5a52cf09.js.map,sha256=Lf93Q5-
|
|
|
40
40
|
cognite/neat/app/ui/neat-app/build/static/media/logo.8093b84df9ed36a174c629d6fe0b730d.svg,sha256=EYf9q9JoVJ1L1np-XloeEZXCmaibzKmmpXCKn_44xzA,240334
|
|
41
41
|
cognite/neat/config.py,sha256=MbYOvlibOjODEPcCHNKwZHVjg9ft8kZSojnW4gQCiHQ,10116
|
|
42
42
|
cognite/neat/constants.py,sha256=kuAOxPWvv4RzBISgNGoeyEXrt4B_VgMfxexDIOUEdMA,877
|
|
43
|
-
cognite/neat/
|
|
44
|
-
cognite/neat/graph/__init__.py,sha256=J8JSJj3s4gFbuAexma__KGpBXPN8wuydPTKd6EwgKPA,65
|
|
43
|
+
cognite/neat/graph/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
45
44
|
cognite/neat/graph/_shared.py,sha256=9QRETdm7hvqIeiHv_n1xi1DUq91Nq7oRRpnPKE0Pnag,181
|
|
46
45
|
cognite/neat/graph/_tracking/__init__.py,sha256=pYj7c-YAUIP4hvN-4mlWnwaeZFerzL9_gM-oZhex7cE,91
|
|
47
46
|
cognite/neat/graph/_tracking/base.py,sha256=8JmaDhlFhSkdBe4SOvFnrdDvMmfTZkHhZxWWWTYkMOQ,820
|
|
@@ -50,7 +49,6 @@ cognite/neat/graph/examples/Knowledge-Graph-Nordic44-dirty.xml,sha256=ujJip6XBs5
|
|
|
50
49
|
cognite/neat/graph/examples/Knowledge-Graph-Nordic44.xml,sha256=U2Ns-M4LRjT1fBkhmRj63ur7jDzlRtHK9yOLf_npZ_g,1437996
|
|
51
50
|
cognite/neat/graph/examples/__init__.py,sha256=yAjHVY3b5jOjmbW-iLbhvu7BG014TpGi3K4igkDqW5I,368
|
|
52
51
|
cognite/neat/graph/examples/skos-capturing-sheet-wind-topics.xlsx,sha256=CV_yK5ZSbYS_ktfIZUPD8Sevs47zpswLXQUDFkGE4Gw,45798
|
|
53
|
-
cognite/neat/graph/exceptions.py,sha256=R6pyOH774n9w2x_X_nrUr8OMAdjJMf_XPIqAvxIQaWo,3401
|
|
54
52
|
cognite/neat/graph/extractors/__init__.py,sha256=nXcNp6i3-1HteIkr8Ujxk4b09W5jk27Q3eWuwjcnGnM,1647
|
|
55
53
|
cognite/neat/graph/extractors/_base.py,sha256=8IWygpkQTwo0UOmbbwWVI7540_klTVdUVX2JjVPFRIs,498
|
|
56
54
|
cognite/neat/graph/extractors/_classic_cdf/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -65,28 +63,38 @@ cognite/neat/graph/extractors/_classic_cdf/_timeseries.py,sha256=zmVf5pO-G4ro3el
|
|
|
65
63
|
cognite/neat/graph/extractors/_dexpi.py,sha256=Q3whJpEi3uFMzJGAAeUfgRnAzz6ZHmtuEdVBWqsZsTM,9384
|
|
66
64
|
cognite/neat/graph/extractors/_mock_graph_generator.py,sha256=2qHh3fJxxAR9QdR6TPu-6DOvcjJkjHF4bwZN7lulziY,14678
|
|
67
65
|
cognite/neat/graph/extractors/_rdf_file.py,sha256=ialMCLv9WH5k6v1YMfozfcmAYhz8OVo9jVhsKMyQkDA,763
|
|
68
|
-
cognite/neat/graph/issues/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
69
|
-
cognite/neat/graph/issues/loader.py,sha256=v8YDsehkUT1QUG61JM9BDV_lqowMUnDmGmbay0aFzN4,3085
|
|
70
66
|
cognite/neat/graph/loaders/__init__.py,sha256=TbeJqifd16JLOglPVNOeb6pN_w060UYag50KquBM_r0,769
|
|
71
|
-
cognite/neat/graph/loaders/_base.py,sha256=
|
|
72
|
-
cognite/neat/graph/loaders/_rdf2asset.py,sha256=
|
|
73
|
-
cognite/neat/graph/loaders/_rdf2dms.py,sha256=
|
|
67
|
+
cognite/neat/graph/loaders/_base.py,sha256=5CpNsSj3WGCCjT2dC4GhnbArSD7DlWg_kXtze_ediLg,3614
|
|
68
|
+
cognite/neat/graph/loaders/_rdf2asset.py,sha256=Opq7BNAzrAYq-ffF2ayAqNVopyBDrayn0hj07KVFsyI,17504
|
|
69
|
+
cognite/neat/graph/loaders/_rdf2dms.py,sha256=s1rCOAsZjcmhkRsW9_VbD9zL2yY9lAcjOtQirmzDCEw,14713
|
|
74
70
|
cognite/neat/graph/models.py,sha256=AtLgZh2qyRP6NRetjQCy9qLMuTQB0CH52Zsev-qa2sk,149
|
|
75
71
|
cognite/neat/graph/queries/__init__.py,sha256=BgDd-037kvtWwAoGAy8eORVNMiZ5-E9sIV0txIpeaN4,50
|
|
76
72
|
cognite/neat/graph/queries/_base.py,sha256=H1ypFF_Fjls_oViF_5rrfTZzFOjwA4AHnzPdnmLNdXM,8243
|
|
77
73
|
cognite/neat/graph/queries/_construct.py,sha256=lDquCxjiaUzL3G48ZQffrGJMcqPkWVtCdkfatgPAUKI,7208
|
|
78
74
|
cognite/neat/graph/queries/_shared.py,sha256=Kk53TqJmwD2G-rxhLq_jJXYy8jvLsUAAWGJS5r9pOaY,5327
|
|
79
|
-
cognite/neat/graph/stores/__init__.py,sha256=G-VG_YwfRt1kuPao07PDJyZ3w_0-eguzLUM13n-Z_RA,64
|
|
80
|
-
cognite/neat/graph/stores/_base.py,sha256=HC7PpqQV_KMxdF61aocwU3e7ljvpVHp4xvNwNKIrhBU,12442
|
|
81
|
-
cognite/neat/graph/stores/_provenance.py,sha256=HIXa-p7yc2l3HFkQWMnGPhn-t_FROEG21thADGkgy0c,3590
|
|
82
75
|
cognite/neat/graph/transformers/__init__.py,sha256=FMvlDEDJHrZL4Jb_H0AiJZO5uHXBCuLhB5HVDuinnBI,665
|
|
83
76
|
cognite/neat/graph/transformers/_base.py,sha256=b37Ek-9njuM5pTR_3XhnxCMrg_ip_2BMwM7ZhKpAAlw,328
|
|
84
77
|
cognite/neat/graph/transformers/_classic_cdf.py,sha256=6xX-OBSJT5DAQrTJ-nuhCfGNaSk5Iktxn-WIMfzEIqo,13189
|
|
85
78
|
cognite/neat/graph/transformers/_rdfpath.py,sha256=VLtGJvTPT5SWhV98fuGGt0pptTXfzOOQSNehypsPHug,1861
|
|
86
|
-
cognite/neat/issues.py,sha256=
|
|
79
|
+
cognite/neat/issues/__init__.py,sha256=KkBEO-0Lg3vdvjrQtxKR6Wy2iV2mooc9utSO8-_9UuI,405
|
|
80
|
+
cognite/neat/issues/_base.py,sha256=FXYyfNOFWIw5jniQHzjiQXoA6o37_bfVAEhB0yy2sXE,15113
|
|
81
|
+
cognite/neat/issues/errors/__init__.py,sha256=gapkNMhT_yA6zS2kDteXhreuqfkpXVm8SSL5aT7EwT0,2041
|
|
82
|
+
cognite/neat/issues/errors/_external.py,sha256=TUdihRyr5amdGSzSU49hWz7N7BSPCTVo7glKFNDrc5w,1583
|
|
83
|
+
cognite/neat/issues/errors/_general.py,sha256=g4wt8gAL16W29ApdGugcNOCsywi0Z5AywPa7jRxxPMs,672
|
|
84
|
+
cognite/neat/issues/errors/_properties.py,sha256=7To9RvOyBzspZrs4jG3kAYJ3bzmMjDld_2lXDTWkUgM,2299
|
|
85
|
+
cognite/neat/issues/errors/_resources.py,sha256=SqzHY4Mtm-JEYSKZO8x4Mh7vOVWMV3nOEu1JrUVdjIc,3863
|
|
86
|
+
cognite/neat/issues/errors/_workflow.py,sha256=nC3sxqlJSyi-kmo2ZAfxEH23ZuNRMC-oBcwQcl_2hkU,950
|
|
87
|
+
cognite/neat/issues/formatters.py,sha256=QCk41VLlpq-R9uaHpINYceZkIUoI9m4pwSq_yWPOmr8,3331
|
|
88
|
+
cognite/neat/issues/warnings/__init__.py,sha256=ZnQIaA8WAG378DLjCTSrlGLtGO7A33453-7ShCaBqtw,2250
|
|
89
|
+
cognite/neat/issues/warnings/_external.py,sha256=pauqW4VjKnfflUiz7J8EXtTdpXxCuCcE-EuzvXlPJuI,953
|
|
90
|
+
cognite/neat/issues/warnings/_general.py,sha256=yLfooeTwq57LQPbvvVgMZDBZpyrnalXHlA6bu0lSqFg,601
|
|
91
|
+
cognite/neat/issues/warnings/_models.py,sha256=60SSiGFwtoB2WX6s8fMf80dluIWR_y20GNGTgpL_1Ng,3040
|
|
92
|
+
cognite/neat/issues/warnings/_properties.py,sha256=DPoUOlWJ0G5IllJEDHvVCTgngGkrzJDunoyzhW9RhGg,1511
|
|
93
|
+
cognite/neat/issues/warnings/_resources.py,sha256=RpmZ-KLEyTTckfAG9IvQVslq8yjN9NPS9Q_Oa6Y3ps8,1788
|
|
94
|
+
cognite/neat/issues/warnings/user_modeling.py,sha256=6bnXq-dw5T9li7Kdz47iYb9DxhrVoE403hnBqtEn2bg,3616
|
|
87
95
|
cognite/neat/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
88
96
|
cognite/neat/rules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
89
|
-
cognite/neat/rules/_shared.py,sha256=
|
|
97
|
+
cognite/neat/rules/_shared.py,sha256=yn6nsR4WtnS4ZCCDhgWiMEfL8RjnjDAlt6Cg3JoaWgM,722
|
|
90
98
|
cognite/neat/rules/analysis/__init__.py,sha256=1qQXgddwSmRjC5s22XfQhsn8XPYfwAV_2n6lqeWJmKc,141
|
|
91
99
|
cognite/neat/rules/analysis/_asset.py,sha256=SCiDatwDPi80jj41yQAp740irRWijMKEtAObkwKOKYs,7322
|
|
92
100
|
cognite/neat/rules/analysis/_base.py,sha256=jb9G2g59QaSZDwJmG1Kh9rq7CprvyrokTqfMytr0ZOk,16758
|
|
@@ -94,71 +102,73 @@ cognite/neat/rules/analysis/_information.py,sha256=TU9QbhtyhPVYqAxR-9L5awevl9i3q
|
|
|
94
102
|
cognite/neat/rules/examples/__init__.py,sha256=nxIwueAcHgZhkYriGxnDLQmIyiT8PByPHbScjYKDKe0,374
|
|
95
103
|
cognite/neat/rules/examples/wind-energy.owl,sha256=NuomCA9FuuLF0JlSuG3OKqD4VBcHgSjDKFLV17G1zV8,65934
|
|
96
104
|
cognite/neat/rules/exporters/__init__.py,sha256=nRMUBUf7yr1QPjyITeX2rTLtLLawHv24hhRE39d2-e0,1109
|
|
97
|
-
cognite/neat/rules/exporters/_base.py,sha256=
|
|
98
|
-
cognite/neat/rules/exporters/_rules2dms.py,sha256=
|
|
99
|
-
cognite/neat/rules/exporters/_rules2excel.py,sha256=
|
|
100
|
-
cognite/neat/rules/exporters/_rules2ontology.py,sha256=
|
|
101
|
-
cognite/neat/rules/exporters/_rules2yaml.py,sha256=
|
|
102
|
-
cognite/neat/rules/exporters/_validation.py,sha256=
|
|
103
|
-
cognite/neat/rules/importers/__init__.py,sha256=
|
|
104
|
-
cognite/neat/rules/importers/_base.py,sha256=
|
|
105
|
-
cognite/neat/rules/importers/_dms2rules.py,sha256=
|
|
105
|
+
cognite/neat/rules/exporters/_base.py,sha256=TW4R1u568_-w1yrpmr0MGGJuJzGpsw1curdWM7nXhB4,1952
|
|
106
|
+
cognite/neat/rules/exporters/_rules2dms.py,sha256=rPOXIJEzlJyPG1-fgEmappSwYmQ9E6T5-XX7E-ExeQY,14855
|
|
107
|
+
cognite/neat/rules/exporters/_rules2excel.py,sha256=QFOPDOGfofyflWur_4XFBF3DmHJZtCLMYlFwlg_mu7I,14360
|
|
108
|
+
cognite/neat/rules/exporters/_rules2ontology.py,sha256=o2ayPhIXfSYRdTXpYMD5fbYieOjRDlcWtCpHtlIkbNs,22040
|
|
109
|
+
cognite/neat/rules/exporters/_rules2yaml.py,sha256=3VDCSvkwBQ0p58o0AcdURx0KatErQF5W0iI48601FHY,3050
|
|
110
|
+
cognite/neat/rules/exporters/_validation.py,sha256=A0kyrIEu51ZXl47CXmO4ZOT0whO5iKNwMY-BwMc2scA,680
|
|
111
|
+
cognite/neat/rules/importers/__init__.py,sha256=z682_ktGKDjr52DIL6cPvOercZS6-TYD_ZDo-MGqtck,1207
|
|
112
|
+
cognite/neat/rules/importers/_base.py,sha256=wYqsOOnWk2ehPnmF4fW0mThrBO9NMqRzRKlHCNAzNgA,4498
|
|
113
|
+
cognite/neat/rules/importers/_dms2rules.py,sha256=TB1w66mUIu8fSyJDoLV6oJpJ9ZvGdIb-l8uHI2MdgsM,20329
|
|
106
114
|
cognite/neat/rules/importers/_dtdl2rules/__init__.py,sha256=CNR-sUihs2mnR1bPMKs3j3L4ds3vFTsrl6YycExZTfU,68
|
|
107
115
|
cognite/neat/rules/importers/_dtdl2rules/_unit_lookup.py,sha256=wW4saKva61Q_i17guY0dc4OseJDQfqHy_QZBtm0OD6g,12134
|
|
108
|
-
cognite/neat/rules/importers/_dtdl2rules/dtdl_converter.py,sha256=
|
|
109
|
-
cognite/neat/rules/importers/_dtdl2rules/dtdl_importer.py,sha256=
|
|
110
|
-
cognite/neat/rules/importers/_dtdl2rules/spec.py,sha256=
|
|
111
|
-
cognite/neat/rules/importers/
|
|
112
|
-
cognite/neat/rules/importers/
|
|
113
|
-
cognite/neat/rules/importers/
|
|
114
|
-
cognite/neat/rules/importers/
|
|
115
|
-
cognite/neat/rules/importers/
|
|
116
|
-
cognite/neat/rules/importers/
|
|
117
|
-
cognite/neat/rules/importers/
|
|
118
|
-
cognite/neat/rules/importers/
|
|
119
|
-
cognite/neat/rules/
|
|
120
|
-
cognite/neat/rules/
|
|
121
|
-
cognite/neat/rules/
|
|
122
|
-
cognite/neat/rules/
|
|
123
|
-
cognite/neat/rules/
|
|
124
|
-
cognite/neat/rules/
|
|
125
|
-
cognite/neat/rules/
|
|
126
|
-
cognite/neat/rules/issues/spreadsheet.py,sha256=SYxVaNmVIg11aG0k_3SFF8wiN0bFS8GJzoQlp3bI3ms,19680
|
|
127
|
-
cognite/neat/rules/issues/spreadsheet_file.py,sha256=YCp0Pk_TsiqYuOPdWpjUpre-zvi2c5_MvrC_dxw10YY,4964
|
|
128
|
-
cognite/neat/rules/issues/tables.py,sha256=_Ut5wel4-88XvkUxM4VFYDANDIl3lq_loeLlzAJhtgc,2381
|
|
116
|
+
cognite/neat/rules/importers/_dtdl2rules/dtdl_converter.py,sha256=14N78bA_Wvrsdo7c82FT3HUSXib10AmiEZKC54RwrAk,11712
|
|
117
|
+
cognite/neat/rules/importers/_dtdl2rules/dtdl_importer.py,sha256=MIgFbbkwGR9IE8aE9sv3AlzUJKmT1PyCYcBKtXY4efE,6922
|
|
118
|
+
cognite/neat/rules/importers/_dtdl2rules/spec.py,sha256=_uy-rO45Y-BJIp5p5dQVbVmjjVKYahkazJf-khVbT4E,12165
|
|
119
|
+
cognite/neat/rules/importers/_rdf/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
120
|
+
cognite/neat/rules/importers/_rdf/_imf2rules/__init__.py,sha256=4ZuX81E-Tp4Vf6g_6Pb0iStzOCy7RJ83yxhvo4UddXY,63
|
|
121
|
+
cognite/neat/rules/importers/_rdf/_imf2rules/_imf2classes.py,sha256=xGV7eDUX0fm56RPXRMgAx8TfCy18fxbPegIqqdDzYk0,3462
|
|
122
|
+
cognite/neat/rules/importers/_rdf/_imf2rules/_imf2metadata.py,sha256=_z8z22-wS6gZHO4Gl-dJ-jhfUoAFgShIN303mFCL7uU,959
|
|
123
|
+
cognite/neat/rules/importers/_rdf/_imf2rules/_imf2properties.py,sha256=tLstxHJGQ9muWhGZ_he8zg0q-WtnqlJjVGa-ashcDI4,5671
|
|
124
|
+
cognite/neat/rules/importers/_rdf/_imf2rules/_imf2rules.py,sha256=r1TGt96QwWVfV6nWgKUaSy64gsw0t6e_833x8sZqrM0,6605
|
|
125
|
+
cognite/neat/rules/importers/_rdf/_inference2rules.py,sha256=ne-t8p6G484jY6U8ErFCW_5r6vDsOpK3GGj9l94ARcc,13882
|
|
126
|
+
cognite/neat/rules/importers/_rdf/_owl2rules/__init__.py,sha256=tdGcrgtozdQyST-pTlxIa4cLBNTLvtk1nNYR4vOdFSw,63
|
|
127
|
+
cognite/neat/rules/importers/_rdf/_owl2rules/_owl2classes.py,sha256=VLlr2UHAia0xWaeg3tKJ3N0sq_nYur3UqcOXgjMYxzg,1934
|
|
128
|
+
cognite/neat/rules/importers/_rdf/_owl2rules/_owl2metadata.py,sha256=3eTXm0irYJcjMV4H57xblP_iaNO_T0JErQuAYZfNaFA,2659
|
|
129
|
+
cognite/neat/rules/importers/_rdf/_owl2rules/_owl2properties.py,sha256=2nuhRr7ZEEAEN94IFRYwrt_T4WqmQUzOpqrNuji_Vi4,2145
|
|
130
|
+
cognite/neat/rules/importers/_rdf/_owl2rules/_owl2rules.py,sha256=cG8HIEI4onlh-7KB0sQK0ubgCDtwMrIPDJYJ6iToLWY,2837
|
|
131
|
+
cognite/neat/rules/importers/_rdf/_shared.py,sha256=cAA0PUGHgfIBMq2obJyTL62tuLWFXTTM8OLO0NRBuCc,19765
|
|
132
|
+
cognite/neat/rules/importers/_spreadsheet2rules.py,sha256=-0oYHo1PLeOblOB82SHFseAvuA-J2YcUUv52QPoC_YI,13537
|
|
133
|
+
cognite/neat/rules/importers/_yaml2rules.py,sha256=OzeAU9fGw7LYuWz5MkSsBSC4sWYSnY4HxOzfdj520oI,4200
|
|
129
134
|
cognite/neat/rules/models/__init__.py,sha256=DHitrcmu9in2F8NqBE1O2J4UU_-MAlY6sB1MfigY4IU,887
|
|
130
135
|
cognite/neat/rules/models/_base.py,sha256=0wZgEDWLxKInQGw4ig3F_P_QP2FlUlMoanQvRMihHIg,11301
|
|
131
|
-
cognite/neat/rules/models/_constants.py,sha256=
|
|
132
|
-
cognite/neat/rules/models/_rdfpath.py,sha256=
|
|
136
|
+
cognite/neat/rules/models/_constants.py,sha256=OEc5d9CsULliffXVKuzfwumHQyrGJKtRA_HZ_tdM7LI,75
|
|
137
|
+
cognite/neat/rules/models/_rdfpath.py,sha256=oyMpmL_t0R5Uocdm3CA9iDLT2ZJVr2BIuz4cxaUlabM,11881
|
|
133
138
|
cognite/neat/rules/models/_types/__init__.py,sha256=l1tGxzE7ezNHIL72AoEvNHN2IFuitxOLxiHJG__s6t4,305
|
|
134
|
-
cognite/neat/rules/models/_types/_field.py,sha256=
|
|
139
|
+
cognite/neat/rules/models/_types/_field.py,sha256=VM40gfADOzw5UFy-olCBotComra0MsAafjyUlaIgFV8,2875
|
|
135
140
|
cognite/neat/rules/models/asset/__init__.py,sha256=qNon0kHleCPo2eT82TmeBAfiDDdwdKNU-Xdewuz8JRA,231
|
|
136
141
|
cognite/neat/rules/models/asset/_converter.py,sha256=PrTh9ZZkqSJBviiJE4xc3pClCsaWu2tTYOdgwg6_VOk,150
|
|
137
|
-
cognite/neat/rules/models/asset/_rules.py,sha256=
|
|
142
|
+
cognite/neat/rules/models/asset/_rules.py,sha256=eYV32f31RZPFfp0yEEMTiMU-RGF1IQDBvYZOr9_gDTI,5911
|
|
138
143
|
cognite/neat/rules/models/asset/_rules_input.py,sha256=LiT-85CVgDz2ng65CtrRa77r4rnmg3E4Q6DC7-gv0dE,6257
|
|
139
144
|
cognite/neat/rules/models/asset/_serializer.py,sha256=ixqRf9qEzvChgysRaDX4g_vHVDtRBCsPYC9sOn0-ShE,3365
|
|
140
|
-
cognite/neat/rules/models/asset/_validation.py,sha256=
|
|
145
|
+
cognite/neat/rules/models/asset/_validation.py,sha256=vLaamjMHA_nlahD0pn-5mmkiW_81sMp1C5ejFtDp_Xc,2008
|
|
141
146
|
cognite/neat/rules/models/data_types.py,sha256=mHTjWh47VzLwrr0w6dRf59LW7pTTGRTgsxvtW9p0JWw,6020
|
|
142
147
|
cognite/neat/rules/models/dms/__init__.py,sha256=Wzyqzz2ZIjpUbDg04CMuuIAw-f2A02DayNeqO9R-2Hw,491
|
|
143
|
-
cognite/neat/rules/models/dms/_converter.py,sha256=
|
|
144
|
-
cognite/neat/rules/models/dms/_exporter.py,sha256=
|
|
145
|
-
cognite/neat/rules/models/dms/_rules.py,sha256=
|
|
148
|
+
cognite/neat/rules/models/dms/_converter.py,sha256=zbJYupVve2vLlj39ThY5dZPfV33hDkjWcah8r4lqu9M,5807
|
|
149
|
+
cognite/neat/rules/models/dms/_exporter.py,sha256=EN0ifg3vzJzo3Xv0wPS40sphD6MONbV4POjLMEoYMls,25800
|
|
150
|
+
cognite/neat/rules/models/dms/_rules.py,sha256=JEwqGMcTi0yHsJJZoUm3GRtMli-i3_SWPp1210F6cFQ,20751
|
|
146
151
|
cognite/neat/rules/models/dms/_rules_input.py,sha256=bGarQoDNZmBuSZh_l7ARsZH86_hVWmlX73GmyOI3zGE,13645
|
|
147
|
-
cognite/neat/rules/models/dms/_schema.py,sha256=
|
|
152
|
+
cognite/neat/rules/models/dms/_schema.py,sha256=lc6Q0EUchOAUSTRiJnWc6UPBz7LjCW5NEvIGwNakcSI,50724
|
|
148
153
|
cognite/neat/rules/models/dms/_serializer.py,sha256=iqp2zyyf8jEcU-R3PERuN8nu248xIqyxiWj4owAn92g,6406
|
|
149
|
-
cognite/neat/rules/models/dms/_validation.py,sha256=
|
|
154
|
+
cognite/neat/rules/models/dms/_validation.py,sha256=Qd3zggB84GUeB-bNKE52sG04GYWaMUqiF47lbzqwHoQ,15884
|
|
150
155
|
cognite/neat/rules/models/domain.py,sha256=qG1387w6E4XIviOb7EwAjMaavUUQBweYlmYrZnj-FRI,2936
|
|
151
|
-
cognite/neat/rules/models/entities.py,sha256=
|
|
156
|
+
cognite/neat/rules/models/entities.py,sha256=jImGRqBH9Ej43tOMNFKOqqDDqftIjW6zCqt_vCj6ylw,20903
|
|
152
157
|
cognite/neat/rules/models/information/__init__.py,sha256=HR6g8xgyU53U7Ck8pPdbT70817Q4NC1r1pCRq5SA8iw,291
|
|
153
|
-
cognite/neat/rules/models/information/_converter.py,sha256=
|
|
154
|
-
cognite/neat/rules/models/information/_rules.py,sha256=
|
|
158
|
+
cognite/neat/rules/models/information/_converter.py,sha256=tDgardgQFS6NLhs3CKEEv88C2J7xLaRF7aE9RBuM-S8,13948
|
|
159
|
+
cognite/neat/rules/models/information/_rules.py,sha256=RwS1M2Pw_VNvlH2MhqcEUjZe-rkIBTva6JYDEaLFVfU,13447
|
|
155
160
|
cognite/neat/rules/models/information/_rules_input.py,sha256=AOTslaehKZH67VJaJO5bu8tT-1iSQz2uwf9mWFpK_44,10580
|
|
156
161
|
cognite/neat/rules/models/information/_serializer.py,sha256=yti9I_xJruxrib66YIBInhze___Io-oPTQH6uWDumPE,3503
|
|
157
|
-
cognite/neat/rules/models/information/_validation.py,sha256=
|
|
162
|
+
cognite/neat/rules/models/information/_validation.py,sha256=JCVCWlW4tZbamTdyQq5UIkramifImvW2UptUQNDLHkU,9224
|
|
158
163
|
cognite/neat/rules/models/wrapped_entities.py,sha256=ThhjnNNrpgz0HeORIQ8Q894trxP73P7T_TuZj6qH2CU,7157
|
|
164
|
+
cognite/neat/rules/transformers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
165
|
+
cognite/neat/rules/transformers/_base.py,sha256=-6kGqdw1JkDjcLw9JVnlHOOQP01GP3bvlabBWSWx-G8,450
|
|
166
|
+
cognite/neat/store/__init__.py,sha256=G-VG_YwfRt1kuPao07PDJyZ3w_0-eguzLUM13n-Z_RA,64
|
|
167
|
+
cognite/neat/store/_base.py,sha256=HC7PpqQV_KMxdF61aocwU3e7ljvpVHp4xvNwNKIrhBU,12442
|
|
168
|
+
cognite/neat/store/_provenance.py,sha256=HIXa-p7yc2l3HFkQWMnGPhn-t_FROEG21thADGkgy0c,3590
|
|
159
169
|
cognite/neat/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
160
170
|
cognite/neat/utils/auth.py,sha256=k0sEfTpK_bamMjAkj7jN6n9yta8TaqHTFkZUjUgpwik,12770
|
|
161
|
-
cognite/neat/utils/auxiliary.py,sha256=
|
|
171
|
+
cognite/neat/utils/auxiliary.py,sha256=A--zKPcu9tdEjJDvIX_mFiTsYaMhOgo7PtBPQzeMkoc,5716
|
|
162
172
|
cognite/neat/utils/cdf/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
163
173
|
cognite/neat/utils/cdf/data_classes.py,sha256=HWFpphCTHDkpnVwwtVb3gOLB76GKJ_F5XfLAf5wcd34,9615
|
|
164
174
|
cognite/neat/utils/cdf/loaders/__init__.py,sha256=s2aPR5XLo6WZ0ybstAJlcGFYkA7CyHW1XO-NYpL0V6o,483
|
|
@@ -169,14 +179,13 @@ cognite/neat/utils/collection_.py,sha256=fX4eAMau5AsUs1Dm5PlzINxR64kUjncEEHeoL_J
|
|
|
169
179
|
cognite/neat/utils/rdf_.py,sha256=VXDBQUt86vRntiGhejK35PlsbvKCUkuQQa1cMYz4SIc,5656
|
|
170
180
|
cognite/neat/utils/regex_patterns.py,sha256=M01rIfK6aRexP60qIrbG0qwBYaHj_ukmMC5leatSlic,1950
|
|
171
181
|
cognite/neat/utils/spreadsheet.py,sha256=LI0c7dlW0zXHkHw0NvB-gg6Df6cDcE3FbiaHBYLXdzQ,2714
|
|
172
|
-
cognite/neat/utils/text.py,sha256=
|
|
182
|
+
cognite/neat/utils/text.py,sha256=PvTEsEjaTu8SE8yYaKUrce4msboMj933dK7-0Eey_rE,3652
|
|
173
183
|
cognite/neat/utils/time_.py,sha256=O30LUiDH9TdOYz8_a9pFqTtJdg8vEjC3qHCk8xZblG8,345
|
|
174
184
|
cognite/neat/utils/upload.py,sha256=7yQZZM1SFEC-Dhl12rQD_8gUoRKLwmWhNjsImVB18og,4015
|
|
175
185
|
cognite/neat/utils/xml_.py,sha256=ppLT3lQKVp8wOP-m8-tFY8uB2P4R76l7R_-kUtsABng,992
|
|
176
186
|
cognite/neat/workflows/__init__.py,sha256=oiKub_U9f5cA0I1nKl5dFkR4BD8_6Be9eMzQ_50PwP0,396
|
|
177
|
-
cognite/neat/workflows/
|
|
178
|
-
cognite/neat/workflows/
|
|
179
|
-
cognite/neat/workflows/cdf_store.py,sha256=HCn76PJ7_vrBeTtBv9GDBH77B7wCzVnH13AoS2lu9aA,18016
|
|
187
|
+
cognite/neat/workflows/base.py,sha256=pWsUCtHVjdDe_N_pbQpmYLji-iN2U-H1G13aJbAXy7M,26829
|
|
188
|
+
cognite/neat/workflows/cdf_store.py,sha256=Ao6YnZ5wnZtP1wdnDQM7Hj2G7NqtLzBOKn4LJQS-8AU,18047
|
|
180
189
|
cognite/neat/workflows/examples/Export_DMS/workflow.yaml,sha256=XmyaUAsZrN-GnoBejg9eXHQBm1U1Z-NhdKc11Wm1ieM,1987
|
|
181
190
|
cognite/neat/workflows/examples/Import_DMS/workflow.yaml,sha256=i7FeD0dzUBhzorjMgo7v1mjShhgsEpobbxIAL-czt34,1364
|
|
182
191
|
cognite/neat/workflows/examples/Validate_Rules/workflow.yaml,sha256=lmuC-zttewtZl5EjnUv8RuM9t2dC-F053duNQHKoPGg,1395
|
|
@@ -186,24 +195,24 @@ cognite/neat/workflows/examples/Visualize_Semantic_Data_Model/workflow.yaml,sha2
|
|
|
186
195
|
cognite/neat/workflows/manager.py,sha256=CtxnabAmZq4APd5XA6FTBlytP3WmlbKNGjNoR04uAQ4,14102
|
|
187
196
|
cognite/neat/workflows/model.py,sha256=LQY7abYnz3CUEIlIEqoj0Eo6Q8yQukTQ0S_sPststCA,6570
|
|
188
197
|
cognite/neat/workflows/steps/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
189
|
-
cognite/neat/workflows/steps/data_contracts.py,sha256=
|
|
198
|
+
cognite/neat/workflows/steps/data_contracts.py,sha256=RobxctwAOxdOYdPf6jEkMj9KSTJjj4Cf__oOr5Ge2rs,2467
|
|
190
199
|
cognite/neat/workflows/steps/lib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
191
200
|
cognite/neat/workflows/steps/lib/current/__init__.py,sha256=c22IznGdCSNCpXCi_yonlbbywJE1uj6bfVCv0X2LYeE,225
|
|
192
|
-
cognite/neat/workflows/steps/lib/current/graph_extractor.py,sha256=
|
|
193
|
-
cognite/neat/workflows/steps/lib/current/graph_loader.py,sha256=
|
|
194
|
-
cognite/neat/workflows/steps/lib/current/graph_store.py,sha256=
|
|
195
|
-
cognite/neat/workflows/steps/lib/current/rules_exporter.py,sha256=
|
|
196
|
-
cognite/neat/workflows/steps/lib/current/rules_importer.py,sha256=
|
|
197
|
-
cognite/neat/workflows/steps/lib/current/rules_validator.py,sha256=
|
|
201
|
+
cognite/neat/workflows/steps/lib/current/graph_extractor.py,sha256=VHZpeo-QB_qSJu2QuU9uISFgw8LgQGeMVvSc1KORw3c,4738
|
|
202
|
+
cognite/neat/workflows/steps/lib/current/graph_loader.py,sha256=4FxE7A0ZCSwGmVP-dcWISwupBQo6TZzUr_1GMQ0klIM,1689
|
|
203
|
+
cognite/neat/workflows/steps/lib/current/graph_store.py,sha256=UydcYMoF2d2m8gOKAtlul8yCfKS3jFJJCTF2psM2flg,1582
|
|
204
|
+
cognite/neat/workflows/steps/lib/current/rules_exporter.py,sha256=QjJjXVFkI2mZiczyysaF264hehGeEWhSbIsK29Pho2w,23919
|
|
205
|
+
cognite/neat/workflows/steps/lib/current/rules_importer.py,sha256=Azi7VreTw7b7KFIrNoXNfQgq2iwpwc3FVOHOo_GWASU,17787
|
|
206
|
+
cognite/neat/workflows/steps/lib/current/rules_validator.py,sha256=phHSwyZzWQ0QK-2CFKUmFCQJU5lrWuZjmaDJUH8UYVg,5046
|
|
198
207
|
cognite/neat/workflows/steps/lib/io/__init__.py,sha256=k7IPbIq3ey19oRc5sA_15F99-O6dxzqbm1LihGRRo5A,32
|
|
199
|
-
cognite/neat/workflows/steps/lib/io/io_steps.py,sha256=
|
|
208
|
+
cognite/neat/workflows/steps/lib/io/io_steps.py,sha256=N4d5lCh7UwBlVj-jL3RQEVA-NznfCUfT19Oh7kDIko0,16931
|
|
200
209
|
cognite/neat/workflows/steps/step_model.py,sha256=bYX0PhlW-B76fBksBPENGGf8foOT6gvJL-2aUO5JimY,2943
|
|
201
|
-
cognite/neat/workflows/steps_registry.py,sha256=
|
|
210
|
+
cognite/neat/workflows/steps_registry.py,sha256=FjMsFBlFFy82ABUzDnWoFidYODV3pp3c7x32U-FqU0I,10722
|
|
202
211
|
cognite/neat/workflows/tasks.py,sha256=dqlJwKAb0jlkl7abbY8RRz3m7MT4SK8-7cntMWkOYjw,788
|
|
203
212
|
cognite/neat/workflows/triggers.py,sha256=_BLNplzoz0iic367u1mhHMHiUrCwP-SLK6_CZzfODX0,7071
|
|
204
213
|
cognite/neat/workflows/utils.py,sha256=gKdy3RLG7ctRhbCRwaDIWpL9Mi98zm56-d4jfHDqP1E,453
|
|
205
|
-
cognite_neat-0.88.
|
|
206
|
-
cognite_neat-0.88.
|
|
207
|
-
cognite_neat-0.88.
|
|
208
|
-
cognite_neat-0.88.
|
|
209
|
-
cognite_neat-0.88.
|
|
214
|
+
cognite_neat-0.88.3.dist-info/LICENSE,sha256=W8VmvFia4WHa3Gqxq1Ygrq85McUNqIGDVgtdvzT-XqA,11351
|
|
215
|
+
cognite_neat-0.88.3.dist-info/METADATA,sha256=ai_ZZOJ1z0ZKlVCp0syVwY4-vDGFqwdDzdoC4FR3PyU,9441
|
|
216
|
+
cognite_neat-0.88.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
217
|
+
cognite_neat-0.88.3.dist-info/entry_points.txt,sha256=61FPqiWb25vbqB0KI7znG8nsg_ibLHBvTjYnkPvNFso,50
|
|
218
|
+
cognite_neat-0.88.3.dist-info/RECORD,,
|
cognite/neat/exceptions.py
DELETED
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
from typing import Any
|
|
2
|
-
from warnings import WarningMessage
|
|
3
|
-
|
|
4
|
-
from pydantic_core import ErrorDetails, PydanticCustomError
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
class NeatException(Exception):
|
|
8
|
-
"""Base class for all exceptions raised by NEAT."""
|
|
9
|
-
|
|
10
|
-
type_: str
|
|
11
|
-
code: int
|
|
12
|
-
description: str
|
|
13
|
-
example: str
|
|
14
|
-
fix: str
|
|
15
|
-
message: str
|
|
16
|
-
|
|
17
|
-
def to_pydantic_custom_error(self):
|
|
18
|
-
return PydanticCustomError(
|
|
19
|
-
self.type_,
|
|
20
|
-
self.message,
|
|
21
|
-
dict(type_=self.type_, code=self.code, description=self.description, example=self.example, fix=self.fix),
|
|
22
|
-
)
|
|
23
|
-
|
|
24
|
-
def to_error_dict(self) -> ErrorDetails:
|
|
25
|
-
return {
|
|
26
|
-
"type": self.type_,
|
|
27
|
-
"loc": (),
|
|
28
|
-
"msg": self.message,
|
|
29
|
-
"input": None,
|
|
30
|
-
"ctx": dict(
|
|
31
|
-
type_=self.type_, code=self.code, description=self.description, example=self.example, fix=self.fix
|
|
32
|
-
),
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
class NeatWarning(UserWarning):
|
|
37
|
-
type_: str
|
|
38
|
-
code: int
|
|
39
|
-
description: str
|
|
40
|
-
example: str
|
|
41
|
-
fix: str
|
|
42
|
-
message: str
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
class NeatImportError(NeatException):
|
|
46
|
-
"""Cognite Import Error
|
|
47
|
-
|
|
48
|
-
Raised if the user attempts to use functionality which requires an uninstalled package.
|
|
49
|
-
|
|
50
|
-
Args:
|
|
51
|
-
module (str): Name of the module which could not be imported
|
|
52
|
-
extra (str): The name of the extra you use to install it with neat.
|
|
53
|
-
"""
|
|
54
|
-
|
|
55
|
-
type_: str = "NeatImportError"
|
|
56
|
-
code: int = 0
|
|
57
|
-
description: str = "Raised if the user attempts to use functionality which requires an uninstalled package."
|
|
58
|
-
example: str = ""
|
|
59
|
-
fix: str = ""
|
|
60
|
-
|
|
61
|
-
def __init__(self, module: str, extra: str, verbose=False):
|
|
62
|
-
self.module = module
|
|
63
|
-
self.message = (
|
|
64
|
-
f"This functionality requires {self.module}. "
|
|
65
|
-
f'You can include it in your neat installation with `pip install "cognite-neat[{extra}]"`.'
|
|
66
|
-
)
|
|
67
|
-
|
|
68
|
-
if verbose:
|
|
69
|
-
self.message += f"\nDescription: {self.description}"
|
|
70
|
-
self.message += f"\nExample: {self.example}"
|
|
71
|
-
self.message += f"\nFix: {self.fix}"
|
|
72
|
-
super().__init__(self.message)
|
|
73
|
-
|
|
74
|
-
def __str__(self) -> str:
|
|
75
|
-
return self.message
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
class InvalidWorkFlowError(NeatException):
|
|
79
|
-
"""InvalidWorkFlowError
|
|
80
|
-
Raised if an invalid workflow is provided to the Workflow Manager.
|
|
81
|
-
Args:
|
|
82
|
-
step_name (str): Name of the step which could not be run
|
|
83
|
-
missing_data (list[str]): The missing data for the step.
|
|
84
|
-
"""
|
|
85
|
-
|
|
86
|
-
type_: str = "InvalidWorkFlowError"
|
|
87
|
-
code: int = 1
|
|
88
|
-
description: str = "Raised if an invalid workflow is provided to the Workflow Manager."
|
|
89
|
-
example: str = ""
|
|
90
|
-
fix: str = ""
|
|
91
|
-
|
|
92
|
-
def __init__(self, step_name, missing_data: list[str], verbose=False):
|
|
93
|
-
self.message = f"In the workflow step {step_name} the following data is missing: {missing_data}."
|
|
94
|
-
|
|
95
|
-
if verbose:
|
|
96
|
-
self.message += f"\nDescription: {self.description}"
|
|
97
|
-
self.message += f"\nExample: {self.example}"
|
|
98
|
-
self.message += f"\nFix: {self.fix}"
|
|
99
|
-
super().__init__(self.message)
|
|
100
|
-
|
|
101
|
-
def __str__(self) -> str:
|
|
102
|
-
return self.message
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
class NeatValueError(NeatException, ValueError): ...
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
class NeatTypeError(NeatException, TypeError): ...
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
def wrangle_warnings(list_of_warnings: list[WarningMessage]) -> list[dict]:
|
|
112
|
-
warning_list: list[dict] = []
|
|
113
|
-
for warning in list_of_warnings:
|
|
114
|
-
if issubclass(warning.message.__class__, NeatWarning):
|
|
115
|
-
warning_list.append(_neat_warning_to_dict(warning))
|
|
116
|
-
elif issubclass(warning.message.__class__, Warning):
|
|
117
|
-
warning_list.append(_python_warning_to_dict(warning))
|
|
118
|
-
return warning_list
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
def _neat_warning_to_dict(warning: WarningMessage) -> dict:
|
|
122
|
-
category: Any = warning.category
|
|
123
|
-
return {
|
|
124
|
-
"type": category.type_,
|
|
125
|
-
"loc": (),
|
|
126
|
-
"msg": str(warning.message),
|
|
127
|
-
"input": None,
|
|
128
|
-
"ctx": dict(
|
|
129
|
-
type_=category.type_,
|
|
130
|
-
code=category.code,
|
|
131
|
-
description=category.description,
|
|
132
|
-
example=category.example,
|
|
133
|
-
fix=category.fix,
|
|
134
|
-
),
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
def _python_warning_to_dict(warning: WarningMessage) -> dict:
|
|
139
|
-
return {
|
|
140
|
-
"type": warning.category,
|
|
141
|
-
"loc": (),
|
|
142
|
-
"msg": str(warning.message),
|
|
143
|
-
"input": None,
|
|
144
|
-
"ctx": dict(type_=warning.category, code=None, description=None, example=None, fix=None),
|
|
145
|
-
}
|