cognite-neat 0.127.27__py3-none-any.whl → 0.127.28__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/v0/core/_data_model/models/physical/_exporter.py +14 -10
- {cognite_neat-0.127.27.dist-info → cognite_neat-0.127.28.dist-info}/METADATA +1 -1
- {cognite_neat-0.127.27.dist-info → cognite_neat-0.127.28.dist-info}/RECORD +6 -6
- {cognite_neat-0.127.27.dist-info → cognite_neat-0.127.28.dist-info}/WHEEL +0 -0
- {cognite_neat-0.127.27.dist-info → cognite_neat-0.127.28.dist-info}/licenses/LICENSE +0 -0
cognite/neat/_version.py
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
__version__ = "0.127.
|
|
1
|
+
__version__ = "0.127.28"
|
|
2
2
|
__engine__ = "^2.0.4"
|
|
@@ -243,17 +243,21 @@ class _DMSExporter:
|
|
|
243
243
|
connection = cast(EdgeEntity, prop.connection)
|
|
244
244
|
|
|
245
245
|
if connection.direction == "inwards" and isinstance(prop.value_type, ViewEntity):
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
# Warning in validation, should not have an inwards connection without an outwards connection
|
|
249
|
-
edge_type = cls._default_edge_type_from_view_id(prop.view.as_id(), prop_id)
|
|
250
|
-
elif len(edge_type_candidates) == 1:
|
|
251
|
-
edge_type = edge_type_candidates[0]
|
|
246
|
+
if connection.edge_type is not None:
|
|
247
|
+
edge_type = connection.edge_type.as_reference()
|
|
252
248
|
else:
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
249
|
+
edge_type_candidates = outwards_type_by_view_value_type.get((prop.view, prop.value_type), [])
|
|
250
|
+
if len(edge_type_candidates) == 0:
|
|
251
|
+
# Warning in validation, should not have an inwards connection without an outwards connection
|
|
252
|
+
edge_type = cls._default_edge_type_from_view_id(prop.view.as_id(), prop_id)
|
|
253
|
+
elif len(edge_type_candidates) == 1:
|
|
254
|
+
edge_type = edge_type_candidates[0]
|
|
255
|
+
else:
|
|
256
|
+
raise NeatValueError(
|
|
257
|
+
f"Cannot infer edge type for {view_id}.{prop_id}, multiple candidates: "
|
|
258
|
+
f"{edge_type_candidates}. "
|
|
259
|
+
"Please specify edge type explicitly, i.e., edge(type=<YOUR_TYPE>)."
|
|
260
|
+
)
|
|
257
261
|
view_property_id = (prop.view, prop.view_property)
|
|
258
262
|
edge_types_by_view_property_id[view_property_id] = edge_type
|
|
259
263
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cognite-neat
|
|
3
|
-
Version: 0.127.
|
|
3
|
+
Version: 0.127.28
|
|
4
4
|
Summary: Knowledge graph transformation
|
|
5
5
|
Project-URL: Documentation, https://cognite-neat.readthedocs-hosted.com/
|
|
6
6
|
Project-URL: Homepage, https://cognite-neat.readthedocs-hosted.com/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
cognite/neat/__init__.py,sha256=Lo4DbjDOwnhCYUoAgPp5RG1fDdF7OlnomalTe7n1ydw,211
|
|
2
2
|
cognite/neat/_exceptions.py,sha256=ox-5hXpee4UJlPE7HpuEHV2C96aLbLKo-BhPDoOAzhA,1650
|
|
3
3
|
cognite/neat/_issues.py,sha256=wH1mnkrpBsHUkQMGUHFLUIQWQlfJ_qMfdF7q0d9wNhY,1871
|
|
4
|
-
cognite/neat/_version.py,sha256=
|
|
4
|
+
cognite/neat/_version.py,sha256=gGuCUahtO-YTqwVek2YFhvGIxG6LRyAI0xQ1jo5pojk,47
|
|
5
5
|
cognite/neat/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
6
|
cognite/neat/v1.py,sha256=owqW5Mml2DSZx1AvPvwNRTBngfhBNrQ6EH-7CKL7Jp0,61
|
|
7
7
|
cognite/neat/_client/__init__.py,sha256=75Bh7eGhaN4sOt3ZcRzHl7pXaheu1z27kmTHeaI05vo,114
|
|
@@ -190,7 +190,7 @@ cognite/neat/v0/core/_data_model/models/mapping/__init__.py,sha256=T68Hf7rhiXa7b
|
|
|
190
190
|
cognite/neat/v0/core/_data_model/models/mapping/_classic2core.py,sha256=F0zusTh9pPR4z-RExPw3o4EMBSU2si6FJLuej2a3JzM,1430
|
|
191
191
|
cognite/neat/v0/core/_data_model/models/mapping/_classic2core.yaml,sha256=ei-nuivNWVW9HmvzDBKIPF6ZdgaMq64XHw_rKm0CMxg,22584
|
|
192
192
|
cognite/neat/v0/core/_data_model/models/physical/__init__.py,sha256=pH5ZF8jiW0A2w7VCSoHUsXxe894QFvTtgjxXNGVVaxk,990
|
|
193
|
-
cognite/neat/v0/core/_data_model/models/physical/_exporter.py,sha256=
|
|
193
|
+
cognite/neat/v0/core/_data_model/models/physical/_exporter.py,sha256=slECWjHinQscoR86dDmvB4OalyCvE9D_bSKp4v_GINg,30555
|
|
194
194
|
cognite/neat/v0/core/_data_model/models/physical/_unverified.py,sha256=eE2D2DPfqEfOnYaUmOTPhBpHp9oN-gxjn8CTe_GKtz0,22419
|
|
195
195
|
cognite/neat/v0/core/_data_model/models/physical/_validation.py,sha256=g0uSZImYaGmMZEwHUpb8KF9LTPiztz7k7cFQT3jrs4Y,41326
|
|
196
196
|
cognite/neat/v0/core/_data_model/models/physical/_verified.py,sha256=49dn3K_gWO3VgfS-SK4kHpbSJywtj4mwES3iy-43z4M,29824
|
|
@@ -312,7 +312,7 @@ cognite/neat/v0/session/engine/__init__.py,sha256=D3MxUorEs6-NtgoICqtZ8PISQrjrr4
|
|
|
312
312
|
cognite/neat/v0/session/engine/_import.py,sha256=1QxA2_EK613lXYAHKQbZyw2yjo5P9XuiX4Z6_6-WMNQ,169
|
|
313
313
|
cognite/neat/v0/session/engine/_interface.py,sha256=3W-cYr493c_mW3P5O6MKN1xEQg3cA7NHR_ev3zdF9Vk,533
|
|
314
314
|
cognite/neat/v0/session/engine/_load.py,sha256=u0x7vuQCRoNcPt25KJBJRn8sJabonYK4vtSZpiTdP4k,5201
|
|
315
|
-
cognite_neat-0.127.
|
|
316
|
-
cognite_neat-0.127.
|
|
317
|
-
cognite_neat-0.127.
|
|
318
|
-
cognite_neat-0.127.
|
|
315
|
+
cognite_neat-0.127.28.dist-info/METADATA,sha256=RnR8WLYTAdMA9I6LEPpn0cpFXgecvAokGDrbhFrpkXc,9150
|
|
316
|
+
cognite_neat-0.127.28.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
317
|
+
cognite_neat-0.127.28.dist-info/licenses/LICENSE,sha256=W8VmvFia4WHa3Gqxq1Ygrq85McUNqIGDVgtdvzT-XqA,11351
|
|
318
|
+
cognite_neat-0.127.28.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|