cognite-neat 0.82.3__py3-none-any.whl → 0.83.0__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/legacy/rules/examples/power-grid-containers.yaml +8 -0
- cognite/neat/legacy/rules/examples/power-grid-model.yaml +8 -0
- cognite/neat/rules/models/dms/_schema.py +1 -0
- cognite/neat/workflows/migration/steps.py +3 -5
- {cognite_neat-0.82.3.dist-info → cognite_neat-0.83.0.dist-info}/METADATA +11 -11
- {cognite_neat-0.82.3.dist-info → cognite_neat-0.83.0.dist-info}/RECORD +10 -10
- {cognite_neat-0.82.3.dist-info → cognite_neat-0.83.0.dist-info}/LICENSE +0 -0
- {cognite_neat-0.82.3.dist-info → cognite_neat-0.83.0.dist-info}/WHEEL +0 -0
- {cognite_neat-0.82.3.dist-info → cognite_neat-0.83.0.dist-info}/entry_points.txt +0 -0
cognite/neat/_version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.
|
|
1
|
+
__version__ = "0.83.0"
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
properties:
|
|
4
4
|
name:
|
|
5
5
|
autoIncrement: false
|
|
6
|
+
immutable: false
|
|
6
7
|
defaultValue: null
|
|
7
8
|
description: 'The name that identifies Greographical
|
|
8
9
|
|
|
@@ -20,6 +21,7 @@
|
|
|
20
21
|
properties:
|
|
21
22
|
aliasName:
|
|
22
23
|
autoIncrement: false
|
|
24
|
+
immutable: false
|
|
23
25
|
defaultValue: null
|
|
24
26
|
description: 'The alternative name that identifies Substation
|
|
25
27
|
|
|
@@ -32,6 +34,7 @@
|
|
|
32
34
|
type: text
|
|
33
35
|
name:
|
|
34
36
|
autoIncrement: false
|
|
37
|
+
immutable: false
|
|
35
38
|
defaultValue: null
|
|
36
39
|
description: 'The name that identifies Terminal
|
|
37
40
|
|
|
@@ -44,6 +47,7 @@
|
|
|
44
47
|
type: text
|
|
45
48
|
substation:
|
|
46
49
|
autoIncrement: false
|
|
50
|
+
immutable: false
|
|
47
51
|
defaultValue: null
|
|
48
52
|
description: 'Substation to which terminal belongs to
|
|
49
53
|
|
|
@@ -61,6 +65,7 @@
|
|
|
61
65
|
properties:
|
|
62
66
|
name:
|
|
63
67
|
autoIncrement: false
|
|
68
|
+
immutable: false
|
|
64
69
|
defaultValue: null
|
|
65
70
|
description: 'The name that identifies SubGreographical
|
|
66
71
|
|
|
@@ -73,6 +78,7 @@
|
|
|
73
78
|
type: text
|
|
74
79
|
region:
|
|
75
80
|
autoIncrement: false
|
|
81
|
+
immutable: false
|
|
76
82
|
defaultValue: null
|
|
77
83
|
description: 'Region to which subgeographical region belongs to
|
|
78
84
|
|
|
@@ -90,6 +96,7 @@
|
|
|
90
96
|
properties:
|
|
91
97
|
name:
|
|
92
98
|
autoIncrement: false
|
|
99
|
+
immutable: false
|
|
93
100
|
defaultValue: null
|
|
94
101
|
description: 'The name that identifies Substation
|
|
95
102
|
|
|
@@ -102,6 +109,7 @@
|
|
|
102
109
|
type: text
|
|
103
110
|
subGeographicalRegion:
|
|
104
111
|
autoIncrement: false
|
|
112
|
+
immutable: false
|
|
105
113
|
defaultValue: null
|
|
106
114
|
description: 'The subgeographical region containing the substation
|
|
107
115
|
|
|
@@ -23,6 +23,7 @@ views:
|
|
|
23
23
|
type: text
|
|
24
24
|
nullable: false
|
|
25
25
|
autoIncrement: false
|
|
26
|
+
immutable: false
|
|
26
27
|
source: null
|
|
27
28
|
defaultValue: null
|
|
28
29
|
name: name
|
|
@@ -67,6 +68,7 @@ views:
|
|
|
67
68
|
type: text
|
|
68
69
|
nullable: false
|
|
69
70
|
autoIncrement: false
|
|
71
|
+
immutable: false
|
|
70
72
|
source: null
|
|
71
73
|
defaultValue: null
|
|
72
74
|
name: name
|
|
@@ -88,6 +90,7 @@ views:
|
|
|
88
90
|
version: "1"
|
|
89
91
|
nullable: true
|
|
90
92
|
autoIncrement: false
|
|
93
|
+
immutable: false
|
|
91
94
|
defaultValue: null
|
|
92
95
|
name: region
|
|
93
96
|
description: "Region to which subgeographical region belongs to
|
|
@@ -119,6 +122,7 @@ views:
|
|
|
119
122
|
type: text
|
|
120
123
|
nullable: false
|
|
121
124
|
autoIncrement: false
|
|
125
|
+
immutable: false
|
|
122
126
|
source: null
|
|
123
127
|
defaultValue: null
|
|
124
128
|
name: name
|
|
@@ -140,6 +144,7 @@ views:
|
|
|
140
144
|
version: bbe4295878a47f
|
|
141
145
|
nullable: true
|
|
142
146
|
autoIncrement: false
|
|
147
|
+
immutable: false
|
|
143
148
|
defaultValue: null
|
|
144
149
|
name: subGeographicalRegion
|
|
145
150
|
description: "The subgeographical region containing the substation
|
|
@@ -166,6 +171,7 @@ views:
|
|
|
166
171
|
type: text
|
|
167
172
|
nullable: false
|
|
168
173
|
autoIncrement: false
|
|
174
|
+
immutable: false
|
|
169
175
|
source: null
|
|
170
176
|
defaultValue: null
|
|
171
177
|
name: name
|
|
@@ -183,6 +189,7 @@ views:
|
|
|
183
189
|
type: text
|
|
184
190
|
nullable: true
|
|
185
191
|
autoIncrement: false
|
|
192
|
+
immutable: false
|
|
186
193
|
source: null
|
|
187
194
|
defaultValue: null
|
|
188
195
|
name: aliasName
|
|
@@ -204,6 +211,7 @@ views:
|
|
|
204
211
|
version: "1"
|
|
205
212
|
nullable: true
|
|
206
213
|
autoIncrement: false
|
|
214
|
+
immutable: false
|
|
207
215
|
defaultValue: null
|
|
208
216
|
name: substation
|
|
209
217
|
description: "Substation to which terminal belongs to
|
|
@@ -746,6 +746,7 @@ class DMSSchema:
|
|
|
746
746
|
type=container_prop.type,
|
|
747
747
|
nullable=container_prop.nullable,
|
|
748
748
|
auto_increment=container_prop.auto_increment,
|
|
749
|
+
immutable=container_prop.immutable,
|
|
749
750
|
# Likely bug in SDK.
|
|
750
751
|
default_value=container_prop.default_value, # type: ignore[arg-type]
|
|
751
752
|
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from pathlib import Path
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
import yaml
|
|
4
4
|
|
|
5
5
|
# Migration mapping
|
|
6
6
|
|
|
@@ -62,9 +62,7 @@ step_rename_mapping = {
|
|
|
62
62
|
|
|
63
63
|
def rename_workflow_steps(workflow_path: Path, dry_run: bool) -> str:
|
|
64
64
|
# Load the YAML file
|
|
65
|
-
|
|
66
|
-
with workflow_path.open() as file:
|
|
67
|
-
data = yaml.load(file)
|
|
65
|
+
data = yaml.safe_load(workflow_path.read_text())
|
|
68
66
|
# Replace old step names with new ones
|
|
69
67
|
for step in data["steps"]:
|
|
70
68
|
if step["method"] in step_rename_mapping:
|
|
@@ -73,7 +71,7 @@ def rename_workflow_steps(workflow_path: Path, dry_run: bool) -> str:
|
|
|
73
71
|
|
|
74
72
|
# Save the updated YAML file
|
|
75
73
|
with workflow_path.open("w") as file:
|
|
76
|
-
yaml.
|
|
74
|
+
yaml.safe_dump(data, file)
|
|
77
75
|
return "ok"
|
|
78
76
|
|
|
79
77
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: cognite-neat
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.83.0
|
|
4
4
|
Summary: Knowledge graph transformation
|
|
5
5
|
Home-page: https://cognite-neat.readthedocs-hosted.com/
|
|
6
6
|
License: Apache-2.0
|
|
@@ -17,15 +17,16 @@ Provides-Extra: docs
|
|
|
17
17
|
Provides-Extra: google
|
|
18
18
|
Provides-Extra: graphql
|
|
19
19
|
Provides-Extra: oxi
|
|
20
|
+
Provides-Extra: service
|
|
20
21
|
Requires-Dist: PyYAML
|
|
21
22
|
Requires-Dist: backports.strenum (>=1.2,<2.0) ; python_version < "3.11"
|
|
22
|
-
Requires-Dist: cognite-sdk (>=7.
|
|
23
|
+
Requires-Dist: cognite-sdk (>=7.52.0,<8.0.0)
|
|
23
24
|
Requires-Dist: deepdiff
|
|
24
25
|
Requires-Dist: exceptiongroup (>=1.1.3,<2.0.0) ; python_version < "3.11"
|
|
25
|
-
Requires-Dist: fastapi (>=0,<1)
|
|
26
|
-
Requires-Dist: google-api-python-client ; extra == "google"
|
|
27
|
-
Requires-Dist: google-auth-oauthlib ; extra == "google"
|
|
28
|
-
Requires-Dist: gspread ; extra == "google"
|
|
26
|
+
Requires-Dist: fastapi (>=0,<1) ; extra == "service" or extra == "all"
|
|
27
|
+
Requires-Dist: google-api-python-client ; extra == "google"
|
|
28
|
+
Requires-Dist: google-auth-oauthlib ; extra == "google"
|
|
29
|
+
Requires-Dist: gspread ; extra == "google"
|
|
29
30
|
Requires-Dist: jinja2 (>=3.1.2,<4.0.0) ; extra == "graphql" or extra == "all"
|
|
30
31
|
Requires-Dist: mkdocs ; extra == "docs"
|
|
31
32
|
Requires-Dist: mkdocs-autorefs (>=0.5.0,<0.6.0) ; extra == "docs"
|
|
@@ -39,18 +40,17 @@ Requires-Dist: mkdocstrings[python] ; extra == "docs"
|
|
|
39
40
|
Requires-Dist: openpyxl
|
|
40
41
|
Requires-Dist: oxrdflib[oxigraph] (>=0.3.3,<0.4.0) ; extra == "oxi" or extra == "all"
|
|
41
42
|
Requires-Dist: pandas
|
|
42
|
-
Requires-Dist: prometheus-client (>=0
|
|
43
|
+
Requires-Dist: prometheus-client (>=0,<1) ; extra == "service" or extra == "all"
|
|
43
44
|
Requires-Dist: pydantic (>=2,<3)
|
|
44
45
|
Requires-Dist: pymdown-extensions ; extra == "docs"
|
|
45
|
-
Requires-Dist: pyoxigraph (==0.3.19)
|
|
46
|
-
Requires-Dist: python-multipart (>=0,<1)
|
|
46
|
+
Requires-Dist: pyoxigraph (==0.3.19) ; extra == "oxi" or extra == "all"
|
|
47
47
|
Requires-Dist: rdflib
|
|
48
48
|
Requires-Dist: requests
|
|
49
|
-
Requires-Dist: schedule (>=1,<2)
|
|
49
|
+
Requires-Dist: schedule (>=1,<2) ; extra == "service" or extra == "all"
|
|
50
50
|
Requires-Dist: tomli (>=2.0.1,<3.0.0) ; python_version < "3.11"
|
|
51
51
|
Requires-Dist: typing_extensions (>=4.8,<5.0) ; python_version < "3.11"
|
|
52
52
|
Requires-Dist: urllib3 (>=2,<3)
|
|
53
|
-
Requires-Dist: uvicorn[standard] (>=0,<1)
|
|
53
|
+
Requires-Dist: uvicorn[standard] (>=0,<1) ; extra == "service" or extra == "all"
|
|
54
54
|
Project-URL: Documentation, https://cognite-neat.readthedocs-hosted.com/
|
|
55
55
|
Project-URL: Repository, https://github.com/cognitedata/neat
|
|
56
56
|
Description-Content-Type: text/markdown
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
cognite/neat/__init__.py,sha256=v-rRiDOgZ3sQSMQKq0vgUQZvpeOkoHFXissAx6Ktg84,61
|
|
2
|
-
cognite/neat/_version.py,sha256=
|
|
2
|
+
cognite/neat/_version.py,sha256=FwfsRG64Uncan1BBCrMrXMKjMO1MhfWoBbdMOZk1GnU,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=2U5M6M252swvQPQyooA1EBzFUZNtcTmuSaywfJDgckM,4232
|
|
@@ -125,9 +125,9 @@ cognite/neat/legacy/rules/analysis.py,sha256=-PWaFqzvMlUA6nrZissMvoQm8xwFqniIDAp
|
|
|
125
125
|
cognite/neat/legacy/rules/examples/Rules-Nordic44-to-TNT.xlsx,sha256=pT2skrX3uWZtw-HIfIipVuPVr3bgb8zOAIqkguVjhCI,58987
|
|
126
126
|
cognite/neat/legacy/rules/examples/Rules-Nordic44-to-graphql.xlsx,sha256=eo6K177Xrz0CKyUFsbsGF8qZJsJI1Qf1JrzozdbmkeU,80226
|
|
127
127
|
cognite/neat/legacy/rules/examples/__init__.py,sha256=rLVPMLdcxpiW6LzfIgJodDKXfpdoYbD4Q60nmK_wAqU,858
|
|
128
|
-
cognite/neat/legacy/rules/examples/power-grid-containers.yaml,sha256=
|
|
128
|
+
cognite/neat/legacy/rules/examples/power-grid-containers.yaml,sha256=dgAQ5KYT9_FHwsxPapvm00K4XJtKMbGmTs4-KnfpjDg,2782
|
|
129
129
|
cognite/neat/legacy/rules/examples/power-grid-example.xlsx,sha256=gUklgEhawhJ-EquwZpNp7dFvrLGAOzbKIGh8hTObxMg,77055
|
|
130
|
-
cognite/neat/legacy/rules/examples/power-grid-model.yaml,sha256=
|
|
130
|
+
cognite/neat/legacy/rules/examples/power-grid-model.yaml,sha256=UBtwOBUkdSfkuNOOJhnOdpdPHx3Agx_BZHPMjMmTEU0,5767
|
|
131
131
|
cognite/neat/legacy/rules/examples/rules-template.xlsx,sha256=buyxUbY5N5H52LgKST-D2FVvpjEMW4jC2chAHToknNI,75865
|
|
132
132
|
cognite/neat/legacy/rules/examples/sheet2cdf-transformation-rules.xlsx,sha256=_a93q8Yu7nv7Bq3I__RHD7pcdbfrv7urlp_AdgP2o3o,52433
|
|
133
133
|
cognite/neat/legacy/rules/examples/skos-rules.xlsx,sha256=XjdBpbfUrJnniTCCQLOBW-8OmJyGpIT1Ig-DHQG3x04,26008
|
|
@@ -236,7 +236,7 @@ cognite/neat/rules/models/dms/_converter.py,sha256=QaJT0z0Yo4gkG9tHPZkU8idF8PK7c
|
|
|
236
236
|
cognite/neat/rules/models/dms/_exporter.py,sha256=DRL5ahcBEdBltHLA2rzLyUfqG5SZkqINkqmYGDkQVg0,24785
|
|
237
237
|
cognite/neat/rules/models/dms/_rules.py,sha256=XTIEWG49VjNs_bICGlgMd6uk4hseY1H6UVe2KMfHAWQ,16152
|
|
238
238
|
cognite/neat/rules/models/dms/_rules_input.py,sha256=apDDTQll9UAyYL5gS2vDxHsujWrGBilTp7lK2kzJWO8,13467
|
|
239
|
-
cognite/neat/rules/models/dms/_schema.py,sha256=
|
|
239
|
+
cognite/neat/rules/models/dms/_schema.py,sha256=balykJXJy93HJzBZN-KBYrRJJvGsaEtQeX7-z0tbX7w,49566
|
|
240
240
|
cognite/neat/rules/models/dms/_serializer.py,sha256=iqp2zyyf8jEcU-R3PERuN8nu248xIqyxiWj4owAn92g,6406
|
|
241
241
|
cognite/neat/rules/models/dms/_validation.py,sha256=5mk9L99FSwC8Ok7weEjnFJ_OZnmqMWUc6XFMTfkqfDw,14549
|
|
242
242
|
cognite/neat/rules/models/domain.py,sha256=wZ-DeIPFnacbNlxSrRuLzUpnhHdTpzNc22z0sDfisi4,2880
|
|
@@ -279,7 +279,7 @@ cognite/neat/workflows/examples/Visualize_Data_Model_Using_Mock_Graph/workflow.y
|
|
|
279
279
|
cognite/neat/workflows/examples/Visualize_Semantic_Data_Model/workflow.yaml,sha256=yWVL-NHghKtiNV2kpEX674MJwWqhOUn3j2ZOJiJbprE,2579
|
|
280
280
|
cognite/neat/workflows/manager.py,sha256=CtxnabAmZq4APd5XA6FTBlytP3WmlbKNGjNoR04uAQ4,14102
|
|
281
281
|
cognite/neat/workflows/migration/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
282
|
-
cognite/neat/workflows/migration/steps.py,sha256=
|
|
282
|
+
cognite/neat/workflows/migration/steps.py,sha256=YjwSDrf6W8pvKzh0vnkyA2QXJDGoYrzJ6VHNCy2oPtc,3945
|
|
283
283
|
cognite/neat/workflows/migration/wf_manifests.py,sha256=TIJ9q_sbZ1LVJfUYVk8VRYcxrRHlwyktHRag0OJcVrE,1556
|
|
284
284
|
cognite/neat/workflows/model.py,sha256=LQY7abYnz3CUEIlIEqoj0Eo6Q8yQukTQ0S_sPststCA,6570
|
|
285
285
|
cognite/neat/workflows/steps/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -307,8 +307,8 @@ cognite/neat/workflows/steps_registry.py,sha256=fkTX14ZA7_gkUYfWIlx7A1XbCidvqR23
|
|
|
307
307
|
cognite/neat/workflows/tasks.py,sha256=dqlJwKAb0jlkl7abbY8RRz3m7MT4SK8-7cntMWkOYjw,788
|
|
308
308
|
cognite/neat/workflows/triggers.py,sha256=_BLNplzoz0iic367u1mhHMHiUrCwP-SLK6_CZzfODX0,7071
|
|
309
309
|
cognite/neat/workflows/utils.py,sha256=gKdy3RLG7ctRhbCRwaDIWpL9Mi98zm56-d4jfHDqP1E,453
|
|
310
|
-
cognite_neat-0.
|
|
311
|
-
cognite_neat-0.
|
|
312
|
-
cognite_neat-0.
|
|
313
|
-
cognite_neat-0.
|
|
314
|
-
cognite_neat-0.
|
|
310
|
+
cognite_neat-0.83.0.dist-info/LICENSE,sha256=W8VmvFia4WHa3Gqxq1Ygrq85McUNqIGDVgtdvzT-XqA,11351
|
|
311
|
+
cognite_neat-0.83.0.dist-info/METADATA,sha256=ghwKVMP-mGJe6-Akz2QknoGas7foq5rsCPA8qVzg200,9400
|
|
312
|
+
cognite_neat-0.83.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
313
|
+
cognite_neat-0.83.0.dist-info/entry_points.txt,sha256=61FPqiWb25vbqB0KI7znG8nsg_ibLHBvTjYnkPvNFso,50
|
|
314
|
+
cognite_neat-0.83.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|