cognite-neat 0.117.5__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.

@@ -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.5"
1
+ __version__ = "0.117.6"
2
2
  __engine__ = "^2.0.4"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: cognite-neat
3
- Version: 0.117.5
3
+ Version: 0.117.6
4
4
  Summary: Knowledge graph transformation
5
5
  License: Apache-2.0
6
6
  Author: Nikola Vasiljevic
@@ -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=BX65py8dD8l5_55-A1SjLqpK8It6R7puCyZc5yMOs9A,23249
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=9KHo6Vztnb8l-OKBb5oYLBwAjzCwysvdZ9Q-8TGF5Xg,46
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.5.dist-info/LICENSE,sha256=W8VmvFia4WHa3Gqxq1Ygrq85McUNqIGDVgtdvzT-XqA,11351
183
- cognite_neat-0.117.5.dist-info/METADATA,sha256=Gp9UBbXfbt1z2Xne0AcvixPlmeAzQHa7tro3vN8gBK0,5361
184
- cognite_neat-0.117.5.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
185
- cognite_neat-0.117.5.dist-info/entry_points.txt,sha256=SsQlnl8SNMSSjE3acBI835JYFtsIinLSbVmHmMEXv6E,51
186
- cognite_neat-0.117.5.dist-info/RECORD,,
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,,