cognite-neat 0.73.3__py3-none-any.whl → 0.74.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/app/api/routers/rules.py +61 -33
- cognite/neat/app/ui/neat-app/build/asset-manifest.json +3 -3
- cognite/neat/app/ui/neat-app/build/img/architect-icon.svg +116 -0
- cognite/neat/app/ui/neat-app/build/img/developer-icon.svg +112 -0
- cognite/neat/app/ui/neat-app/build/img/sme-icon.svg +34 -0
- cognite/neat/app/ui/neat-app/build/index.html +1 -1
- cognite/neat/app/ui/neat-app/build/static/js/{main.2efd96b2.js → main.25d27396.js} +3 -3
- cognite/neat/app/ui/neat-app/build/static/js/{main.2efd96b2.js.map → main.25d27396.js.map} +1 -1
- cognite/neat/rules/models/_rules/information_rules.py +3 -0
- cognite/neat/workflows/steps/lib/rules_exporter.py +17 -4
- {cognite_neat-0.73.3.dist-info → cognite_neat-0.74.0.dist-info}/METADATA +2 -2
- {cognite_neat-0.73.3.dist-info → cognite_neat-0.74.0.dist-info}/RECORD +17 -14
- /cognite/neat/app/ui/neat-app/build/static/js/{main.2efd96b2.js.LICENSE.txt → main.25d27396.js.LICENSE.txt} +0 -0
- {cognite_neat-0.73.3.dist-info → cognite_neat-0.74.0.dist-info}/LICENSE +0 -0
- {cognite_neat-0.73.3.dist-info → cognite_neat-0.74.0.dist-info}/WHEEL +0 -0
- {cognite_neat-0.73.3.dist-info → cognite_neat-0.74.0.dist-info}/entry_points.txt +0 -0
|
@@ -404,6 +404,7 @@ class _InformationRulesConverter:
|
|
|
404
404
|
views: list[DMSView] = [
|
|
405
405
|
DMSView(
|
|
406
406
|
class_=cls_.class_,
|
|
407
|
+
name=cls_.name,
|
|
407
408
|
view=ViewPropEntity(prefix=cls_.class_.prefix, suffix=cls_.class_.suffix, version=cls_.class_.version),
|
|
408
409
|
description=cls_.description,
|
|
409
410
|
reference=cls_.reference,
|
|
@@ -427,6 +428,7 @@ class _InformationRulesConverter:
|
|
|
427
428
|
containers.append(
|
|
428
429
|
DMSContainer(
|
|
429
430
|
class_=class_.class_,
|
|
431
|
+
name=class_.name,
|
|
430
432
|
container=ContainerEntity(prefix=class_.class_.prefix, suffix=class_.class_.suffix),
|
|
431
433
|
description=class_.description,
|
|
432
434
|
constraint=[
|
|
@@ -487,6 +489,7 @@ class _InformationRulesConverter:
|
|
|
487
489
|
|
|
488
490
|
return DMSProperty(
|
|
489
491
|
class_=prop.class_,
|
|
492
|
+
name=prop.name,
|
|
490
493
|
property_=prop.property_,
|
|
491
494
|
value_type=value_type,
|
|
492
495
|
nullable=nullable,
|
|
@@ -98,9 +98,11 @@ class RulesToDMS(Step):
|
|
|
98
98
|
|
|
99
99
|
dms_exporter = exporters.DMSExporter(
|
|
100
100
|
export_components=frozenset(components_to_create),
|
|
101
|
-
include_space=
|
|
102
|
-
|
|
103
|
-
|
|
101
|
+
include_space=(
|
|
102
|
+
None
|
|
103
|
+
if multi_space_components_create
|
|
104
|
+
else {input_rules.metadata.space if isinstance(input_rules, DMSRules) else input_rules.metadata.prefix}
|
|
105
|
+
),
|
|
104
106
|
existing_handling=existing_components_handling,
|
|
105
107
|
)
|
|
106
108
|
|
|
@@ -169,6 +171,11 @@ class RulesToExcel(Step):
|
|
|
169
171
|
"rules will be used.",
|
|
170
172
|
options=["input", *RoleTypes.__members__.keys()],
|
|
171
173
|
),
|
|
174
|
+
Configurable(
|
|
175
|
+
name="File path",
|
|
176
|
+
value="",
|
|
177
|
+
label="File path to the generated Excel file.For example: 'staging/exported-rules.xlsx'",
|
|
178
|
+
),
|
|
172
179
|
]
|
|
173
180
|
|
|
174
181
|
def run(self, rules: MultiRuleData) -> FlowMessage: # type: ignore[override, syntax]
|
|
@@ -200,12 +207,18 @@ class RulesToExcel(Step):
|
|
|
200
207
|
output_dir.mkdir(parents=True, exist_ok=True)
|
|
201
208
|
file_name = f"exported_rules_{output_role.value}.xlsx"
|
|
202
209
|
filepath = output_dir / file_name
|
|
210
|
+
if self.configs.get("File path", ""):
|
|
211
|
+
file_name = self.configs["File path"]
|
|
212
|
+
filepath = Path(self.data_store_path) / Path(file_name)
|
|
213
|
+
else:
|
|
214
|
+
file_name = f"staging/{file_name}"
|
|
215
|
+
|
|
203
216
|
excel_exporter.export_to_file(rule_instance, filepath)
|
|
204
217
|
|
|
205
218
|
output_text = (
|
|
206
219
|
"<p></p>"
|
|
207
220
|
f"Download Excel Exported {output_role.value} rules: "
|
|
208
|
-
f'- <a href="/data/
|
|
221
|
+
f'- <a href="/data/{file_name}?{time.time()}" '
|
|
209
222
|
f'target="_blank">{file_name}</a>'
|
|
210
223
|
)
|
|
211
224
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: cognite-neat
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.74.0
|
|
4
4
|
Summary: Knowledge graph transformation
|
|
5
5
|
Home-page: https://cognite-neat.readthedocs-hosted.com/
|
|
6
6
|
License: Apache-2.0
|
|
@@ -49,7 +49,7 @@ Requires-Dist: requests
|
|
|
49
49
|
Requires-Dist: schedule (>=1,<2)
|
|
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
|
-
Requires-Dist: urllib3 (>=
|
|
52
|
+
Requires-Dist: urllib3 (>=2,<3)
|
|
53
53
|
Requires-Dist: uvicorn[standard] (>=0.29.0,<0.30.0)
|
|
54
54
|
Project-URL: Documentation, https://cognite-neat.readthedocs-hosted.com/
|
|
55
55
|
Project-URL: Repository, https://github.com/cognitedata/neat
|
|
@@ -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=LTGPFi35Sb0BOcZvETsqbg87vHXhQDdmzQA9fLg4Wro,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
|
|
@@ -14,7 +14,7 @@ cognite/neat/app/api/routers/core.py,sha256=ZU7sZ1QgFtrNHR-Y6DVzxLZSIJoZZeCvlXLg
|
|
|
14
14
|
cognite/neat/app/api/routers/crud.py,sha256=Cnvw77JWCs_wzeoQYdWwGfFns8LgtYmsYWgKPtud3BA,4646
|
|
15
15
|
cognite/neat/app/api/routers/data_exploration.py,sha256=XlpEbggy1mK1XmwVtLZmrXWulTzdaGQaKAyHs3H04qU,13653
|
|
16
16
|
cognite/neat/app/api/routers/metrics.py,sha256=S_bUQk_GjfQq7WbEhSVdow4MUYBZ_bZNafzgcKogXK8,210
|
|
17
|
-
cognite/neat/app/api/routers/rules.py,sha256=
|
|
17
|
+
cognite/neat/app/api/routers/rules.py,sha256=cFXGHMnxBEOKNymf1pPoabD3EROY8RuiWaSdtkfAo5I,7915
|
|
18
18
|
cognite/neat/app/api/routers/workflows.py,sha256=3IALkg1tam9QYVzkYBDuY8wvXHN8KtuSRhnzEq4cxbE,12402
|
|
19
19
|
cognite/neat/app/api/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
20
20
|
cognite/neat/app/api/utils/data_mapping.py,sha256=ocqRyeCLbk3gS1NrQQnDr0w-q-xbkqV60uLZzsJIdyE,564
|
|
@@ -26,17 +26,20 @@ cognite/neat/app/monitoring/metrics.py,sha256=GKNoYEmnQc43FrXNaBC6myQugObxRXrUd6
|
|
|
26
26
|
cognite/neat/app/ui/index.html,sha256=PQtvXjCd-PzogV-QjdaCGwSWz0PNn7T_fqnAznR3CCY,16
|
|
27
27
|
cognite/neat/app/ui/neat-app/.gitignore,sha256=iRXaC85HOaGaxS3OQR8uYGM0ShdU4CpGHR26ThRHUww,312
|
|
28
28
|
cognite/neat/app/ui/neat-app/README.md,sha256=cOr7x6X9RmqjITtafhsqQTg8vl1Ob8X0WC78WL21CdE,3359
|
|
29
|
-
cognite/neat/app/ui/neat-app/build/asset-manifest.json,sha256=
|
|
29
|
+
cognite/neat/app/ui/neat-app/build/asset-manifest.json,sha256=IzPtCTPVxeytiD3_jyfWwoT6f4Fe8y4tiGacQA9yJsU,464
|
|
30
30
|
cognite/neat/app/ui/neat-app/build/favicon.ico,sha256=_Bw_morVrDlSHlMFOCjAzaJV1oM0sOLG6djD8HmP9VI,15406
|
|
31
|
-
cognite/neat/app/ui/neat-app/build/
|
|
31
|
+
cognite/neat/app/ui/neat-app/build/img/architect-icon.svg,sha256=HDoJmSO2ayVvxDk6R6-d42TwytbGlXMPWm_J2qFjmDA,10756
|
|
32
|
+
cognite/neat/app/ui/neat-app/build/img/developer-icon.svg,sha256=VeVFw2Pj97D4FPei6YLUJbVqJJKY24RzfF83UWUiujE,8374
|
|
33
|
+
cognite/neat/app/ui/neat-app/build/img/sme-icon.svg,sha256=z9MJYUNpWnjW4sIf_C0GkbMTfP1EBixIhX4a72s4888,5333
|
|
34
|
+
cognite/neat/app/ui/neat-app/build/index.html,sha256=fM8PLHJgn9ApEZr4Lw8cU_ROl-5U1iuE7AFEcLrtUl4,629
|
|
32
35
|
cognite/neat/app/ui/neat-app/build/logo192.png,sha256=RvR_LqdUJTCcGEshzFi21taYa6RVtLbg5HVzvoURd3I,344557
|
|
33
36
|
cognite/neat/app/ui/neat-app/build/manifest.json,sha256=ULPYw5A68_eNhxuUVXqxT045yhkurKPSz6hjyGcnmhQ,492
|
|
34
37
|
cognite/neat/app/ui/neat-app/build/robots.txt,sha256=kNJLw79pisHhc3OVAimMzKcq3x9WT6sF9IS4xI0crdI,67
|
|
35
38
|
cognite/neat/app/ui/neat-app/build/static/css/main.38a62222.css,sha256=iDWBDD9v4kvzKPcNhpr37ZDjsggkJOkYMnCb1_vHyTQ,8524
|
|
36
39
|
cognite/neat/app/ui/neat-app/build/static/css/main.38a62222.css.map,sha256=YiacBwqp1mmavnhEeNTOm9j53Q9lI9wcvSwDePvvLWA,13319
|
|
37
|
-
cognite/neat/app/ui/neat-app/build/static/js/main.
|
|
38
|
-
cognite/neat/app/ui/neat-app/build/static/js/main.
|
|
39
|
-
cognite/neat/app/ui/neat-app/build/static/js/main.
|
|
40
|
+
cognite/neat/app/ui/neat-app/build/static/js/main.25d27396.js,sha256=sb3lUC93eOSMLuKVNBFLc0GqcI9Xb76UWbpRVlV1wjY,1421276
|
|
41
|
+
cognite/neat/app/ui/neat-app/build/static/js/main.25d27396.js.LICENSE.txt,sha256=7MyvPDLc3ChJIETthFSLRMt9Q2gwAMd8OYMqRMq-UhQ,2667
|
|
42
|
+
cognite/neat/app/ui/neat-app/build/static/js/main.25d27396.js.map,sha256=1zxCh-sHOXONs9-vup7_x7Mmt2hOeg8wUzDr3gUhECk,6279450
|
|
40
43
|
cognite/neat/app/ui/neat-app/build/static/media/logo.8093b84df9ed36a174c629d6fe0b730d.svg,sha256=EYf9q9JoVJ1L1np-XloeEZXCmaibzKmmpXCKn_44xzA,240334
|
|
41
44
|
cognite/neat/config.py,sha256=5_dTuoL5crCmbSdKNuNOMQJVPNGiPy7ib2MlMkgPlOM,1503
|
|
42
45
|
cognite/neat/constants.py,sha256=5ujOhkmobXBleswTahlLltQwDu9bl7w00nwrVyr5_0k,1205
|
|
@@ -166,7 +169,7 @@ cognite/neat/rules/models/_rules/base.py,sha256=F79FX1qCIqXlAPg0yAlpC6753dcRqoy9
|
|
|
166
169
|
cognite/neat/rules/models/_rules/dms_architect_rules.py,sha256=K5S9Us4hlaOVkqd4IzxsZXsuYv_4M3H107HWm3M_Sao,55886
|
|
167
170
|
cognite/neat/rules/models/_rules/dms_schema.py,sha256=dOzOr5iZyiOWFROo6706Z8aRvR6FSvPgRxWXSuuje3s,30418
|
|
168
171
|
cognite/neat/rules/models/_rules/domain_rules.py,sha256=HSZWk4NTfnzX_LlOdA5HAMkiHA5r4BZxRkGOWTFp79Y,2566
|
|
169
|
-
cognite/neat/rules/models/_rules/information_rules.py,sha256=
|
|
172
|
+
cognite/neat/rules/models/_rules/information_rules.py,sha256=ssd34XOVhx9HJ5xzAEwBk_9GRYmdmsHPH_QHa9JGKhM,21653
|
|
170
173
|
cognite/neat/rules/models/raw_rules.py,sha256=Y7ZVKyvLhX0s6WdwztbFiYFj4EijGEfjtBmv0ibRmmg,12368
|
|
171
174
|
cognite/neat/rules/models/rdfpath.py,sha256=kk1dqxl3n2W_vSQtpSJri2O4nCXnCDZB2lhLsLV1PN0,7344
|
|
172
175
|
cognite/neat/rules/models/rules.py,sha256=ECKrQEtoiQqtR8W-rKMAWmODpHeHhI8Qzf3TwCa3dy8,51063
|
|
@@ -211,7 +214,7 @@ cognite/neat/workflows/steps/lib/graph_extractor.py,sha256=vW9UpJScx5dFVCSairpOd
|
|
|
211
214
|
cognite/neat/workflows/steps/lib/graph_loader.py,sha256=HfGg1HRZhbV58TFu89FTjKeUxGsbCYLeFJIQFDN_pQM,2341
|
|
212
215
|
cognite/neat/workflows/steps/lib/graph_store.py,sha256=NV5SZFTrbq_gtZZZdoEL8tIohdbsieKmpwrdWAHis-E,6288
|
|
213
216
|
cognite/neat/workflows/steps/lib/io_steps.py,sha256=QAGypoi1vP32BRiIgBZ0B4qsbFMcwhzpRiVUUnWysLA,16874
|
|
214
|
-
cognite/neat/workflows/steps/lib/rules_exporter.py,sha256=
|
|
217
|
+
cognite/neat/workflows/steps/lib/rules_exporter.py,sha256=YhjbY-79ygCCmH2KCq28iQQbIAOC2FE07FGqGGo06ww,18679
|
|
215
218
|
cognite/neat/workflows/steps/lib/rules_importer.py,sha256=tckiHIS9Vnqx3df62jdtNwSm-Nk_XQwgo1sM0zKOw_s,7327
|
|
216
219
|
cognite/neat/workflows/steps/lib/rules_validator.py,sha256=uGXcMncrtAu3IAMY3dqDNLfoL7sKSLzU1jz85xNrtO4,4785
|
|
217
220
|
cognite/neat/workflows/steps/lib/v1/__init__.py,sha256=725aFzVqhE0tbVOAW70zWXTGKFiYImVupRZ4C5_IkUo,274
|
|
@@ -227,8 +230,8 @@ cognite/neat/workflows/steps_registry.py,sha256=PZVoHX4d6Vmjz6XzUFnFFWMCnrVnqkUC
|
|
|
227
230
|
cognite/neat/workflows/tasks.py,sha256=dqlJwKAb0jlkl7abbY8RRz3m7MT4SK8-7cntMWkOYjw,788
|
|
228
231
|
cognite/neat/workflows/triggers.py,sha256=_BLNplzoz0iic367u1mhHMHiUrCwP-SLK6_CZzfODX0,7071
|
|
229
232
|
cognite/neat/workflows/utils.py,sha256=gKdy3RLG7ctRhbCRwaDIWpL9Mi98zm56-d4jfHDqP1E,453
|
|
230
|
-
cognite_neat-0.
|
|
231
|
-
cognite_neat-0.
|
|
232
|
-
cognite_neat-0.
|
|
233
|
-
cognite_neat-0.
|
|
234
|
-
cognite_neat-0.
|
|
233
|
+
cognite_neat-0.74.0.dist-info/LICENSE,sha256=W8VmvFia4WHa3Gqxq1Ygrq85McUNqIGDVgtdvzT-XqA,11351
|
|
234
|
+
cognite_neat-0.74.0.dist-info/METADATA,sha256=BajDbqTfb2KnUver_EdD2zR3SeZ4NW8TVvheFy-fc9U,9316
|
|
235
|
+
cognite_neat-0.74.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
236
|
+
cognite_neat-0.74.0.dist-info/entry_points.txt,sha256=61FPqiWb25vbqB0KI7znG8nsg_ibLHBvTjYnkPvNFso,50
|
|
237
|
+
cognite_neat-0.74.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|