cognite-neat 0.100.0__py3-none-any.whl → 0.101.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/_client/_api/data_modeling_loaders.py +28 -8
- cognite/neat/_graph/loaders/_rdf2dms.py +0 -1
- cognite/neat/_graph/transformers/__init__.py +5 -0
- cognite/neat/_graph/transformers/_iodd.py +9 -4
- cognite/neat/_graph/transformers/_prune_graph.py +118 -61
- cognite/neat/_rules/exporters/_rules2dms.py +38 -16
- cognite/neat/_rules/models/_base_rules.py +13 -9
- cognite/neat/_rules/models/dms/_rules.py +111 -39
- cognite/neat/_rules/models/information/_rules.py +50 -17
- cognite/neat/_session/_base.py +18 -0
- cognite/neat/_session/_read.py +3 -3
- cognite/neat/_session/_to.py +3 -3
- cognite/neat/_utils/reader/__init__.py +2 -2
- cognite/neat/_utils/reader/_base.py +40 -35
- cognite/neat/_utils/text.py +12 -0
- cognite/neat/_version.py +1 -1
- cognite_neat-0.101.0.dist-info/METADATA +113 -0
- {cognite_neat-0.100.0.dist-info → cognite_neat-0.101.0.dist-info}/RECORD +21 -21
- cognite_neat-0.100.0.dist-info/METADATA +0 -215
- {cognite_neat-0.100.0.dist-info → cognite_neat-0.101.0.dist-info}/LICENSE +0 -0
- {cognite_neat-0.100.0.dist-info → cognite_neat-0.101.0.dist-info}/WHEEL +0 -0
- {cognite_neat-0.100.0.dist-info → cognite_neat-0.101.0.dist-info}/entry_points.txt +0 -0
|
@@ -73,7 +73,7 @@ cognite/neat/_app/ui/neat-app/src/views/WorkflowView.tsx,sha256=dU6xZip3MVaVzKAF
|
|
|
73
73
|
cognite/neat/_app/ui/neat-app/tsconfig.json,sha256=sw7AweQXRyJAIQ8Beft_380Q8zBr54pG1P_wutdPAIQ,664
|
|
74
74
|
cognite/neat/_client/__init__.py,sha256=XpWT30mZdAJNHV84NJAWyAd2jZEGq9-IwvwK_wsOHdQ,177
|
|
75
75
|
cognite/neat/_client/_api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
76
|
-
cognite/neat/_client/_api/data_modeling_loaders.py,sha256=
|
|
76
|
+
cognite/neat/_client/_api/data_modeling_loaders.py,sha256=SBAz0MDJjw7FWjZOLpZZWJ741DdiEYI16iEJu_u5iuQ,33965
|
|
77
77
|
cognite/neat/_client/_api/schema.py,sha256=ZxO9FkgFGF_sI6yVmrztWvb2zo7Exgxtq4-SX2dpISY,4830
|
|
78
78
|
cognite/neat/_client/_api_client.py,sha256=6cNMizDuqMJZiOqiNRLX46BEtlCB-BpgGLyypksRVYU,616
|
|
79
79
|
cognite/neat/_client/data_classes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -110,16 +110,16 @@ cognite/neat/_graph/extractors/_mock_graph_generator.py,sha256=yEqQdbnRQjBXVQIEV
|
|
|
110
110
|
cognite/neat/_graph/extractors/_rdf_file.py,sha256=YgPZN4Ayk6UlbwFFjdWn4Yo3P74D8KeNUb3slXg6Ox8,1604
|
|
111
111
|
cognite/neat/_graph/loaders/__init__.py,sha256=1eam_rG1BXTUJ8iDm8_IYZldEe177vn2GmHihDBi8qk,718
|
|
112
112
|
cognite/neat/_graph/loaders/_base.py,sha256=tjplRd-vbWhWyys0Ll3KgHR3F3ETlP_dXJ3e8F8w15M,3984
|
|
113
|
-
cognite/neat/_graph/loaders/_rdf2dms.py,sha256=
|
|
113
|
+
cognite/neat/_graph/loaders/_rdf2dms.py,sha256=6EaCnwnnFA8Vye8Ph439yTtbJCP_NGNpBD24XLc7PQA,17437
|
|
114
114
|
cognite/neat/_graph/queries/__init__.py,sha256=BgDd-037kvtWwAoGAy8eORVNMiZ5-E9sIV0txIpeaN4,50
|
|
115
115
|
cognite/neat/_graph/queries/_base.py,sha256=dKEk8TDYUxIc71peqD9TfHHoILG9cKzjkFp7CAkbF78,14246
|
|
116
116
|
cognite/neat/_graph/queries/_construct.py,sha256=CW8uHtXXACUXDj1AcEjROXtvoiuyx0CTgZ0bURY5Neo,7213
|
|
117
117
|
cognite/neat/_graph/queries/_shared.py,sha256=K3svLkvw-DWPZUwIwpJRjPKg5UIRKFCn5jBLpuJjiHc,5330
|
|
118
|
-
cognite/neat/_graph/transformers/__init__.py,sha256=
|
|
118
|
+
cognite/neat/_graph/transformers/__init__.py,sha256=82a7rV6bGhOc5iAznBOtlQOMWxgi0KpGXYV4zh4HnsE,1187
|
|
119
119
|
cognite/neat/_graph/transformers/_base.py,sha256=b37Ek-9njuM5pTR_3XhnxCMrg_ip_2BMwM7ZhKpAAlw,328
|
|
120
120
|
cognite/neat/_graph/transformers/_classic_cdf.py,sha256=8vzvoHH2YJMg2mMTEH_ASGWn1Maars1N1RZ9jWhLTkY,19291
|
|
121
|
-
cognite/neat/_graph/transformers/_iodd.py,sha256=
|
|
122
|
-
cognite/neat/_graph/transformers/_prune_graph.py,sha256=
|
|
121
|
+
cognite/neat/_graph/transformers/_iodd.py,sha256=AajIWbCzQcR5ZNz6qSb2dKoNEJOedgEB7L2se94u6qw,863
|
|
122
|
+
cognite/neat/_graph/transformers/_prune_graph.py,sha256=i0YnpfcFq_y_bZIlZJRRZDRzoj5ya9qpnozgUqKOD8o,8220
|
|
123
123
|
cognite/neat/_graph/transformers/_rdfpath.py,sha256=0ZH7d62kfdCyWGrCyY2oJSnGEPsHQd0sMrZAsTibCCI,4155
|
|
124
124
|
cognite/neat/_graph/transformers/_value_type.py,sha256=JorH-AgDXVZUkG_GCcwn51Mw0M2WIOV834t0kF_Nwvo,2614
|
|
125
125
|
cognite/neat/_issues/__init__.py,sha256=IEZBpvL88hdghX7JgndhxcZcxreZowuoQFIXuSeIKDs,556
|
|
@@ -149,7 +149,7 @@ cognite/neat/_rules/catalog/__init__.py,sha256=dzx-DYYJDc861aFiOI5o1FsySD9F1agY8
|
|
|
149
149
|
cognite/neat/_rules/catalog/info-rules-imf.xlsx,sha256=7odm5CoAU72-VTZk_z1u7GbycIb-X-8Yy3mtBGLjhE4,55511
|
|
150
150
|
cognite/neat/_rules/exporters/__init__.py,sha256=jCwXAeyZJv7GNJ3hGG-80gb8LAidozsyFMzdNIsGt_Y,1204
|
|
151
151
|
cognite/neat/_rules/exporters/_base.py,sha256=vadYWb5hVbjiPIhVIzlY6ARisoqhtJa6Ce0ysNHPXQc,1328
|
|
152
|
-
cognite/neat/_rules/exporters/_rules2dms.py,sha256=
|
|
152
|
+
cognite/neat/_rules/exporters/_rules2dms.py,sha256=pwqy0wzLpSh-BNukLOOB12gTVNeCHEPefX5idtTp2sI,17198
|
|
153
153
|
cognite/neat/_rules/exporters/_rules2excel.py,sha256=puFgIf_dolxv38Lkgzl9lDDREWDPdTApqgYCu9H-hf4,11689
|
|
154
154
|
cognite/neat/_rules/exporters/_rules2instance_template.py,sha256=8HM1SkzcucaEYpQi96ncMnL8STArX9Oe09JBhJJAN4I,5810
|
|
155
155
|
cognite/neat/_rules/exporters/_rules2ontology.py,sha256=ioMi1GUhnbvcfVOPb3Z0a24mIEe74AfxySETWMDS9Lc,21776
|
|
@@ -173,13 +173,13 @@ cognite/neat/_rules/importers/_spreadsheet2rules.py,sha256=TI92l_qddRW2JWk3Jbmsv
|
|
|
173
173
|
cognite/neat/_rules/importers/_yaml2rules.py,sha256=5DsEMYo6JVHC_mBOaaR3J6on1rXSpk82plCsrOq5_l8,3144
|
|
174
174
|
cognite/neat/_rules/models/__init__.py,sha256=z1LoPY2X-M8Og8bKcjae2JwQB9yW8Y_ASnkL3Tjwqyg,1024
|
|
175
175
|
cognite/neat/_rules/models/_base_input.py,sha256=qJrxobZLqpc28adEUJTKdJ8hDUZ67SVDFkUJnGjcPOc,6647
|
|
176
|
-
cognite/neat/_rules/models/_base_rules.py,sha256=
|
|
176
|
+
cognite/neat/_rules/models/_base_rules.py,sha256=4JP9jnJFP93kQ1otJSop-xIljTpHmZgNX9RfsQvEBfY,14820
|
|
177
177
|
cognite/neat/_rules/models/_rdfpath.py,sha256=hqUMZCMeI8ESdJltu7FifuUhna5JNN_Heup2aYkV56Y,11882
|
|
178
178
|
cognite/neat/_rules/models/_types.py,sha256=7rh4PVaqI58OTXtoIgZKitmwa5hZlVtk8uX4czlSGFY,5261
|
|
179
179
|
cognite/neat/_rules/models/data_types.py,sha256=LJuWUbStlZM4hUJGExOJIJXmAA4uiA0tvO9zKqLUrQg,9805
|
|
180
180
|
cognite/neat/_rules/models/dms/__init__.py,sha256=r2XGwAjTsAZs-n-oimg40hLUKVpqFGVuAPmfEUCwwRs,695
|
|
181
181
|
cognite/neat/_rules/models/dms/_exporter.py,sha256=eB5uDX06XYkQkON96eykSk7ZCegb9a5dCxTmTIr252c,28020
|
|
182
|
-
cognite/neat/_rules/models/dms/_rules.py,sha256=
|
|
182
|
+
cognite/neat/_rules/models/dms/_rules.py,sha256=xQ8NoSE9D4tMjcEwKn4z7HdF9l_3OR-1xRlH3uamQPM,20186
|
|
183
183
|
cognite/neat/_rules/models/dms/_rules_input.py,sha256=mVW-gHrjjlqFuq82qTkxIaMZ7OlzQFxjopxdlwQergY,12949
|
|
184
184
|
cognite/neat/_rules/models/dms/_validation.py,sha256=TAgNg1rur3PRVPcsm4-BXKV9AHX8AtahN0OhRx3PgyM,27262
|
|
185
185
|
cognite/neat/_rules/models/entities/__init__.py,sha256=QD-h79HhjqCsgscNU5kuf1ieRCE94dOfpujLuzYbtHk,1469
|
|
@@ -190,7 +190,7 @@ cognite/neat/_rules/models/entities/_single_value.py,sha256=dVfqIx3_Agi_LddhsqPO
|
|
|
190
190
|
cognite/neat/_rules/models/entities/_types.py,sha256=df9rnXJJKciv2Bp-Ve2q4xdEJt6WWniq12Z0hW2d6sk,1917
|
|
191
191
|
cognite/neat/_rules/models/entities/_wrapped.py,sha256=FxC8HztW_tUUtuArAOwxyFfkdJnSEB4bgZoNmmmfiPk,7137
|
|
192
192
|
cognite/neat/_rules/models/information/__init__.py,sha256=ex9JOyiZYXefFl9oi1VaHhyUOtYjXWytSmwuq4pqKqc,556
|
|
193
|
-
cognite/neat/_rules/models/information/_rules.py,sha256=
|
|
193
|
+
cognite/neat/_rules/models/information/_rules.py,sha256=F8Tjb_ymOEEkt1k2yDjboS7hCthd0PsVYSZzandATwE,11753
|
|
194
194
|
cognite/neat/_rules/models/information/_rules_input.py,sha256=PdXTPN0QfO4vxN5M4xzaaDwHEQo53RbY_jIr5TfBszY,5443
|
|
195
195
|
cognite/neat/_rules/models/information/_validation.py,sha256=HbaLShj6uumu-t9I3FUI_iKQfUDiwEkuFENHgWIPfrk,10202
|
|
196
196
|
cognite/neat/_rules/models/mapping/__init__.py,sha256=T68Hf7rhiXa7b03h4RMwarAmkGnB-Bbhc1H07b2PyC4,100
|
|
@@ -203,17 +203,17 @@ cognite/neat/_rules/transformers/_mapping.py,sha256=gMkLHeMWTvQJZV-YLMQm0pirnd2a
|
|
|
203
203
|
cognite/neat/_rules/transformers/_pipelines.py,sha256=2y786LkNMedmxoozUyvtd-2bfqf6wkX2H8On-m2Ucsw,2618
|
|
204
204
|
cognite/neat/_rules/transformers/_verification.py,sha256=M4-Cr3vTm3PZyHSjW-odbOqbY5g0hiRjERDjvLgYbxU,3907
|
|
205
205
|
cognite/neat/_session/__init__.py,sha256=fxQ5URVlUnmEGYyB8Baw7IDq-uYacqkigbc4b-Pr9Fw,58
|
|
206
|
-
cognite/neat/_session/_base.py,sha256=
|
|
206
|
+
cognite/neat/_session/_base.py,sha256=93FJAYYdXvg2cpzL-rVCFdIivFIafb2OtMhr5zrkcyE,11696
|
|
207
207
|
cognite/neat/_session/_collector.py,sha256=zS5JxLIYnAWV-dBzF6WgUfo662iYSzEyDhtnMv-Zibs,4002
|
|
208
208
|
cognite/neat/_session/_drop.py,sha256=XlEaKb_HpqI5EQuUuUFjcf3Qx6BfcBBWdqqGdwkGhmE,1137
|
|
209
209
|
cognite/neat/_session/_inspect.py,sha256=s3R6vz8HbqZSdknyXTSkmA3JvvInlQF5yNKECTA-I1w,7264
|
|
210
210
|
cognite/neat/_session/_mapping.py,sha256=MZ_xRhapc2mVwM-W3tda2zZGaPncj_ZqnzuasvY05po,6109
|
|
211
211
|
cognite/neat/_session/_prepare.py,sha256=_jU0TJWLcg727wKh8NK3a-5duVnRkGJrnkNxLO_D83Q,21883
|
|
212
|
-
cognite/neat/_session/_read.py,sha256=
|
|
212
|
+
cognite/neat/_session/_read.py,sha256=Kfq1RAT5soXSI7vgxY-HN-GjMzAW5RZQD9E7JiuKBmU,15152
|
|
213
213
|
cognite/neat/_session/_set.py,sha256=NY0Vz8xD_a-UA8qWE1GFxHdmBl1BkT1KHQehQVKUorI,1914
|
|
214
214
|
cognite/neat/_session/_show.py,sha256=_ev_Z41rkW4nlvhLf69PmttggKksnkCchOow7CmICyU,14124
|
|
215
215
|
cognite/neat/_session/_state.py,sha256=rqKHkikagO1pf_fKpY-LZI1X5R_v6AyYpV72_3eSduM,5783
|
|
216
|
-
cognite/neat/_session/_to.py,sha256=
|
|
216
|
+
cognite/neat/_session/_to.py,sha256=PjS3avL0a4SmarMgfxJrsjAA45gMZ_1wX9RcKSSvKXk,7413
|
|
217
217
|
cognite/neat/_session/_wizard.py,sha256=O8d0FA87RIoiTOD2KLyTVsxwA2-ewAG2By4JfxXSL84,1474
|
|
218
218
|
cognite/neat/_session/engine/__init__.py,sha256=aeI5pzljU5n1B-SVu3LwjYVsN1tSVhnJj-4ddflEo4U,120
|
|
219
219
|
cognite/neat/_session/engine/_import.py,sha256=1QxA2_EK613lXYAHKQbZyw2yjo5P9XuiX4Z6_6-WMNQ,169
|
|
@@ -229,14 +229,14 @@ cognite/neat/_utils/auth.py,sha256=UbFNq4BIqxc1459xJtI1FZz91K5XEMkfY5cfpBHyUHU,1
|
|
|
229
229
|
cognite/neat/_utils/auxiliary.py,sha256=WFOycFgoYipvDmtGvn6ZNH3H8iNZmHamrfe2kXRb8lM,6667
|
|
230
230
|
cognite/neat/_utils/collection_.py,sha256=Q_LN1qypr0SeAV3dAR5KLD1szHNohSdYxyA8hr3n4T8,1433
|
|
231
231
|
cognite/neat/_utils/rdf_.py,sha256=_nmZqo6_Ef7Aep0kXR_uoiRxGQR2u5lMK4g5mxWneeY,8586
|
|
232
|
-
cognite/neat/_utils/reader/__init__.py,sha256=
|
|
233
|
-
cognite/neat/_utils/reader/_base.py,sha256=
|
|
232
|
+
cognite/neat/_utils/reader/__init__.py,sha256=bTYNMnlcCDSFWAcbj7j_r1pU3CnFM7lXeXXfo6acokA,146
|
|
233
|
+
cognite/neat/_utils/reader/_base.py,sha256=mk_kZDnfg5LcvYJr5IiBosYwbF82mLWo1p1Wq3K2p_Y,4681
|
|
234
234
|
cognite/neat/_utils/spreadsheet.py,sha256=LI0c7dlW0zXHkHw0NvB-gg6Df6cDcE3FbiaHBYLXdzQ,2714
|
|
235
|
-
cognite/neat/_utils/text.py,sha256=
|
|
235
|
+
cognite/neat/_utils/text.py,sha256=0IffvBIAmeGh92F4T6xiEdd-vv3B7FOGEMbfuTktO5Y,4017
|
|
236
236
|
cognite/neat/_utils/time_.py,sha256=O30LUiDH9TdOYz8_a9pFqTtJdg8vEjC3qHCk8xZblG8,345
|
|
237
237
|
cognite/neat/_utils/upload.py,sha256=iWKmsQgw4EHLv-11NjYu7zAj5LtqTAfNa87a1kWeuaU,5727
|
|
238
238
|
cognite/neat/_utils/xml_.py,sha256=FQkq84u35MUsnKcL6nTMJ9ajtG9D5i1u4VBnhGqP2DQ,1710
|
|
239
|
-
cognite/neat/_version.py,sha256=
|
|
239
|
+
cognite/neat/_version.py,sha256=YC9egL_60_4y49kwtdUsQ37p_zPCkAdak7ziTTA-JL8,46
|
|
240
240
|
cognite/neat/_workflows/__init__.py,sha256=S0fZq7kvoqDKodHu1UIPsqcpdvXoefUWRPt1lqeQkQs,420
|
|
241
241
|
cognite/neat/_workflows/base.py,sha256=O1pcmfbme2gIVF2eOGrKZSUDmhZc8L9rI8UfvLN2YAM,26839
|
|
242
242
|
cognite/neat/_workflows/cdf_store.py,sha256=3pebnATPo6In4-1srpa3wzstynTOi3T6hwFX5uaie4c,18050
|
|
@@ -265,8 +265,8 @@ cognite/neat/_workflows/tasks.py,sha256=dr2xuIb8P5e5e9p_fjzRlvDbKsre2xGYrkc3wnRx
|
|
|
265
265
|
cognite/neat/_workflows/triggers.py,sha256=u69xOsaTtM8_WD6ZeIIBB-XKwvlZmPHAsZQh_TnyHcM,7073
|
|
266
266
|
cognite/neat/_workflows/utils.py,sha256=gKdy3RLG7ctRhbCRwaDIWpL9Mi98zm56-d4jfHDqP1E,453
|
|
267
267
|
cognite/neat/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
268
|
-
cognite_neat-0.
|
|
269
|
-
cognite_neat-0.
|
|
270
|
-
cognite_neat-0.
|
|
271
|
-
cognite_neat-0.
|
|
272
|
-
cognite_neat-0.
|
|
268
|
+
cognite_neat-0.101.0.dist-info/LICENSE,sha256=W8VmvFia4WHa3Gqxq1Ygrq85McUNqIGDVgtdvzT-XqA,11351
|
|
269
|
+
cognite_neat-0.101.0.dist-info/METADATA,sha256=0qjVPqhZDNDDWTYxyQJS7v2f-JpEu2uQrtbGv4km-7c,5708
|
|
270
|
+
cognite_neat-0.101.0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
271
|
+
cognite_neat-0.101.0.dist-info/entry_points.txt,sha256=SsQlnl8SNMSSjE3acBI835JYFtsIinLSbVmHmMEXv6E,51
|
|
272
|
+
cognite_neat-0.101.0.dist-info/RECORD,,
|
|
@@ -1,215 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: cognite-neat
|
|
3
|
-
Version: 0.100.0
|
|
4
|
-
Summary: Knowledge graph transformation
|
|
5
|
-
Home-page: https://cognite-neat.readthedocs-hosted.com/
|
|
6
|
-
License: Apache-2.0
|
|
7
|
-
Author: Nikola Vasiljevic
|
|
8
|
-
Author-email: nikola.vasiljevic@cognite.com
|
|
9
|
-
Requires-Python: >=3.10,<4.0
|
|
10
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
|
11
|
-
Classifier: Programming Language :: Python :: 3
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.13
|
|
16
|
-
Provides-Extra: all
|
|
17
|
-
Provides-Extra: docs
|
|
18
|
-
Provides-Extra: google
|
|
19
|
-
Provides-Extra: oxi
|
|
20
|
-
Provides-Extra: service
|
|
21
|
-
Requires-Dist: PyYAML
|
|
22
|
-
Requires-Dist: backports.strenum (>=1.2,<2.0) ; python_version < "3.11"
|
|
23
|
-
Requires-Dist: cognite-sdk (>=7.54.6,<8.0.0)
|
|
24
|
-
Requires-Dist: elementpath (>=4.0.0,<5.0.0)
|
|
25
|
-
Requires-Dist: exceptiongroup (>=1.1.3,<2.0.0) ; python_version < "3.11"
|
|
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"
|
|
30
|
-
Requires-Dist: jsonpath-python (>=1.0.6,<2.0.0)
|
|
31
|
-
Requires-Dist: lxml (>=5.3.0,<6.0.0) ; extra == "all"
|
|
32
|
-
Requires-Dist: mixpanel (>=4.10.1,<5.0.0)
|
|
33
|
-
Requires-Dist: mkdocs ; extra == "docs"
|
|
34
|
-
Requires-Dist: mkdocs-autorefs (>=0.5.0,<0.6.0) ; extra == "docs"
|
|
35
|
-
Requires-Dist: mkdocs-git-authors-plugin ; extra == "docs"
|
|
36
|
-
Requires-Dist: mkdocs-git-revision-date-localized-plugin ; extra == "docs"
|
|
37
|
-
Requires-Dist: mkdocs-gitbook ; extra == "docs"
|
|
38
|
-
Requires-Dist: mkdocs-glightbox ; extra == "docs"
|
|
39
|
-
Requires-Dist: mkdocs-jupyter ; extra == "docs"
|
|
40
|
-
Requires-Dist: mkdocs-material-extensions ; extra == "docs"
|
|
41
|
-
Requires-Dist: mkdocstrings[python] ; extra == "docs"
|
|
42
|
-
Requires-Dist: networkx (>=3.4.2,<4.0.0)
|
|
43
|
-
Requires-Dist: openpyxl
|
|
44
|
-
Requires-Dist: oxrdflib[oxigraph] (>=0.4.0,<0.5.0) ; extra == "oxi" or extra == "all"
|
|
45
|
-
Requires-Dist: packaging (>=22.0,<25.0)
|
|
46
|
-
Requires-Dist: pandas
|
|
47
|
-
Requires-Dist: prometheus-client (>=0,<1) ; extra == "service" or extra == "all"
|
|
48
|
-
Requires-Dist: pydantic (>=2,<3)
|
|
49
|
-
Requires-Dist: pymdown-extensions ; extra == "docs"
|
|
50
|
-
Requires-Dist: pyoxigraph (==0.4.3) ; extra == "oxi" or extra == "all"
|
|
51
|
-
Requires-Dist: python-multipart (==0.0.9) ; extra == "service" or extra == "all"
|
|
52
|
-
Requires-Dist: pyvis (>=0.3.2,<0.4.0)
|
|
53
|
-
Requires-Dist: rdflib
|
|
54
|
-
Requires-Dist: requests
|
|
55
|
-
Requires-Dist: rich[jupyter] (>=13.7.1,<14.0.0)
|
|
56
|
-
Requires-Dist: schedule (>=1,<2) ; extra == "service" or extra == "all"
|
|
57
|
-
Requires-Dist: tomli (>=2.0.1,<3.0.0) ; python_version < "3.11"
|
|
58
|
-
Requires-Dist: typing_extensions (>=4.8,<5.0) ; python_version < "3.11"
|
|
59
|
-
Requires-Dist: urllib3 (>=2,<3)
|
|
60
|
-
Requires-Dist: uvicorn[standard] (>=0,<1) ; extra == "service" or extra == "all"
|
|
61
|
-
Project-URL: Documentation, https://cognite-neat.readthedocs-hosted.com/
|
|
62
|
-
Project-URL: Repository, https://github.com/cognitedata/neat
|
|
63
|
-
Description-Content-Type: text/markdown
|
|
64
|
-
|
|
65
|
-
# kNowlEdge grAph Transformer (NEAT)
|
|
66
|
-
|
|
67
|
-
[](https://github.com/cognitedata/neat/actions/workflows/release.yaml)
|
|
68
|
-
[](https://cognite-neat.readthedocs-hosted.com/en/latest/?badge=latest)
|
|
69
|
-
[](https://github.com/cognitedata/neat)
|
|
70
|
-
[](https://pypi.org/project/cognite-neat/)
|
|
71
|
-
[](https://pypistats.org/packages/cognite-neat)
|
|
72
|
-
[](https://hub.docker.com/r/cognite/neat)
|
|
73
|
-
[](https://github.com/cognitedata/neat/blob/master/LICENSE)
|
|
74
|
-
[](https://github.com/ambv/black)
|
|
75
|
-
[](https://github.com/astral-sh/ruff)
|
|
76
|
-
[](http://mypy-lang.org)
|
|
77
|
-
|
|
78
|
-
This is python package handles transformation of domain knowledge graphs (more detailed, overarching) to app specific knowledge graphs.
|
|
79
|
-
Documenation available at [https://thisisneat.io](https://thisisneat.io).
|
|
80
|
-
|
|
81
|
-
## Quickstart
|
|
82
|
-
|
|
83
|
-
### Option 1 - Python Package
|
|
84
|
-
|
|
85
|
-
`neat` can be installed as a Python package, and a docker image for more robust execution and support such
|
|
86
|
-
as `graphdb` for caching. This quickstart guide uses the Python package.
|
|
87
|
-
|
|
88
|
-
### Option 2 - Docker container
|
|
89
|
-
|
|
90
|
-
Running NEAT as docker container :
|
|
91
|
-
`docker run -p 8000:8000 --name neat cognite/neat:latest`
|
|
92
|
-
|
|
93
|
-
Runnin NEAT as docker container with local data folder mounted :
|
|
94
|
-
`docker run -p 8000:8000 --name neat -v $(shell pwd)/docker/vol_data:/app/data cognite/neat:latest`
|
|
95
|
-
|
|
96
|
-
### Installation (Development setup)
|
|
97
|
-
|
|
98
|
-
Prerequisites:
|
|
99
|
-
|
|
100
|
-
- `poetry` installed on your system, [see installation](https://python-poetry.org/docs/).
|
|
101
|
-
- `npm` installed on your system, [see installation](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
|
|
102
|
-
- `react-scripts` installed on your system, [`npm i react-scripts`](https://www.npmjs.com/package/react-scripts)
|
|
103
|
-
|
|
104
|
-
1. Clone this repo: `git clone git@github.com:cognitedata/neat.git`
|
|
105
|
-
2. Create wheel: `make build-python`. This will create a wheel in the `dist` folder.
|
|
106
|
-
3. Install wheel in your preferred environment, `pip install dist/neat-[NEAT_VERSTION]-py3-none-any.whl`
|
|
107
|
-
|
|
108
|
-
### Run Neat (Python Package)
|
|
109
|
-
|
|
110
|
-
Once installed you can run neat with the command
|
|
111
|
-
|
|
112
|
-
```bash
|
|
113
|
-
neat
|
|
114
|
-
```
|
|
115
|
-
|
|
116
|
-
This will open your browser and launch the neat application.
|
|
117
|
-
|
|
118
|
-
Note this will automatically create a `data` folder in your current working directory, which is populated
|
|
119
|
-
with default workflows, rule sheets, and source graphs. In addition, there is a `config.yaml` you can add
|
|
120
|
-
your CDF credentials to allow `neat` access CDF.
|
|
121
|
-
|
|
122
|
-

|
|
123
|
-
|
|
124
|
-
## Documentation
|
|
125
|
-
|
|
126
|
-
[Documentation](https://cognite-neat.readthedocs-hosted.com/en/latest/)
|
|
127
|
-
|
|
128
|
-

|
|
129
|
-
|
|
130
|
-
## Docker container build process
|
|
131
|
-
|
|
132
|
-
`make build-docker`
|
|
133
|
-
|
|
134
|
-
## Starting the application locally using GraphDB as external rdf store
|
|
135
|
-
|
|
136
|
-
Run the command :
|
|
137
|
-
|
|
138
|
-
` make compose-up`
|
|
139
|
-
|
|
140
|
-
The command starts NEAT container and GraphDB container and creates _vol_data_ and _vol_shared_ local folders that are mounted as volumes.
|
|
141
|
-
|
|
142
|
-
_vol_data_ - is mounted only in NEAT container. It contains `config.yaml`, `workflows`, `rules`. You can set `load_examples` to `true` to populate it with examples.
|
|
143
|
-
|
|
144
|
-
_vol_shared_ - is mounted to both containers and files placed here become automatically visible for GraphDB import process. Main intension is to write files from NEAT container and make them available for GraphDB for import.
|
|
145
|
-
|
|
146
|
-
## Web UI
|
|
147
|
-
|
|
148
|
-
`http://localhost:8000`
|
|
149
|
-
|
|
150
|
-
Open API docs :
|
|
151
|
-
|
|
152
|
-
`http://localhost:8000/docs`
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
## Workflows and configurations
|
|
156
|
-
|
|
157
|
-
All configurations are divided into 2 categories :
|
|
158
|
-
|
|
159
|
-
- global configurations - global for entire service , loaded at startup (config.yaml)
|
|
160
|
-
- workflow configurations - local to workflow , loaded from workflow manifest (.yaml)
|
|
161
|
-
|
|
162
|
-
## Global configurations
|
|
163
|
-
|
|
164
|
-
Global configurations loaded by the application during startup process, either from ENV variables or file.
|
|
165
|
-
|
|
166
|
-
The application tries to load the configuration as follows.
|
|
167
|
-
|
|
168
|
-
1. Try ENV variables. This is done by checking for the ENV variable `NEAT_CDF_PROJECT`, and if it exists load the rest
|
|
169
|
-
as they are listed below.
|
|
170
|
-
2. Try from file. This is done by checking the ENV variable `NEAT_CONFIG_PATH`, which defaults to `$(cwd)/config.yaml`,
|
|
171
|
-
for a path. The config file es expected to have the structure as shown below.
|
|
172
|
-
3. Exit. It the ENV variable `NEAT_CDF_PROJECT` and the config file does not exist, the applications exists.
|
|
173
|
-
|
|
174
|
-
### Env Variables
|
|
175
|
-
|
|
176
|
-
- NEAT_CDF_PROJECT
|
|
177
|
-
- NEAT_CDF_CLIENT_NAME
|
|
178
|
-
- NEAT_CDF_CLIENT_ID
|
|
179
|
-
- NEAT_CDF_CLIENT_SECRET
|
|
180
|
-
- NEAT_CDF_BASE_URL
|
|
181
|
-
- NEAT_CDF_TOKEN_URL
|
|
182
|
-
- NEAT_CDF_SCOPES
|
|
183
|
-
- NEAT_WORKFLOW_DOWNLOADER_FILTER - list of workflows or tags that must be loaded from CDF automatically during startup
|
|
184
|
-
- NEAT_DATA_PATH - local directory for workflow and rules storage
|
|
185
|
-
- NEAT_CDF_DEFAULT_DATASET_ID - default dataset id that is used for sharing workflows, rules fies and execution traces
|
|
186
|
-
- NEAT_LOG_LEVEL - supported logging levels `DEBUG` , `INFO` (default)
|
|
187
|
-
|
|
188
|
-
### Config file
|
|
189
|
-
|
|
190
|
-
```yaml
|
|
191
|
-
workflows_store_type: file
|
|
192
|
-
data_store_path: /app/data
|
|
193
|
-
|
|
194
|
-
cdf_client:
|
|
195
|
-
project: get-power-grid
|
|
196
|
-
client_id: "623c2450-cfc2-43d6-9036-10e14dad8ccf"
|
|
197
|
-
client_secret: "my-super-secret"
|
|
198
|
-
base_url: https://az-power-no-northeurope.cognitedata.com
|
|
199
|
-
scopes: [https://az-power-no-northeurope.cognitedata.com/.default]
|
|
200
|
-
token_url: https://login.microsoftonline.com/e55e1701-82f8-4c52-af10-28e4d942c589/oauth2/v2.0/token
|
|
201
|
-
|
|
202
|
-
cdf_default_dataset_id: 2626756768281823
|
|
203
|
-
workflow_downloader_filter:
|
|
204
|
-
- tag:grid
|
|
205
|
-
log_level: DEBUG
|
|
206
|
-
```
|
|
207
|
-
|
|
208
|
-
## Automatic workflow loading from CDF during application startup
|
|
209
|
-
|
|
210
|
-
If `workflow_downloader_filter` is set, the app will try to download workflows from CDF based on provided filtering conditions .
|
|
211
|
-
Filtering format :
|
|
212
|
-
|
|
213
|
-
- `name:<workflows_name>=<workflow_version>` - loading workflow by name and version or latest by name if version is not set.
|
|
214
|
-
- `tag:<tag_name>`- loading all workflows that tagged with specific tag.
|
|
215
|
-
|
|
File without changes
|
|
File without changes
|
|
File without changes
|