cognite-neat 0.123.4__py3-none-any.whl → 0.123.5__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,2 +1,2 @@
1
- __version__ = "0.123.4"
1
+ __version__ = "0.123.5"
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) and "," in self.index:
174
+ elif isinstance(self.index, str):
174
175
  output["Index"] = [
175
- ContainerIndexEntity.load(index.strip()) for index in self.index.split(",") if 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) and "," in index:
185
+ elif isinstance(index, str):
183
186
  index_list.extend(
184
- [ContainerIndexEntity.load(idx.strip()) for idx in index.split(",") if idx.strip()]
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()))
@@ -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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cognite-neat
3
- Version: 0.123.4
3
+ Version: 0.123.5
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,5 +1,5 @@
1
1
  cognite/neat/__init__.py,sha256=12StS1dzH9_MElqxGvLWrNsxCJl9Hv8A2a9D0E5OD_U,193
2
- cognite/neat/_version.py,sha256=8hU8Ii91v2mPVi02JvAjqdizS1HMfV4lF6LA_zsFYGc,46
2
+ cognite/neat/_version.py,sha256=CGPu04zqANFzgwV9cLTmb2E85DRuSaBx8spD-wNxD-4,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=IP6dKJHS4itpOzUd893G6f8oFiTEUnkJc7bx6_RL9A4,18213
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
@@ -137,7 +137,7 @@ cognite/neat/core/_issues/warnings/_resources.py,sha256=_iPRq0pRMmRu3LFjqZTaG3Oq
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
139
  cognite/neat/core/_store/_data_model.py,sha256=a7061nfqmiWConIU0CBDISEjoY_dwHLzvA3PHk8-KRY,19583
140
- cognite/neat/core/_store/_instance.py,sha256=F8KAUh46Be8mTLH2KGsL44lCAJf5emyk4lRXGs_V8vs,17374
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.4.dist-info/METADATA,sha256=PxEsDokXeHFbmzASWwu40eFyMdFDUNDEqOw0X2zQ8Co,9171
189
- cognite_neat-0.123.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
190
- cognite_neat-0.123.4.dist-info/licenses/LICENSE,sha256=W8VmvFia4WHa3Gqxq1Ygrq85McUNqIGDVgtdvzT-XqA,11351
191
- cognite_neat-0.123.4.dist-info/RECORD,,
188
+ cognite_neat-0.123.5.dist-info/METADATA,sha256=8hvMf17cPBhpa0siFt9Ji0ARsA91KiKz0bRNAj6t8BY,9171
189
+ cognite_neat-0.123.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
190
+ cognite_neat-0.123.5.dist-info/licenses/LICENSE,sha256=W8VmvFia4WHa3Gqxq1Ygrq85McUNqIGDVgtdvzT-XqA,11351
191
+ cognite_neat-0.123.5.dist-info/RECORD,,