cognite-neat 0.75.1__py3-none-any.whl → 0.75.2__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/_version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.75.1"
1
+ __version__ = "0.75.2"
@@ -206,7 +206,7 @@ class DirectRelationMissingSourceWarning(DMSSchemaWarning):
206
206
 
207
207
  @dataclass(frozen=True)
208
208
  class ContainerPropertyUsedMultipleTimesError(DMSSchemaError):
209
- description = "The container property is used multiple times by the same view"
209
+ description = "The container property is used multiple times by the same view property"
210
210
  fix = "Use unique container properties for when mapping to the same container"
211
211
  error_name: ClassVar[str] = "ContainerPropertyUsedMultipleTimes"
212
212
  container: dm.ContainerId
@@ -332,12 +332,20 @@ class DMSSchema:
332
332
  ):
333
333
  errors.add(MissingEdgeViewError(view=prop.edge_source, property=prop_name, referred_by=view_id))
334
334
 
335
+ # This allows for multiple view properties to be mapped to the same container property,
336
+ # as long as they have different external_id, otherwise this will lead to raising
337
+ # error ContainerPropertyUsedMultipleTimesError
335
338
  property_count = Counter(
336
- (prop.container, prop.container_property_identifier)
337
- for prop in (view.properties or {}).values()
339
+ (prop.container, prop.container_property_identifier, view_property_identifier)
340
+ for view_property_identifier, prop in (view.properties or {}).items()
338
341
  if isinstance(prop, dm.MappedPropertyApply)
339
342
  )
340
- for (container_id, container_property_identifier), count in property_count.items():
343
+
344
+ for (
345
+ container_id,
346
+ container_property_identifier,
347
+ _,
348
+ ), count in property_count.items():
341
349
  if count > 1:
