cognite-neat 0.122.0__py3-none-any.whl → 0.122.1__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.122.0"
1
+ __version__ = "0.122.1"
2
2
  __engine__ = "^2.0.4"
@@ -22,6 +22,7 @@ from rdflib import RDF, URIRef
22
22
  from cognite.neat.core._client import NeatClient
23
23
  from cognite.neat.core._client._api_client import SchemaAPI
24
24
  from cognite.neat.core._constants import (
25
+ COGNITE_SPACES,
25
26
  DMS_DIRECT_RELATION_LIST_DEFAULT_LIMIT,
26
27
  is_readonly_property,
27
28
  )
@@ -585,7 +586,12 @@ class DMSLoader(CDFLoader[dm.InstanceApply]):
585
586
  yield dm.NodeApply(
586
587
  space=space,
587
588
  external_id=external_id,
588
- type=(projection.view_id.space, projection.view_id.external_id),
589
+ # Currently there are no node types for schemas in cognite schema spaces
590
+ type=(
591
+ (projection.view_id.space, projection.view_id.external_id)
592
+ if projection.view_id.space not in COGNITE_SPACES
593
+ else None
594
+ ),
589
595
  sources=sources,
590
596
  )
591
597
  yield from self._create_edges_without_properties(space, external_id, properties, projection, stop_on_exception)
@@ -1,7 +1,7 @@
1
1
  import functools
2
2
  import warnings
3
3
  from collections.abc import Callable
4
- from typing import Any
4
+ from typing import Any, TypeVar
5
5
 
6
6
  from cognite.neat.core._issues.errors import CDFMissingClientError, NeatImportError
7
7
  from cognite.neat.core._issues.errors._external import OxigraphStorageLockedError
@@ -68,7 +68,10 @@ def _session_method_wrapper(func: Callable, cls_name: str) -> Any:
68
68
  return wrapper
69
69
 
70
70
 
