cognite-neat 0.117.4__py3-none-any.whl → 0.117.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.
Potentially problematic release.
This version of cognite-neat might be problematic. Click here for more details.
- cognite/neat/_graph/extractors/_classic_cdf/_classic.py +1 -1
- cognite/neat/_rules/models/dms/_rules.py +5 -0
- cognite/neat/_version.py +1 -1
- {cognite_neat-0.117.4.dist-info → cognite_neat-0.117.6.dist-info}/METADATA +1 -1
- {cognite_neat-0.117.4.dist-info → cognite_neat-0.117.6.dist-info}/RECORD +8 -8
- {cognite_neat-0.117.4.dist-info → cognite_neat-0.117.6.dist-info}/LICENSE +0 -0
- {cognite_neat-0.117.4.dist-info → cognite_neat-0.117.6.dist-info}/WHEEL +0 -0
- {cognite_neat-0.117.4.dist-info → cognite_neat-0.117.6.dist-info}/entry_points.txt +0 -0
|
@@ -389,7 +389,7 @@ class ClassicGraphExtractor(KnowledgeGraphExtractor):
|
|
|
389
389
|
for chunk in self._chunk(
|
|
390
390
|
list(self._asset_parent_uri_by_id.keys()), description="Extracting asset parent data sets"
|
|
391
391
|
):
|
|
392
|
-
assets = self._client.assets.retrieve_multiple(
|
|
392
|
+
assets = self._client.assets.retrieve_multiple(ids=list(chunk), ignore_unknown_ids=True)
|
|
393
393
|
for asset in assets:
|
|
394
394
|
if asset.data_set_id is None:
|
|
395
395
|
continue
|
|
@@ -196,6 +196,11 @@ class DMSProperty(SheetRow):
|
|
|
196
196
|
cls, value: EdgeEntity | ViewEntity | DMSUnknownEntity, info: ValidationInfo
|
|
197
197
|
) -> DataType | EdgeEntity | ViewEntity | DMSUnknownEntity:
|
|
198
198
|
if (connection := info.data.get("connection")) is None:
|
|
199
|
+
if isinstance(value, ViewEntity):
|
|
200
|
+
raise ValueError(
|
|
201
|
+
f"Missing connection type for property '{info.data.get('view_property', 'unknown')}'. This "
|
|
202
|
+
f"is required with value type pointing to another view."
|
|
203
|
+
)
|
|
199
204
|
return value
|
|
200
205
|
if connection == "direct" and not isinstance(value, ViewEntity | DMSUnknownEntity):
|
|
201
206
|
raise ValueError(f"Direct relation must have a value type that points to a view, got {value}")
|
cognite/neat/_version.py
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
__version__ = "0.117.
|
|
1
|
+
__version__ = "0.117.6"
|
|
2
2
|
__engine__ = "^2.0.4"
|
|
@@ -27,7 +27,7 @@ cognite/neat/_graph/extractors/_base.py,sha256=qQE-fl3f1hfqZg5KLF3zLHybP0u8ofRKf
|
|
|
27
27
|
cognite/neat/_graph/extractors/_classic_cdf/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
28
28
|
cognite/neat/_graph/extractors/_classic_cdf/_assets.py,sha256=9WVFrAtUFAp_AAlb26Rtt2Axz9xsPQYetg7SKVrNCr4,1474
|
|
29
29
|
cognite/neat/_graph/extractors/_classic_cdf/_base.py,sha256=bYAoxsmiF6j5VB5Ptz2Kbkk8viEt8j_c-895cAI6E3Q,17639
|
|
30
|
-
cognite/neat/_graph/extractors/_classic_cdf/_classic.py,sha256=
|
|
30
|
+
cognite/neat/_graph/extractors/_classic_cdf/_classic.py,sha256=beIz78buYHJN6f7xhipA8uASKaKsWa17vYuS2ndap_c,22667
|
|
31
31
|
cognite/neat/_graph/extractors/_classic_cdf/_data_sets.py,sha256=xRFv9pVFgIMTZ45E8teMC0Ynku_CuZdcZkVCbhPuPBk,1294
|
|
32
32
|
cognite/neat/_graph/extractors/_classic_cdf/_events.py,sha256=B8hRoMAg8GQvApjxals5PfPyjmdPO93U3nj_G7g0kDQ,1394
|
|
33
33
|
cognite/neat/_graph/extractors/_classic_cdf/_files.py,sha256=Q816cVQ9qS7Art66HJfErL2OV7MxH_eSIG7bJ8_HJ7Q,1406
|
|
@@ -113,7 +113,7 @@ cognite/neat/_rules/models/_types.py,sha256=6fHLiVPRlk5QsFjmvDFFqw1htPcPp-RfnUzY
|
|
|
113
113
|
cognite/neat/_rules/models/data_types.py,sha256=OyiAiszU59wQssv05XHX8SihLkYmtfgmgmdVypJ7cwc,10095
|
|
114
114
|
cognite/neat/_rules/models/dms/__init__.py,sha256=fRaUH0IwG0YwWd_DNKM6j-jHHFyiIVz4_8DPiS1KR0Y,695
|
|
115
115
|
cognite/neat/_rules/models/dms/_exporter.py,sha256=2QiTLX4UF89jGd_YRz9EczDFprBphdO_oyaQWMBmSiM,28576
|
|
116
|
-
cognite/neat/_rules/models/dms/_rules.py,sha256=
|
|
116
|
+
cognite/neat/_rules/models/dms/_rules.py,sha256=QEKNw31nkTwzjyNEnWYUdDFUdJvDJ5_14iQzWsFizxs,23537
|
|
117
117
|
cognite/neat/_rules/models/dms/_rules_input.py,sha256=JRRtUw7DYw1YKMXYC3ktv71F6j-ng6_EeQG3ejmJzKE,16405
|
|
118
118
|
cognite/neat/_rules/models/dms/_validation.py,sha256=Uh6DaCywdpTljy3trmVGaHrRI1wqZSAHRBpSi1hemsU,32165
|
|
119
119
|
cognite/neat/_rules/models/entities/__init__.py,sha256=Hlucp3LyV6ncLl79aqRTbSy2qgiGzoyN8x54D_zaJCY,1469
|
|
@@ -177,10 +177,10 @@ cognite/neat/_utils/text.py,sha256=BFJoEOQBFgpelysL92FdF0OVRVFl0q9tRNoz-oRanNc,7
|
|
|
177
177
|
cognite/neat/_utils/time_.py,sha256=O30LUiDH9TdOYz8_a9pFqTtJdg8vEjC3qHCk8xZblG8,345
|
|
178
178
|
cognite/neat/_utils/upload.py,sha256=xWtM6mFuD2QYQHaZ7zCAuGptbEpPIxcH-raWQu93-Ug,5845
|
|
179
179
|
cognite/neat/_utils/xml_.py,sha256=FQkq84u35MUsnKcL6nTMJ9ajtG9D5i1u4VBnhGqP2DQ,1710
|
|
180
|
-
cognite/neat/_version.py,sha256=
|
|
180
|
+
cognite/neat/_version.py,sha256=PY9Bejawyg6nkLl2a7-XkDSy2YwwPFz1PZ-22UUCHRw,46
|
|
181
181
|
cognite/neat/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
182
|
-
cognite_neat-0.117.
|
|
183
|
-
cognite_neat-0.117.
|
|
184
|
-
cognite_neat-0.117.
|
|
185
|
-
cognite_neat-0.117.
|
|
186
|
-
cognite_neat-0.117.
|
|
182
|
+
cognite_neat-0.117.6.dist-info/LICENSE,sha256=W8VmvFia4WHa3Gqxq1Ygrq85McUNqIGDVgtdvzT-XqA,11351
|
|
183
|
+
cognite_neat-0.117.6.dist-info/METADATA,sha256=TJJXuYaeblK6TdUpJ_JzNpv2lM2AMgNnxRITSclqIxI,5361
|
|
184
|
+
cognite_neat-0.117.6.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
|
|
185
|
+
cognite_neat-0.117.6.dist-info/entry_points.txt,sha256=SsQlnl8SNMSSjE3acBI835JYFtsIinLSbVmHmMEXv6E,51
|
|
186
|
+
cognite_neat-0.117.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|