cognite-neat 0.123.4__py3-none-any.whl → 0.123.6__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/core/_data_model/models/physical/_unverified.py +11 -4
- cognite/neat/core/_store/_data_model.py +1 -0
- cognite/neat/core/_store/_instance.py +1 -1
- {cognite_neat-0.123.4.dist-info → cognite_neat-0.123.6.dist-info}/METADATA +1 -1
- {cognite_neat-0.123.4.dist-info → cognite_neat-0.123.6.dist-info}/RECORD +8 -8
- {cognite_neat-0.123.4.dist-info → cognite_neat-0.123.6.dist-info}/WHEEL +0 -0
- {cognite_neat-0.123.4.dist-info → cognite_neat-0.123.6.dist-info}/licenses/LICENSE +0 -0
cognite/neat/_version.py
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
__version__ = "0.123.
|
|
1
|
+
__version__ = "0.123.6"
|
|
2
2
|
__engine__ = "^2.0.4"
|
|
@@ -14,6 +14,7 @@ from cognite.neat.core._constants import (
|
|
|
14
14
|
DEFAULT_NAMESPACE,
|
|
15
15
|
DMS_DIRECT_RELATION_LIST_DEFAULT_LIMIT,
|
|
16
16
|
)
|
|
17
|
+
from cognite.neat.core._data_model._constants import SPLIT_ON_COMMA_PATTERN
|
|
17
18
|
from cognite.neat.core._data_model.models._base_unverified import (
|
|
18
19
|
UnverifiedComponent,
|
|
19
20
|
UnverifiedDataModel,
|
|
@@ -170,18 +171,24 @@ class UnverifiedPhysicalProperty(UnverifiedComponent[PhysicalProperty]):
|
|
|
170
171
|
)
|
|
171
172
|
if isinstance(self.index, ContainerIndexEntity) or (isinstance(self.index, str) and "," not in self.index):
|
|
172
173
|
output["Index"] = [ContainerIndexEntity.load(self.index)]
|
|
173
|
-
elif isinstance(self.index, str)
|
|
174
|
+
elif isinstance(self.index, str):
|
|
174
175
|
output["Index"] = [
|
|
175
|
-
ContainerIndexEntity.load(index.strip())
|
|
176
|
+
ContainerIndexEntity.load(index.strip())
|
|
177
|
+
for index in SPLIT_ON_COMMA_PATTERN.split(self.index)
|
|
178
|
+
if index.strip()
|
|
176
179
|
]
|
|
177
180
|
elif isinstance(self.index, list):
|
|
178
181
|
index_list: list[ContainerIndexEntity | PhysicalUnknownEntity] = []
|
|
179
182
|
for index in self.index:
|
|
180
183
|
if isinstance(index, ContainerIndexEntity):
|
|
181
184
|
index_list.append(index)
|
|
182
|
-
elif isinstance(index, str)
|
|
185
|
+
elif isinstance(index, str):
|
|
183
186
|
index_list.extend(
|
|
184
|
-
[
|
|
187
|
+
[
|
|
188
|
+
ContainerIndexEntity.load(idx.strip())
|
|
189
|
+
for idx in SPLIT_ON_COMMA_PATTERN.split(index)
|
|
190
|
+
if idx.strip()
|
|
191
|
+
]
|
|
185
192
|
)
|
|
186
193
|
elif isinstance(index, str):
|
|
187
194
|
index_list.append(ContainerIndexEntity.load(index.strip()))
|
|
@@ -355,6 +355,7 @@ class NeatDataModelStore:
|
|
|
355
355
|
|
|
356
356
|
agent = exporter.agent
|
|
357
357
|
start = datetime.now(timezone.utc)
|
|
358
|
+
result: UploadResultList | Path | URIRef | None = None
|
|
358
359
|
with catch_issues() as issue_list:
|
|
359
360
|
# Validate the type of the result
|
|
360
361
|
result = action(input_, *exporter_args)
|
|
@@ -172,7 +172,7 @@ class NeatInstanceStore:
|
|
|
172
172
|
local_import("pyoxigraph", "oxi")
|
|
173
173
|
local_import("oxrdflib", "oxi")
|
|
174
174
|
import oxrdflib
|
|
175
|
-
import pyoxigraph
|
|
175
|
+
import pyoxigraph # type: ignore[import-untyped]
|
|
176
176
|
|
|
177
177
|
try:
|
|
178
178
|
oxi_store = pyoxigraph.Store(path=str(storage_dir) if storage_dir else None)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
cognite/neat/__init__.py,sha256=12StS1dzH9_MElqxGvLWrNsxCJl9Hv8A2a9D0E5OD_U,193
|
|
2
|
-
cognite/neat/_version.py,sha256=
|
|
2
|
+
cognite/neat/_version.py,sha256=pYgIOIoZmd2M8dmiRwHzXC1Amc9xjpZBXaTTBA_r8-Q,46
|
|
3
3
|
cognite/neat/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
cognite/neat/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
cognite/neat/core/_config.py,sha256=WT1BS8uADcFvGoUYOOfwFOVq_VBl472TisdoA3wLick,280
|
|
@@ -66,7 +66,7 @@ cognite/neat/core/_data_model/models/mapping/_classic2core.py,sha256=FRDpYP_CX-C
|
|
|
66
66
|
cognite/neat/core/_data_model/models/mapping/_classic2core.yaml,sha256=ei-nuivNWVW9HmvzDBKIPF6ZdgaMq64XHw_rKm0CMxg,22584
|
|
67
67
|
cognite/neat/core/_data_model/models/physical/__init__.py,sha256=ONE_xLw1cxfw88rICG_RtbjCYUZm8yS2kBQ4Di3EGnA,987
|
|
68
68
|
cognite/neat/core/_data_model/models/physical/_exporter.py,sha256=WHYjWyiKpA7GWO2_vPN3AphpDr8OjzxI5JMyO7b3sYQ,30083
|
|
69
|
-
cognite/neat/core/_data_model/models/physical/_unverified.py,sha256=
|
|
69
|
+
cognite/neat/core/_data_model/models/physical/_unverified.py,sha256=VyI-JULAu6kHJygUclDPH1JYjhf_XcO58tI9BkXORC0,18430
|
|
70
70
|
cognite/neat/core/_data_model/models/physical/_validation.py,sha256=uPzbcJmFj0g9ATVq86rUsmSGOfQ0iBeIevoKh1lCu98,33179
|
|
71
71
|
cognite/neat/core/_data_model/models/physical/_verified.py,sha256=Fvy0pOYk03nHDlRz_SECg9ALW3y0LaCZG6XNBduCi9Q,24332
|
|
72
72
|
cognite/neat/core/_data_model/transformers/__init__.py,sha256=_FPmPh0kA68SXR4arKKNmtWQ8B2-wSwWQeGAWnjoJAQ,1788
|
|
@@ -136,8 +136,8 @@ cognite/neat/core/_issues/warnings/_properties.py,sha256=h7jGO6wfjAd1-T9u-BByUf7
|
|
|
136
136
|
cognite/neat/core/_issues/warnings/_resources.py,sha256=_iPRq0pRMmRu3LFjqZTaG3OqOzw4f8-Vc9G4Im__FHc,3578
|
|
137
137
|
cognite/neat/core/_issues/warnings/user_modeling.py,sha256=Qn_S8TLw7MMYQaJcZBScJA48kz_PrTWz0NaepSR70Fk,4144
|
|
138
138
|
cognite/neat/core/_store/__init__.py,sha256=wpsF8xjIQ5V21NOh45XQV813n_EzgyPOt0VVinYjnDI,140
|
|
139
|
-
cognite/neat/core/_store/_data_model.py,sha256=
|
|
140
|
-
cognite/neat/core/_store/_instance.py,sha256=
|
|
139
|
+
cognite/neat/core/_store/_data_model.py,sha256=6Eg_QH1ZlS4AO3c0_Ye8M-Y4_Ycf3mQPJBKyardGu9w,19646
|
|
140
|
+
cognite/neat/core/_store/_instance.py,sha256=QFrhOyaVA-mOtRaKZDE0aYyEJlSYx1jImKC8iE3b75E,17406
|
|
141
141
|
cognite/neat/core/_store/_provenance.py,sha256=aMEsq27dZ4NZ6XEC8hA0fIDF13i1ZP3QwnclLCRaNk4,7326
|
|
142
142
|
cognite/neat/core/_store/exceptions.py,sha256=jcd1Gv65mfTdC4cipFAMWUNghEmdLS_lwPH1FB_ebxI,1656
|
|
143
143
|
cognite/neat/core/_utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -185,7 +185,7 @@ cognite/neat/session/engine/__init__.py,sha256=D3MxUorEs6-NtgoICqtZ8PISQrjrr4dvc
|
|
|
185
185
|
cognite/neat/session/engine/_import.py,sha256=1QxA2_EK613lXYAHKQbZyw2yjo5P9XuiX4Z6_6-WMNQ,169
|
|
186
186
|
cognite/neat/session/engine/_interface.py,sha256=3W-cYr493c_mW3P5O6MKN1xEQg3cA7NHR_ev3zdF9Vk,533
|
|
187
187
|
cognite/neat/session/engine/_load.py,sha256=g52uYakQM03VqHt_RDHtpHso1-mFFifH5M4T2ScuH8A,5198
|
|
188
|
-
cognite_neat-0.123.
|
|
189
|
-
cognite_neat-0.123.
|
|
190
|
-
cognite_neat-0.123.
|
|
191
|
-
cognite_neat-0.123.
|
|
188
|
+
cognite_neat-0.123.6.dist-info/METADATA,sha256=ejxcaEkDxrf0agU1343EbR4eDXUqUwwgku3eEJ90TvE,9171
|
|
189
|
+
cognite_neat-0.123.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
190
|
+
cognite_neat-0.123.6.dist-info/licenses/LICENSE,sha256=W8VmvFia4WHa3Gqxq1Ygrq85McUNqIGDVgtdvzT-XqA,11351
|
|
191
|
+
cognite_neat-0.123.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|