cognite-neat 0.123.38__py3-none-any.whl → 0.123.39__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 +1 -1
- cognite/neat/v0/core/_data_model/models/data_types.py +1 -1
- cognite/neat/v0/core/_instances/extractors/_dict.py +4 -1
- {cognite_neat-0.123.38.dist-info → cognite_neat-0.123.39.dist-info}/METADATA +1 -1
- {cognite_neat-0.123.38.dist-info → cognite_neat-0.123.39.dist-info}/RECORD +7 -7
- {cognite_neat-0.123.38.dist-info → cognite_neat-0.123.39.dist-info}/WHEEL +0 -0
- {cognite_neat-0.123.38.dist-info → cognite_neat-0.123.39.dist-info}/licenses/LICENSE +0 -0
cognite/neat/_version.py
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
__version__ = "0.123.
|
|
1
|
+
__version__ = "0.123.39"
|
|
2
2
|
__engine__ = "^2.0.4"
|
|
@@ -43,9 +43,12 @@ class DictExtractor(BaseExtractor):
|
|
|
43
43
|
self, key: str, value: Any, unpack_json: bool
|
|
44
44
|
) -> Iterable[tuple[str, Literal | URIRef]]:
|
|
45
45
|
if key in self.uri_ref_keys and not isinstance(value, dict | list):
|
|
46
|
+
# exist if key is meant to form a URIRef
|
|
46
47
|
yield key, URIRef(self.namespace[urllib.parse.quote(value)])
|
|
47
|
-
|
|
48
|
+
elif isinstance(value, float | bool | int):
|
|
48
49
|
yield key, Literal(value)
|
|
50
|
+
elif isinstance(value, str):
|
|
51
|
+
yield key, Literal(string_to_ideal_type(value)) if self.str_to_ideal_type else Literal(value)
|
|
49
52
|
elif isinstance(value, dict) and unpack_json:
|
|
50
53
|
yield from self._unpack_json(value)
|
|
51
54
|
elif isinstance(value, dict):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cognite-neat
|
|
3
|
-
Version: 0.123.
|
|
3
|
+
Version: 0.123.39
|
|
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,6 +1,6 @@
|
|
|
1
1
|
cognite/neat/__init__.py,sha256=Lo4DbjDOwnhCYUoAgPp5RG1fDdF7OlnomalTe7n1ydw,211
|
|
2
2
|
cognite/neat/_issues.py,sha256=uv0fkkWwTKqNmTmHqyoBB3L6yMCh42EZpEkLGmIJYOY,812
|
|
3
|
-
cognite/neat/_version.py,sha256=
|
|
3
|
+
cognite/neat/_version.py,sha256=ZTWVKANnFlW6QqktADqgWQm0NPnrSBLdQ7Z_g2suOds,47
|
|
4
4
|
cognite/neat/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
cognite/neat/_data_model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
6
|
cognite/neat/_data_model/_constants.py,sha256=NGGvWHlQqhkkSBP_AqoofGYjNph3SiZX6QPINlMsy04,107
|
|
@@ -85,7 +85,7 @@ cognite/neat/v0/core/_data_model/models/_base_unverified.py,sha256=1Wfbp-tJaEF6h
|
|
|
85
85
|
cognite/neat/v0/core/_data_model/models/_base_verified.py,sha256=9EhRUEJ7ma-MnEFvXeQg6ew_gAcfLEapkckPX6mrlYQ,15142
|
|
86
86
|
cognite/neat/v0/core/_data_model/models/_import_contexts.py,sha256=_agCsWvq_ky_Np83UO1qRSlOodlBSLDFp29rB5Ty5hw,3439
|
|
87
87
|
cognite/neat/v0/core/_data_model/models/_types.py,sha256=A7lKYqGlEGRvXpsCdx-XGcFony0VeNCk9tRxeQpF6Po,5503
|
|
88
|
-
cognite/neat/v0/core/_data_model/models/data_types.py,sha256=
|
|
88
|
+
cognite/neat/v0/core/_data_model/models/data_types.py,sha256=qZIlRWaOGqfq97iRAP0lVNNXUAKxwy0zJoQex4uoqcA,10542
|
|
89
89
|
cognite/neat/v0/core/_data_model/models/conceptual/__init__.py,sha256=9A6myEV8s0-LqdXejaljqPj8S0pIpUL75rNdRDZzyR8,585
|
|
90
90
|
cognite/neat/v0/core/_data_model/models/conceptual/_unverified.py,sha256=UvqjGxVQsf_cNCYf726TXgnPplUy3iBuI-nUp0TclD0,6539
|
|
91
91
|
cognite/neat/v0/core/_data_model/models/conceptual/_validation.py,sha256=oaXRe1RfwsCQ_D5-IdXJf6yZ4Eug_PLu-bDklADYGV4,13895
|
|
@@ -123,7 +123,7 @@ cognite/neat/v0/core/_instances/examples/__init__.py,sha256=yAjHVY3b5jOjmbW-iLbh
|
|
|
123
123
|
cognite/neat/v0/core/_instances/examples/skos-capturing-sheet-wind-topics.xlsx,sha256=CV_yK5ZSbYS_ktfIZUPD8Sevs47zpswLXQUDFkGE4Gw,45798
|
|
124
124
|
cognite/neat/v0/core/_instances/extractors/__init__.py,sha256=x8nnTw8io_9INZuiHzWe__yB6G9GUdjEeaWGAx_MzHk,2212
|
|
125
125
|
cognite/neat/v0/core/_instances/extractors/_base.py,sha256=dz0xAHDA0EUofRRxja9IKWoAXl3_vY4mnxO5We0LLDw,1974
|
|
126
|
-
cognite/neat/v0/core/_instances/extractors/_dict.py,sha256=
|
|
126
|
+
cognite/neat/v0/core/_instances/extractors/_dict.py,sha256=wsHDEa-VcoLxayWm5BONw3LyeT-jF8n4sBSInUXRZ0k,4529
|
|
127
127
|
cognite/neat/v0/core/_instances/extractors/_dms.py,sha256=DFYSNd3wU-MCCDddojH6KX1wsx1gLz9fv34-WfnjwBE,13858
|
|
128
128
|
cognite/neat/v0/core/_instances/extractors/_dms_graph.py,sha256=VS8--8BH8cy9f1JUek_g3vIC4c6VkzBXhvPKqHydKjc,10228
|
|
129
129
|
cognite/neat/v0/core/_instances/extractors/_mock_graph_generator.py,sha256=3WxMWXXxQdth7Na6XMhNeAfqUKxK-8S8CEKAEPKBMDk,15954
|
|
@@ -223,7 +223,7 @@ cognite/neat/v0/session/engine/__init__.py,sha256=D3MxUorEs6-NtgoICqtZ8PISQrjrr4
|
|
|
223
223
|
cognite/neat/v0/session/engine/_import.py,sha256=1QxA2_EK613lXYAHKQbZyw2yjo5P9XuiX4Z6_6-WMNQ,169
|
|
224
224
|
cognite/neat/v0/session/engine/_interface.py,sha256=3W-cYr493c_mW3P5O6MKN1xEQg3cA7NHR_ev3zdF9Vk,533
|
|
225
225
|
cognite/neat/v0/session/engine/_load.py,sha256=u0x7vuQCRoNcPt25KJBJRn8sJabonYK4vtSZpiTdP4k,5201
|
|
226
|
-
cognite_neat-0.123.
|
|
227
|
-
cognite_neat-0.123.
|
|
228
|
-
cognite_neat-0.123.
|
|
229
|
-
cognite_neat-0.123.
|
|
226
|
+
cognite_neat-0.123.39.dist-info/METADATA,sha256=eQFt9KEee3JdoiaHaQE7FRyA0Jd53JEIOzsVZ53Gxbk,9148
|
|
227
|
+
cognite_neat-0.123.39.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
228
|
+
cognite_neat-0.123.39.dist-info/licenses/LICENSE,sha256=W8VmvFia4WHa3Gqxq1Ygrq85McUNqIGDVgtdvzT-XqA,11351
|
|
229
|
+
cognite_neat-0.123.39.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|