71
- def session_class_wrapper(cls: type) -> type:
71
+ T_Class = TypeVar("T_Class", bound=object)
72
+
73
+
74
+ def session_class_wrapper(cls: type[T_Class]) -> type[T_Class]:
72
75
  """This decorator wraps all methods of a class.
73
76
 
74
77
  It should be used with all composition classes used with the NeatSession class.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cognite-neat
3
- Version: 0.122.0
3
+ Version: 0.122.1
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/
@@ -47,9 +47,9 @@ Requires-Dist: google-auth-oauthlib<2.0.0,>=1.0.0; extra == 'google'
47
47
  Requires-Dist: gspread<6.0.0,>=5.0.0; extra == 'google'
48
48
  Provides-Extra: lxml
49
49
  Requires-Dist: lxml<6.0.0,>=5.3.0; extra == 'lxml'
50
- Provides-Extra: pyoxigraph
51
- Requires-Dist: oxrdflib<0.5.0,>=0.4.0; extra == 'pyoxigraph'
52
- Requires-Dist: pyoxigraph<0.5.0,>=0.4.3; extra == 'pyoxigraph'
50
+ Provides-Extra: oxi
51
+ Requires-Dist: oxrdflib<0.5.0,>=0.4.0; extra == 'oxi'
52
+ Requires-Dist: pyoxigraph<0.5.0,>=0.4.3; extra == 'oxi'
53
53
  Description-Content-Type: text/markdown
54
54
 
55
55
  # kNowlEdge grAph Transformer (NEAT)
@@ -1,5 +1,5 @@
1
1
  cognite/neat/__init__.py,sha256=12StS1dzH9_MElqxGvLWrNsxCJl9Hv8A2a9D0E5OD_U,193
2
- cognite/neat/_version.py,sha256=tsC3y45qq-S5vbUkGUaw8MR4_0CMsnnk7paLLLee3LA,46
2
+ cognite/neat/_version.py,sha256=hEX04Zd5WV2gLQgKwCOdCPXl2IszZNRZ4q4_HQXhmwM,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
@@ -110,7 +110,7 @@ cognite/neat/core/_instances/extractors/_classic_cdf/_sequences.py,sha256=zwHM52
110
110
  cognite/neat/core/_instances/extractors/_classic_cdf/_timeseries.py,sha256=Py8MDcn82MJcsDPbeqDHMx4g2rQHmEOSHNe6gOi5gew,2044
111
111
  cognite/neat/core/_instances/loaders/__init__.py,sha256=XS6vwmxgBzntg7UuG_ct_1hfhShVnFH5u0gGrdA8WfA,699
112
112
  cognite/neat/core/_instances/loaders/_base.py,sha256=v2sSR8wc8_vt5X_VioXctHj9XUxWxapeE7LChL1fPQ0,4512
113
- cognite/neat/core/_instances/loaders/_rdf2dms.py,sha256=vNNFyKFthVnPuNTUjKkcoJIkaPnTsaMuCoz3tVODxD4,34261
113
+ cognite/neat/core/_instances/loaders/_rdf2dms.py,sha256=3QZzZ6oJn6toMk9-yWPtZiEEdW8wYW998nN6Drvu20I,34510
114
114
  cognite/neat/core/_instances/queries/__init__.py,sha256=W477LMyB4l6HIRbQhJoFgA_MUBwVCh2GBvtFeZu0AUA,53
115
115
  cognite/neat/core/_instances/queries/_base.py,sha256=APevHeeWQDEoOQ0MlBtVlPf9hbZukVkI5fOvt5oPJCE,543
116
116
  cognite/neat/core/_instances/queries/_queries.py,sha256=4BidSQXhdZYZ6_kyG7jMJ2iG0UtSrbQxfmwPM7V167A,466
@@ -177,13 +177,13 @@ cognite/neat/session/_subset.py,sha256=CwbO7wpAbNmD5rz8NYsUjx-1NS3fjZ2h9LJ7UwN1-
177
177
  cognite/neat/session/_template.py,sha256=OjDD2HLQuCdKBevbaxLv2JAI1EQFB_EDIH5glq44L9o,9890
178
178
  cognite/neat/session/_to.py,sha256=zOguyrMtk08uMwzuXzAeRLQ_833EHKmwz6ovy3Si-Dc,19257
179
179
  cognite/neat/session/_wizard.py,sha256=hARNNzD5Zfkk_V147rIjOLVvrFaqzXGXWhZuH1NJG3M,1486
180
- cognite/neat/session/exceptions.py,sha256=pZ6z5GXBTOjmh6xIszYMYL5LckOMcqfcT_BrxHQGOTo,3269
180
+ cognite/neat/session/exceptions.py,sha256=KJ7UUjmuGb_1O6FIamkwe4z0bCroAwn-AwX---hEudY,3341
181
181
  cognite/neat/session/_state/README.md,sha256=o6N7EL98lgyWffw8IoEUf2KG5uSKveD5__TW45YzVjA,902
182
182
  cognite/neat/session/engine/__init__.py,sha256=D3MxUorEs6-NtgoICqtZ8PISQrjrr4dvca6n48bu_bI,120
183
183
  cognite/neat/session/engine/_import.py,sha256=1QxA2_EK613lXYAHKQbZyw2yjo5P9XuiX4Z6_6-WMNQ,169
184
184
  cognite/neat/session/engine/_interface.py,sha256=3W-cYr493c_mW3P5O6MKN1xEQg3cA7NHR_ev3zdF9Vk,533
185
185
  cognite/neat/session/engine/_load.py,sha256=g52uYakQM03VqHt_RDHtpHso1-mFFifH5M4T2ScuH8A,5198
186
- cognite_neat-0.122.0.dist-info/METADATA,sha256=mjFrKMkLtGcxsnO2AVaGeH8pTDK6RXXad97K4smnHSA,9192
187
- cognite_neat-0.122.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
188
- cognite_neat-0.122.0.dist-info/licenses/LICENSE,sha256=W8VmvFia4WHa3Gqxq1Ygrq85McUNqIGDVgtdvzT-XqA,11351
189
- cognite_neat-0.122.0.dist-info/RECORD,,
186
+ cognite_neat-0.122.1.dist-info/METADATA,sha256=D25cVsvDJ6cWBPH9guOTr-xHC016LePV1cajgQFAwZ4,9171
187
+ cognite_neat-0.122.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
188
+ cognite_neat-0.122.1.dist-info/licenses/LICENSE,sha256=W8VmvFia4WHa3Gqxq1Ygrq85McUNqIGDVgtdvzT-XqA,11351
189
+ cognite_neat-0.122.1.dist-info/RECORD,,