342
350
  view_properties = [
343
351
  prop_name
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cognite-neat
3
- Version: 0.75.1
3
+ Version: 0.75.2
4
4
  Summary: Knowledge graph transformation
5
5
  Home-page: https://cognite-neat.readthedocs-hosted.com/
6
6
  License: Apache-2.0
@@ -1,5 +1,5 @@
1
1
  cognite/neat/__init__.py,sha256=v-rRiDOgZ3sQSMQKq0vgUQZvpeOkoHFXissAx6Ktg84,61
2
- cognite/neat/_version.py,sha256=djr0g155MTdyNyDU2Gf0RUcDLE7dGmXvr1naYLCepgQ,23
2
+ cognite/neat/_version.py,sha256=RBrsEiEjpq8K9vkuZ0APiokBDHkfbwVQ16VWgcusWW8,23
3
3
  cognite/neat/app/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  cognite/neat/app/api/asgi/metrics.py,sha256=nxFy7L5cChTI0a-zkCiJ59Aq8yLuIJp5c9Dg0wRXtV0,152
5
5
  cognite/neat/app/api/configuration.py,sha256=xnKdBE_dtq1nRvKa79YGA_wimI5UhoSRuBQz4LkLzQw,4606
@@ -178,7 +178,7 @@ cognite/neat/rules/importers/_spreadsheet2rules.py,sha256=rzUAqzFtXJVu1YHfqxvM6N
178
178
  cognite/neat/rules/importers/_yaml2rules.py,sha256=ldave7MnoGuFy2h-lI87dK7PflOG6QacBIBw8nzxhh4,4197
179
179
  cognite/neat/rules/issues/__init__.py,sha256=Ms6jgCxCezc5IgTOwCFtXQPtoVFfOvdcXj84_rs917I,563
180
180
  cognite/neat/rules/issues/base.py,sha256=qgoZ3qr35XLtdmkWWewf3sCYOW0sCkJrN9VpFvX-WzY,6158
181
- cognite/neat/rules/issues/dms.py,sha256=O4JBbxOchv9wa9MGnoo1JGtc-H5Jo77izjEo3RaF7Ck,15314
181
+ cognite/neat/rules/issues/dms.py,sha256=APkqjiRcpxOKx4kGejgoinlsNz94hrkGToFfzeBApcA,15323
182
182
  cognite/neat/rules/issues/fileread.py,sha256=n-GZaULOJF_MKkBIh1maaOuGZXOvZYw7Y6fDAS0jrBI,4492
183
183
  cognite/neat/rules/issues/formatters.py,sha256=_pSogWtfkt2JK0PZgWQffbj2On8vumFNshxOKAi5fYw,3346
184
184
  cognite/neat/rules/issues/importing.py,sha256=GqUywhBD840Fbc4DD5L2I0oEllJ78MTjpmXogVEjihA,7493
@@ -189,7 +189,7 @@ cognite/neat/rules/models/rdfpath.py,sha256=lqY6YFeVEf3BeD1SWJMgDSQUGjXxzxmnP-NV
189
189
  cognite/neat/rules/models/rules/__init__.py,sha256=YHzkEkDzDuPs9N69FP12SAbnOBiLOxk0m5jXH-IQgbY,522
190
190
  cognite/neat/rules/models/rules/_base.py,sha256=xr2c2y8HIWQbC_x82lP1aWtqp_0mjzil7tTr9itgh8g,11024
191
191
  cognite/neat/rules/models/rules/_dms_architect_rules.py,sha256=fDS-TO45GDfuhwk8TcOgHVaYBm7EjLMDUdx4FEj0OS4,55890
192
- cognite/neat/rules/models/rules/_dms_schema.py,sha256=r6IRH71sdLy01lIFSsxeXCvcYK07rNtGcbNBj3F6WXk,30417
192
+ cognite/neat/rules/models/rules/_dms_schema.py,sha256=XumSJlJUdReq1qnuphIz3NF7wmhjRiaMjIGNGioi1L4,30789
193
193
  cognite/neat/rules/models/rules/_domain_rules.py,sha256=G5qj-6a7wRHdZbhDOTLqaYUnfg6RyIC2AmK3zQWKnsE,2567
194
194
  cognite/neat/rules/models/rules/_information_rules.py,sha256=_qZpLQFJoU5ouboBvC7aZX6WXynQktwS9HClmfCEMVo,21658
195
195
  cognite/neat/rules/models/rules/_types/__init__.py,sha256=Px0uB5fqk-8qH-HRi0ZvgGkLhYcS5A8EJ9QDB2TFwNQ,1299
@@ -251,8 +251,8 @@ cognite/neat/workflows/steps_registry.py,sha256=PZVoHX4d6Vmjz6XzUFnFFWMCnrVnqkUC
251
251
  cognite/neat/workflows/tasks.py,sha256=dqlJwKAb0jlkl7abbY8RRz3m7MT4SK8-7cntMWkOYjw,788
252
252
  cognite/neat/workflows/triggers.py,sha256=_BLNplzoz0iic367u1mhHMHiUrCwP-SLK6_CZzfODX0,7071
253
253
  cognite/neat/workflows/utils.py,sha256=gKdy3RLG7ctRhbCRwaDIWpL9Mi98zm56-d4jfHDqP1E,453
254
- cognite_neat-0.75.1.dist-info/LICENSE,sha256=W8VmvFia4WHa3Gqxq1Ygrq85McUNqIGDVgtdvzT-XqA,11351
255
- cognite_neat-0.75.1.dist-info/METADATA,sha256=-jtTxKdv5frITtQeM1Vny-T2kEvDAG8KcBXRKTxkXCE,9316
256
- cognite_neat-0.75.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
257
- cognite_neat-0.75.1.dist-info/entry_points.txt,sha256=61FPqiWb25vbqB0KI7znG8nsg_ibLHBvTjYnkPvNFso,50
258
- cognite_neat-0.75.1.dist-info/RECORD,,
254
+ cognite_neat-0.75.2.dist-info/LICENSE,sha256=W8VmvFia4WHa3Gqxq1Ygrq85McUNqIGDVgtdvzT-XqA,11351
255
+ cognite_neat-0.75.2.dist-info/METADATA,sha256=jI0YOMD6D5o0J0zUfvpGewsvDWizBUtXOAh5-iO8DTs,9316
256
+ cognite_neat-0.75.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
257
+ cognite_neat-0.75.2.dist-info/entry_points.txt,sha256=61FPqiWb25vbqB0KI7znG8nsg_ibLHBvTjYnkPvNFso,50
258
+ cognite_neat-0.75.2.dist-info/RECORD,,