cognite-neat 0.98.0__py3-none-any.whl → 0.99.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/__init__.py +4 -0
- cognite/neat/_client/_api/data_modeling_loaders.py +512 -0
- cognite/neat/_client/_api/schema.py +50 -0
- cognite/neat/_client/_api_client.py +17 -0
- cognite/neat/_client/data_classes/__init__.py +0 -0
- cognite/neat/{_utils/cdf/data_classes.py → _client/data_classes/data_modeling.py} +8 -135
- cognite/neat/{_rules/models/dms/_schema.py → _client/data_classes/schema.py} +21 -281
- cognite/neat/_graph/_shared.py +14 -15
- cognite/neat/_graph/extractors/_classic_cdf/_assets.py +14 -154
- cognite/neat/_graph/extractors/_classic_cdf/_base.py +154 -7
- cognite/neat/_graph/extractors/_classic_cdf/_classic.py +23 -12
- cognite/neat/_graph/extractors/_classic_cdf/_data_sets.py +17 -92
- cognite/neat/_graph/extractors/_classic_cdf/_events.py +13 -162
- cognite/neat/_graph/extractors/_classic_cdf/_files.py +15 -179
- cognite/neat/_graph/extractors/_classic_cdf/_labels.py +32 -100
- cognite/neat/_graph/extractors/_classic_cdf/_relationships.py +27 -178
- cognite/neat/_graph/extractors/_classic_cdf/_sequences.py +14 -139
- cognite/neat/_graph/extractors/_classic_cdf/_timeseries.py +15 -173
- cognite/neat/_graph/extractors/_rdf_file.py +6 -7
- cognite/neat/_graph/queries/_base.py +17 -1
- cognite/neat/_graph/transformers/_classic_cdf.py +50 -134
- cognite/neat/_graph/transformers/_prune_graph.py +1 -1
- cognite/neat/_graph/transformers/_rdfpath.py +1 -1
- cognite/neat/_issues/warnings/__init__.py +6 -0
- cognite/neat/_issues/warnings/_external.py +8 -0
- cognite/neat/_issues/warnings/_properties.py +16 -0
- cognite/neat/_rules/_constants.py +7 -6
- cognite/neat/_rules/analysis/_base.py +8 -4
- cognite/neat/_rules/exporters/_base.py +3 -4
- cognite/neat/_rules/exporters/_rules2dms.py +29 -40
- cognite/neat/_rules/importers/_dms2rules.py +4 -5
- cognite/neat/_rules/importers/_rdf/_inference2rules.py +25 -33
- cognite/neat/_rules/models/__init__.py +1 -1
- cognite/neat/_rules/models/_base_rules.py +22 -12
- cognite/neat/_rules/models/dms/__init__.py +2 -2
- cognite/neat/_rules/models/dms/_exporter.py +15 -20
- cognite/neat/_rules/models/dms/_rules.py +48 -3
- cognite/neat/_rules/models/dms/_rules_input.py +52 -8
- cognite/neat/_rules/models/dms/_validation.py +10 -5
- cognite/neat/_rules/models/entities/_single_value.py +32 -4
- cognite/neat/_rules/models/information/_rules.py +0 -8
- cognite/neat/_rules/models/mapping/__init__.py +2 -3
- cognite/neat/_rules/models/mapping/_classic2core.py +36 -146
- cognite/neat/_rules/models/mapping/_classic2core.yaml +339 -0
- cognite/neat/_rules/transformers/__init__.py +2 -2
- cognite/neat/_rules/transformers/_converters.py +110 -11
- cognite/neat/_rules/transformers/_mapping.py +105 -30
- cognite/neat/_rules/transformers/_verification.py +5 -2
- cognite/neat/_session/_base.py +49 -8
- cognite/neat/_session/_drop.py +35 -0
- cognite/neat/_session/_inspect.py +17 -5
- cognite/neat/_session/_mapping.py +39 -0
- cognite/neat/_session/_prepare.py +218 -23
- cognite/neat/_session/_read.py +49 -12
- cognite/neat/_session/_to.py +3 -3
- cognite/neat/_store/_base.py +27 -24
- cognite/neat/_utils/rdf_.py +28 -1
- cognite/neat/_version.py +1 -1
- cognite/neat/_workflows/steps/lib/current/rules_exporter.py +8 -3
- cognite/neat/_workflows/steps/lib/current/rules_importer.py +4 -1
- cognite/neat/_workflows/steps/lib/current/rules_validator.py +3 -2
- {cognite_neat-0.98.0.dist-info → cognite_neat-0.99.0.dist-info}/METADATA +3 -3
- {cognite_neat-0.98.0.dist-info → cognite_neat-0.99.0.dist-info}/RECORD +67 -64
- cognite/neat/_rules/models/mapping/_base.py +0 -131
- cognite/neat/_utils/cdf/loaders/__init__.py +0 -25
- cognite/neat/_utils/cdf/loaders/_base.py +0 -54
- cognite/neat/_utils/cdf/loaders/_data_modeling.py +0 -339
- cognite/neat/_utils/cdf/loaders/_ingestion.py +0 -167
- /cognite/neat/{_utils/cdf → _client/_api}/__init__.py +0 -0
- {cognite_neat-0.98.0.dist-info → cognite_neat-0.99.0.dist-info}/LICENSE +0 -0
- {cognite_neat-0.98.0.dist-info → cognite_neat-0.99.0.dist-info}/WHEEL +0 -0
- {cognite_neat-0.98.0.dist-info → cognite_neat-0.99.0.dist-info}/entry_points.txt +0 -0
|
@@ -5,11 +5,12 @@ from typing import ClassVar
|
|
|
5
5
|
|
|
6
6
|
from cognite.client import CogniteClient
|
|
7
7
|
|
|
8
|
+
from cognite.neat._client import NeatClient
|
|
9
|
+
from cognite.neat._client._api.data_modeling_loaders import ViewLoader
|
|
8
10
|
from cognite.neat._issues import NeatIssueList
|
|
9
11
|
from cognite.neat._issues.errors import ResourceNotFoundError, WorkflowStepNotInitializedError
|
|
10
12
|
from cognite.neat._issues.formatters import FORMATTER_BY_NAME
|
|
11
13
|
from cognite.neat._rules.models import DMSRules
|
|
12
|
-
from cognite.neat._utils.cdf.loaders import ViewLoader
|
|
13
14
|
from cognite.neat._workflows.model import FlowMessage, StepExecutionStatus
|
|
14
15
|
from cognite.neat._workflows.steps.data_contracts import MultiRuleData
|
|
15
16
|
from cognite.neat._workflows.steps.step_model import Configurable, Step
|
|
@@ -75,7 +76,7 @@ class ValidateRulesAgainstCDF(Step):
|
|
|
75
76
|
retrieved_containers = cdf_client.data_modeling.containers.retrieve(missing_containers).as_write()
|
|
76
77
|
# Converting read format of views to write format requires to account for parents (implements)
|
|
77
78
|
# Thus we use the loader to convert the views to write format.
|
|
78
|
-
view_loader = ViewLoader(cdf_client)
|
|
79
|
+
view_loader = ViewLoader(NeatClient(cdf_client))
|
|
79
80
|
retrieved_views = [
|
|
80
81
|
view_loader.as_write(view) for view in cdf_client.data_modeling.views.retrieve(missing_views)
|
|
81
82
|
]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: cognite-neat
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.99.0
|
|
4
4
|
Summary: Knowledge graph transformation
|
|
5
5
|
Home-page: https://cognite-neat.readthedocs-hosted.com/
|
|
6
6
|
License: Apache-2.0
|
|
@@ -41,13 +41,13 @@ Requires-Dist: mkdocs-material-extensions ; extra == "docs"
|
|
|
41
41
|
Requires-Dist: mkdocstrings[python] ; extra == "docs"
|
|
42
42
|
Requires-Dist: networkx (>=3.4.2,<4.0.0)
|
|
43
43
|
Requires-Dist: openpyxl
|
|
44
|
-
Requires-Dist: oxrdflib[oxigraph] (>=0.
|
|
44
|
+
Requires-Dist: oxrdflib[oxigraph] (>=0.4.0,<0.5.0) ; extra == "oxi" or extra == "all"
|
|
45
45
|
Requires-Dist: packaging (>=22.0,<25.0)
|
|
46
46
|
Requires-Dist: pandas
|
|
47
47
|
Requires-Dist: prometheus-client (>=0,<1) ; extra == "service" or extra == "all"
|
|
48
48
|
Requires-Dist: pydantic (>=2,<3)
|
|
49
49
|
Requires-Dist: pymdown-extensions ; extra == "docs"
|
|
50
|
-
Requires-Dist: pyoxigraph (==0.3
|
|
50
|
+
Requires-Dist: pyoxigraph (==0.4.3) ; extra == "oxi" or extra == "all"
|
|
51
51
|
Requires-Dist: python-multipart (==0.0.9) ; extra == "service" or extra == "all"
|
|
52
52
|
Requires-Dist: pyvis (>=0.3.2,<0.4.0)
|
|
53
53
|
Requires-Dist: rdflib
|
|
@@ -71,10 +71,18 @@ cognite/neat/_app/ui/neat-app/src/views/ConfigView.tsx,sha256=mbYo37wFPsPYUmniP_
|
|
|
71
71
|
cognite/neat/_app/ui/neat-app/src/views/GlobalConfigView.tsx,sha256=1NMOby21ArrfYLMbbhH8M0OMRMQDaal91cGMaM9i8bM,8504
|
|
72
72
|
cognite/neat/_app/ui/neat-app/src/views/WorkflowView.tsx,sha256=dU6xZip3MVaVzKAF23Cu6qZTl2Dn_evO-RTDAVGfONg,18451
|
|
73
73
|
cognite/neat/_app/ui/neat-app/tsconfig.json,sha256=sw7AweQXRyJAIQ8Beft_380Q8zBr54pG1P_wutdPAIQ,664
|
|
74
|
+
cognite/neat/_client/__init__.py,sha256=XpWT30mZdAJNHV84NJAWyAd2jZEGq9-IwvwK_wsOHdQ,177
|
|
75
|
+
cognite/neat/_client/_api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
76
|
+
cognite/neat/_client/_api/data_modeling_loaders.py,sha256=LCdRSxeAGUnTdx_rXgAjxAnS9g4aQXDznGWumP4iJUE,21026
|
|
77
|
+
cognite/neat/_client/_api/schema.py,sha256=FNK0ZBGAYeLGmroSAq7nsE40g2nDehmPEBBuCdtSQa8,1916
|
|
78
|
+
cognite/neat/_client/_api_client.py,sha256=6cNMizDuqMJZiOqiNRLX46BEtlCB-BpgGLyypksRVYU,616
|
|
79
|
+
cognite/neat/_client/data_classes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
80
|
+
cognite/neat/_client/data_classes/data_modeling.py,sha256=_xG4TZEvD1xty16fH7uT8rpBpxT7oBGIZ_cu7C0otcU,6550
|
|
81
|
+
cognite/neat/_client/data_classes/schema.py,sha256=to8wpBAgXNUIUnHfGUb-CjE24fbqMFVUH0ZIBYV8Ghk,39064
|
|
74
82
|
cognite/neat/_config.py,sha256=f9Py4SEHwYYquIg-k1rC7MbXBLENXQauoZtLyUbWvJQ,10118
|
|
75
83
|
cognite/neat/_constants.py,sha256=MI4VqDJHtTlwdxzVjQxiieyRSgoGYW-Gkr5tTlTPE6A,2080
|
|
76
84
|
cognite/neat/_graph/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
77
|
-
cognite/neat/_graph/_shared.py,sha256=
|
|
85
|
+
cognite/neat/_graph/_shared.py,sha256=g7XFITbVxdDyGZ6mlgFUv5cBycrU7QbPktRikdUVkks,863
|
|
78
86
|
cognite/neat/_graph/_tracking/__init__.py,sha256=pYj7c-YAUIP4hvN-4mlWnwaeZFerzL9_gM-oZhex7cE,91
|
|
79
87
|
cognite/neat/_graph/_tracking/base.py,sha256=qU7DQL_aeG22jS-uE3G17B1WL1sOOxHt-eR0XlTZngs,821
|
|
80
88
|
cognite/neat/_graph/_tracking/log.py,sha256=_MGgMWxPDfKG4kbX-YL1UO0Lfq8nbcjyFFJeqN5wpuc,928
|
|
@@ -85,34 +93,34 @@ cognite/neat/_graph/examples/skos-capturing-sheet-wind-topics.xlsx,sha256=CV_yK5
|
|
|
85
93
|
cognite/neat/_graph/extractors/__init__.py,sha256=JSq2QIiJKDwrttGL8lFiEhScNJfWglM_vZNJq9IWBfQ,2110
|
|
86
94
|
cognite/neat/_graph/extractors/_base.py,sha256=yrtUC-v6WRs7RvgGTCP2usvsswh9uRqHdGe15If-O5Q,494
|
|
87
95
|
cognite/neat/_graph/extractors/_classic_cdf/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
88
|
-
cognite/neat/_graph/extractors/_classic_cdf/_assets.py,sha256=
|
|
89
|
-
cognite/neat/_graph/extractors/_classic_cdf/_base.py,sha256=
|
|
90
|
-
cognite/neat/_graph/extractors/_classic_cdf/_classic.py,sha256=
|
|
91
|
-
cognite/neat/_graph/extractors/_classic_cdf/_data_sets.py,sha256=
|
|
92
|
-
cognite/neat/_graph/extractors/_classic_cdf/_events.py,sha256=
|
|
93
|
-
cognite/neat/_graph/extractors/_classic_cdf/_files.py,sha256=
|
|
94
|
-
cognite/neat/_graph/extractors/_classic_cdf/_labels.py,sha256=
|
|
95
|
-
cognite/neat/_graph/extractors/_classic_cdf/_relationships.py,sha256=
|
|
96
|
-
cognite/neat/_graph/extractors/_classic_cdf/_sequences.py,sha256=
|
|
97
|
-
cognite/neat/_graph/extractors/_classic_cdf/_timeseries.py,sha256=
|
|
96
|
+
cognite/neat/_graph/extractors/_classic_cdf/_assets.py,sha256=9WVFrAtUFAp_AAlb26Rtt2Axz9xsPQYetg7SKVrNCr4,1474
|
|
97
|
+
cognite/neat/_graph/extractors/_classic_cdf/_base.py,sha256=OTQOb0OLIBL-l1zNYIFyJ0Wnpfqtw90kSZu6JYteLo4,11087
|
|
98
|
+
cognite/neat/_graph/extractors/_classic_cdf/_classic.py,sha256=z_qperysl3JGd20SZTuDzUBpOVgWLcA25Oftgg5cG_U,10627
|
|
99
|
+
cognite/neat/_graph/extractors/_classic_cdf/_data_sets.py,sha256=xRFv9pVFgIMTZ45E8teMC0Ynku_CuZdcZkVCbhPuPBk,1294
|
|
100
|
+
cognite/neat/_graph/extractors/_classic_cdf/_events.py,sha256=B8hRoMAg8GQvApjxals5PfPyjmdPO93U3nj_G7g0kDQ,1394
|
|
101
|
+
cognite/neat/_graph/extractors/_classic_cdf/_files.py,sha256=Q816cVQ9qS7Art66HJfErL2OV7MxH_eSIG7bJ8_HJ7Q,1406
|
|
102
|
+
cognite/neat/_graph/extractors/_classic_cdf/_labels.py,sha256=7guTZdGFT1r7ItE2VNgXwbBZ1y_005oB3fg1XbwT7WQ,2083
|
|
103
|
+
cognite/neat/_graph/extractors/_classic_cdf/_relationships.py,sha256=Mu0PRcgF3BEZ7HVNQpCT1Ht2TLl9n2JcRz-UinShiFY,2977
|
|
104
|
+
cognite/neat/_graph/extractors/_classic_cdf/_sequences.py,sha256=NA4iO1589q5E1f0kA8a_zdyUyS81Y9RgLq6eq42TCgc,1493
|
|
105
|
+
cognite/neat/_graph/extractors/_classic_cdf/_timeseries.py,sha256=6CmmxWWG2IErfNKOPhsjQ5wSOTUZZMjulpaRbHj0Q-g,1560
|
|
98
106
|
cognite/neat/_graph/extractors/_dexpi.py,sha256=SFWnKXYpQToWag9aoX8fxISNa9b8KlqjZnkwI18BzNY,9431
|
|
99
107
|
cognite/neat/_graph/extractors/_dms.py,sha256=bK5p4-NdXlnQMGaalr6vgODcIvWu2e4qE6f8nnvdQK0,6685
|
|
100
108
|
cognite/neat/_graph/extractors/_iodd.py,sha256=nMSLmtgvxLrQJMA5NECF1OCp4Bcv0Vq0WsNv8X9Oj1k,18458
|
|
101
109
|
cognite/neat/_graph/extractors/_mock_graph_generator.py,sha256=yEqQdbnRQjBXVQIEVGP_B_Gqu4qi_1koqpMjw8XRTA0,15409
|
|
102
|
-
cognite/neat/_graph/extractors/_rdf_file.py,sha256=
|
|
110
|
+
cognite/neat/_graph/extractors/_rdf_file.py,sha256=YgPZN4Ayk6UlbwFFjdWn4Yo3P74D8KeNUb3slXg6Ox8,1604
|
|
103
111
|
cognite/neat/_graph/loaders/__init__.py,sha256=1eam_rG1BXTUJ8iDm8_IYZldEe177vn2GmHihDBi8qk,718
|
|
104
112
|
cognite/neat/_graph/loaders/_base.py,sha256=tjplRd-vbWhWyys0Ll3KgHR3F3ETlP_dXJ3e8F8w15M,3984
|
|
105
113
|
cognite/neat/_graph/loaders/_rdf2dms.py,sha256=kR5yjXS5VDHMUFff5WSTrZRqKSzX53SlEbcwHMVh8J8,15951
|
|
106
114
|
cognite/neat/_graph/queries/__init__.py,sha256=BgDd-037kvtWwAoGAy8eORVNMiZ5-E9sIV0txIpeaN4,50
|
|
107
|
-
cognite/neat/_graph/queries/_base.py,sha256=
|
|
115
|
+
cognite/neat/_graph/queries/_base.py,sha256=dKEk8TDYUxIc71peqD9TfHHoILG9cKzjkFp7CAkbF78,14246
|
|
108
116
|
cognite/neat/_graph/queries/_construct.py,sha256=CW8uHtXXACUXDj1AcEjROXtvoiuyx0CTgZ0bURY5Neo,7213
|
|
109
117
|
cognite/neat/_graph/queries/_shared.py,sha256=K3svLkvw-DWPZUwIwpJRjPKg5UIRKFCn5jBLpuJjiHc,5330
|
|
110
118
|
cognite/neat/_graph/transformers/__init__.py,sha256=CdlG9Bk--bLyO5S8jJOkOriZQwJtukXj7oRPXfKKJSY,984
|
|
111
119
|
cognite/neat/_graph/transformers/_base.py,sha256=b37Ek-9njuM5pTR_3XhnxCMrg_ip_2BMwM7ZhKpAAlw,328
|
|
112
|
-
cognite/neat/_graph/transformers/_classic_cdf.py,sha256
|
|
120
|
+
cognite/neat/_graph/transformers/_classic_cdf.py,sha256=Ap_giq8FKeTRaDNm98dRwBt_n-d64PFvm4BlHRDf7Ts,15704
|
|
113
121
|
cognite/neat/_graph/transformers/_iodd.py,sha256=yH-BvVQUswM8RmV2VvOPQAgwudhBJdxDLHW1RKxuuAY,729
|
|
114
|
-
cognite/neat/_graph/transformers/_prune_graph.py,sha256=
|
|
115
|
-
cognite/neat/_graph/transformers/_rdfpath.py,sha256=
|
|
122
|
+
cognite/neat/_graph/transformers/_prune_graph.py,sha256=jmmnihEr8ONEgLye_81hyIzrY_TdtDIbMZNrfZQ7zGA,5270
|
|
123
|
+
cognite/neat/_graph/transformers/_rdfpath.py,sha256=0ZH7d62kfdCyWGrCyY2oJSnGEPsHQd0sMrZAsTibCCI,4155
|
|
116
124
|
cognite/neat/_graph/transformers/_value_type.py,sha256=JorH-AgDXVZUkG_GCcwn51Mw0M2WIOV834t0kF_Nwvo,2614
|
|
117
125
|
cognite/neat/_issues/__init__.py,sha256=IEZBpvL88hdghX7JgndhxcZcxreZowuoQFIXuSeIKDs,556
|
|
118
126
|
cognite/neat/_issues/_base.py,sha256=ks4-3bbholOw0VaacazbaX4ViMh0EcS6KPND_srLCbE,19180
|
|
@@ -123,25 +131,25 @@ cognite/neat/_issues/errors/_properties.py,sha256=cr29pDs-Cc_kyRJjCk-9bS-HXV6naF
|
|
|
123
131
|
cognite/neat/_issues/errors/_resources.py,sha256=SbiojpJ2J9Dk3NKRN0FoiN-vy14LXmEJCJM8xu_gTzQ,3964
|
|
124
132
|
cognite/neat/_issues/errors/_workflow.py,sha256=m_Hlsvl5A1Oy7P3IROnz-4_do8_orZ1Pr1IHqsMyEys,971
|
|
125
133
|
cognite/neat/_issues/formatters.py,sha256=QCk41VLlpq-R9uaHpINYceZkIUoI9m4pwSq_yWPOmr8,3331
|
|
126
|
-
cognite/neat/_issues/warnings/__init__.py,sha256=
|
|
127
|
-
cognite/neat/_issues/warnings/_external.py,sha256=
|
|
134
|
+
cognite/neat/_issues/warnings/__init__.py,sha256=Vhx6eRqAh9PfdoazUMvtJVmzwVbngj8yoAd_ZEBfIBs,2545
|
|
135
|
+
cognite/neat/_issues/warnings/_external.py,sha256=j1RKu8KJDiIU82Uo6eMqRXRtrjQudyIg20C4aEOGoDk,1115
|
|
128
136
|
cognite/neat/_issues/warnings/_general.py,sha256=9ZSNYBwFQ_XEagxYioUijJdCkdmT3VDQTlTO_JINe_E,617
|
|
129
137
|
cognite/neat/_issues/warnings/_models.py,sha256=i4ZXr1IINKbFiVhUd8-qAt9_cXB8D3W-ng1Ime_lQTA,4376
|
|
130
|
-
cognite/neat/_issues/warnings/_properties.py,sha256=
|
|
138
|
+
cognite/neat/_issues/warnings/_properties.py,sha256=VDc31UshXjLihWFLPFx9-TMyfJuJJKwdoOhkP_kDPFs,2444
|
|
131
139
|
cognite/neat/_issues/warnings/_resources.py,sha256=s_HPZXrSyZroCnPjZ-gw4LDJF3FtFQsDhD-SNTk2fT4,1809
|
|
132
140
|
cognite/neat/_issues/warnings/user_modeling.py,sha256=_DlhvR287jSvpVqKxImNpaztX-w3v9Ol-fBpqj_6nfo,3643
|
|
133
141
|
cognite/neat/_rules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
134
|
-
cognite/neat/_rules/_constants.py,sha256=
|
|
142
|
+
cognite/neat/_rules/_constants.py,sha256=N5-_A140xg7-IsnFTLCIoRI_z1rBe80IgwL71kpmzZE,5669
|
|
135
143
|
cognite/neat/_rules/_shared.py,sha256=b7mO8mXY4w84XmcY_ArQa4LqnS2A0emS12tbPb4sG7A,1562
|
|
136
144
|
cognite/neat/_rules/analysis/__init__.py,sha256=sMs4n8T87gLlvoss6FWkZ8Y7BPpo9AGxi0m4YxBGwpY,126
|
|
137
|
-
cognite/neat/_rules/analysis/_base.py,sha256=
|
|
145
|
+
cognite/neat/_rules/analysis/_base.py,sha256=TagiDXpylC2zN5w06GyYXRimWIos8xeOFlskBpjh-e8,16215
|
|
138
146
|
cognite/neat/_rules/analysis/_dms.py,sha256=kMMNMzV-KgM1flfJFssdVqu3x4B3oE01LmZzkUSgmxk,1468
|
|
139
147
|
cognite/neat/_rules/analysis/_information.py,sha256=y-AVfxRR4BMm7pqJg8mFFUJR30J8wSKA2RYHLuOi1YM,9731
|
|
140
148
|
cognite/neat/_rules/catalog/__init__.py,sha256=dzx-DYYJDc861aFiOI5o1FsySD9F1agY8SBsr3nCf4Y,148
|
|
141
149
|
cognite/neat/_rules/catalog/info-rules-imf.xlsx,sha256=7odm5CoAU72-VTZk_z1u7GbycIb-X-8Yy3mtBGLjhE4,55511
|
|
142
150
|
cognite/neat/_rules/exporters/__init__.py,sha256=jCwXAeyZJv7GNJ3hGG-80gb8LAidozsyFMzdNIsGt_Y,1204
|
|
143
|
-
cognite/neat/_rules/exporters/_base.py,sha256
|
|
144
|
-
cognite/neat/_rules/exporters/_rules2dms.py,sha256=
|
|
151
|
+
cognite/neat/_rules/exporters/_base.py,sha256=-TI0M6EibITIDRYNzIACQZ5XizKUYWTnf3UY6dAcjtQ,1433
|
|
152
|
+
cognite/neat/_rules/exporters/_rules2dms.py,sha256=9SCmQtA5tICgT-i8odTF5FqFm6uPBVmkSduIOyTb2Ss,16840
|
|
145
153
|
cognite/neat/_rules/exporters/_rules2excel.py,sha256=puFgIf_dolxv38Lkgzl9lDDREWDPdTApqgYCu9H-hf4,11689
|
|
146
154
|
cognite/neat/_rules/exporters/_rules2instance_template.py,sha256=8HM1SkzcucaEYpQi96ncMnL8STArX9Oe09JBhJJAN4I,5810
|
|
147
155
|
cognite/neat/_rules/exporters/_rules2ontology.py,sha256=ioMi1GUhnbvcfVOPb3Z0a24mIEe74AfxySETWMDS9Lc,21776
|
|
@@ -149,7 +157,7 @@ cognite/neat/_rules/exporters/_rules2yaml.py,sha256=O9vnzDHf1ep1Qu0po0GVjgu945HN
|
|
|
149
157
|
cognite/neat/_rules/exporters/_validation.py,sha256=DVJGdNNU2WtAFgUg0h4SWVhveRErEPOcYdT65y5toV0,682
|
|
150
158
|
cognite/neat/_rules/importers/__init__.py,sha256=Dg3zL5sFwFK-hu1rFREpwG9gw_RqhShMiM6TMwxYyfg,1389
|
|
151
159
|
cognite/neat/_rules/importers/_base.py,sha256=R1Q-XP8Cs-A8d9qxwXbwuIxE-t4Hel21QxHsPMXLuAk,3247
|
|
152
|
-
cognite/neat/_rules/importers/_dms2rules.py,sha256=
|
|
160
|
+
cognite/neat/_rules/importers/_dms2rules.py,sha256=I_PfBUMNMQ_YMyDJE0NzUWkSBVF2v6-Tv5DWqZIf-_U,21361
|
|
153
161
|
cognite/neat/_rules/importers/_dtdl2rules/__init__.py,sha256=CNR-sUihs2mnR1bPMKs3j3L4ds3vFTsrl6YycExZTfU,68
|
|
154
162
|
cognite/neat/_rules/importers/_dtdl2rules/_unit_lookup.py,sha256=wW4saKva61Q_i17guY0dc4OseJDQfqHy_QZBtm0OD6g,12134
|
|
155
163
|
cognite/neat/_rules/importers/_dtdl2rules/dtdl_converter.py,sha256=j38U0um1ZWI-yRvEUR3z33vOvMCYXJxSO9L_B7m9xDE,11707
|
|
@@ -162,7 +170,7 @@ cognite/neat/_rules/importers/_rdf/_imf2rules/_imf2classes.py,sha256=wx-AND5h7DS
|
|
|
162
170
|
cognite/neat/_rules/importers/_rdf/_imf2rules/_imf2metadata.py,sha256=CX6kXXxD3RTKFOmY31OJFAzG6YJlUszTRwHNHwOlCOE,803
|
|
163
171
|
cognite/neat/_rules/importers/_rdf/_imf2rules/_imf2properties.py,sha256=sJ2PSOr2f-TcUkXo3Y5iS4LhCJ30MnyUzUkMrxQHJPg,6141
|
|
164
172
|
cognite/neat/_rules/importers/_rdf/_imf2rules/_imf2rules.py,sha256=KqQ6YbpKg-kWg60klgP8gWJx5S5jgOW6cATP2cnZoxQ,5221
|
|
165
|
-
cognite/neat/_rules/importers/_rdf/_inference2rules.py,sha256=
|
|
173
|
+
cognite/neat/_rules/importers/_rdf/_inference2rules.py,sha256=oq414zXP-HqE44Ne7UYX6PbnWiwZAJVBlQb0jRwr0fo,11391
|
|
166
174
|
cognite/neat/_rules/importers/_rdf/_owl2rules/__init__.py,sha256=tdGcrgtozdQyST-pTlxIa4cLBNTLvtk1nNYR4vOdFSw,63
|
|
167
175
|
cognite/neat/_rules/importers/_rdf/_owl2rules/_owl2classes.py,sha256=qKle5M3vYFzmIa-T0pzaFGwM3xWOfNH1Y27lglXDJyE,1904
|
|
168
176
|
cognite/neat/_rules/importers/_rdf/_owl2rules/_owl2metadata.py,sha256=KRx29Hrjjcbq09Gu2ErfVwmiiBEpmXbAT_bjPz8uGos,2499
|
|
@@ -171,48 +179,49 @@ cognite/neat/_rules/importers/_rdf/_owl2rules/_owl2rules.py,sha256=ePB9iFRpk17vC
|
|
|
171
179
|
cognite/neat/_rules/importers/_rdf/_shared.py,sha256=RUYSXJj4nHsS03TT7BXQOlQBX9mR6qdwuDnfErwV8gU,14805
|
|
172
180
|
cognite/neat/_rules/importers/_spreadsheet2rules.py,sha256=TI92l_qddRW2JWk3JbmsvKkDYgXU-e_avw4y7epD_rs,10732
|
|
173
181
|
cognite/neat/_rules/importers/_yaml2rules.py,sha256=5DsEMYo6JVHC_mBOaaR3J6on1rXSpk82plCsrOq5_l8,3144
|
|
174
|
-
cognite/neat/_rules/models/__init__.py,sha256=
|
|
182
|
+
cognite/neat/_rules/models/__init__.py,sha256=z1LoPY2X-M8Og8bKcjae2JwQB9yW8Y_ASnkL3Tjwqyg,1024
|
|
175
183
|
cognite/neat/_rules/models/_base_input.py,sha256=qJrxobZLqpc28adEUJTKdJ8hDUZ67SVDFkUJnGjcPOc,6647
|
|
176
|
-
cognite/neat/_rules/models/_base_rules.py,sha256=
|
|
184
|
+
cognite/neat/_rules/models/_base_rules.py,sha256=TobUnr_5Q-lb5ZrTquc90GpNpB4ZalBCraTH7FwWvJI,13912
|
|
177
185
|
cognite/neat/_rules/models/_rdfpath.py,sha256=hqUMZCMeI8ESdJltu7FifuUhna5JNN_Heup2aYkV56Y,11882
|
|
178
186
|
cognite/neat/_rules/models/_types.py,sha256=6kljU9hREz1jllrBlIh7_jr-BLk6aUsINc-iDqPLKWI,5158
|
|
179
187
|
cognite/neat/_rules/models/data_types.py,sha256=LJuWUbStlZM4hUJGExOJIJXmAA4uiA0tvO9zKqLUrQg,9805
|
|
180
|
-
cognite/neat/_rules/models/dms/__init__.py,sha256=
|
|
181
|
-
cognite/neat/_rules/models/dms/_exporter.py,sha256=
|
|
182
|
-
cognite/neat/_rules/models/dms/_rules.py,sha256=
|
|
183
|
-
cognite/neat/_rules/models/dms/_rules_input.py,sha256=
|
|
184
|
-
cognite/neat/_rules/models/dms/
|
|
185
|
-
cognite/neat/_rules/models/dms/_validation.py,sha256=KMEql8WeawoYP2TG_-TPZnCcazvfikBZS6EC3DYqD7A,12507
|
|
188
|
+
cognite/neat/_rules/models/dms/__init__.py,sha256=Haoy6C5YbaARnPv9az1FNghYL_hUxgrnVhKXow7VgF4,635
|
|
189
|
+
cognite/neat/_rules/models/dms/_exporter.py,sha256=ZbkS6QWiHC_noXFfej1TC1Gq6d063PayYbgNdUzU5ag,22019
|
|
190
|
+
cognite/neat/_rules/models/dms/_rules.py,sha256=_A6k2XV8OZgv3NVZ9rzwpfF9e7HhTD1RPPr7MwcnaKo,18741
|
|
191
|
+
cognite/neat/_rules/models/dms/_rules_input.py,sha256=H83hSvQVFmkkoPnAJEP7Dcu3uEHfdUb9vroa3dnU8EE,12727
|
|
192
|
+
cognite/neat/_rules/models/dms/_validation.py,sha256=3bsQ6ABx_x14C6IGc0N-Ln-KJyDX-wE85llVNKHY_Gs,12612
|
|
186
193
|
cognite/neat/_rules/models/entities/__init__.py,sha256=QD-h79HhjqCsgscNU5kuf1ieRCE94dOfpujLuzYbtHk,1469
|
|
187
194
|
cognite/neat/_rules/models/entities/_constants.py,sha256=ToiLaaF-hGLPfn3AsKIIrfB4ZdTk4cY1RjM9gA1Qjkg,288
|
|
188
195
|
cognite/neat/_rules/models/entities/_loaders.py,sha256=jFllRty5XpS6uLklr9wJkx7Bzm-qwg65um6hnVistvw,2728
|
|
189
196
|
cognite/neat/_rules/models/entities/_multi_value.py,sha256=5RgZBrJfw7VSE-6F50-Lqtio_xVo4vbezKmoyiDdcw8,2692
|
|
190
|
-
cognite/neat/_rules/models/entities/_single_value.py,sha256=
|
|
197
|
+
cognite/neat/_rules/models/entities/_single_value.py,sha256=dVfqIx3_Agi_LddhsqPOyWcAt0s06PNpRxrW-7n-z0Y,18513
|
|
191
198
|
cognite/neat/_rules/models/entities/_types.py,sha256=df9rnXJJKciv2Bp-Ve2q4xdEJt6WWniq12Z0hW2d6sk,1917
|
|
192
199
|
cognite/neat/_rules/models/entities/_wrapped.py,sha256=FxC8HztW_tUUtuArAOwxyFfkdJnSEB4bgZoNmmmfiPk,7137
|
|
193
200
|
cognite/neat/_rules/models/information/__init__.py,sha256=fVvgXt-JuyZCP_mLgIVaeKD9pdAXe2BWUxU_BZs8e5g,480
|
|
194
|
-
cognite/neat/_rules/models/information/_rules.py,sha256=
|
|
201
|
+
cognite/neat/_rules/models/information/_rules.py,sha256=YDFFiBx0rLrvhAYRqXK7BiVHB_-cNB3xbe5DtnjUrE8,11550
|
|
195
202
|
cognite/neat/_rules/models/information/_rules_input.py,sha256=4XWayOQRIiOv9ZkD7TWsfjS-08mnRdRxctc55CLBJzw,5150
|
|
196
203
|
cognite/neat/_rules/models/information/_validation.py,sha256=kFt8XoG16X86dVfAOxGeC8KGBJjKforICGBv3EVQVNo,6089
|
|
197
|
-
cognite/neat/_rules/models/mapping/__init__.py,sha256=
|
|
198
|
-
cognite/neat/_rules/models/mapping/
|
|
199
|
-
cognite/neat/_rules/models/mapping/_classic2core.
|
|
200
|
-
cognite/neat/_rules/transformers/__init__.py,sha256=
|
|
204
|
+
cognite/neat/_rules/models/mapping/__init__.py,sha256=T68Hf7rhiXa7b03h4RMwarAmkGnB-Bbhc1H07b2PyC4,100
|
|
205
|
+
cognite/neat/_rules/models/mapping/_classic2core.py,sha256=8Ec4Ko8XtZjKM1BM0B9EzpVU-46g5mXz1aJgjDae_yo,1358
|
|
206
|
+
cognite/neat/_rules/models/mapping/_classic2core.yaml,sha256=xPRDCJ8eLie28PfRRiaDzd3JCEyA1X3nJU_wR-tJeZM,9461
|
|
207
|
+
cognite/neat/_rules/transformers/__init__.py,sha256=U-vxvyIZrHIiPcOqdgE8pdT9J8xcqMei8XPaXXQ5x1U,798
|
|
201
208
|
cognite/neat/_rules/transformers/_base.py,sha256=jmgcSFWOPvrbfme0kUwXi1_3Bvxwif1T1Pin2jqhzlU,3585
|
|
202
|
-
cognite/neat/_rules/transformers/_converters.py,sha256=
|
|
203
|
-
cognite/neat/_rules/transformers/_mapping.py,sha256=
|
|
209
|
+
cognite/neat/_rules/transformers/_converters.py,sha256=yc1KWGdp2CCl-yeHY87LRisxOLNgdfYJEnnKEM_QpZY,40315
|
|
210
|
+
cognite/neat/_rules/transformers/_mapping.py,sha256=rngdkG-To58IkSFUbbfbhPSQRdtkipjZxD37qxDot_A,9918
|
|
204
211
|
cognite/neat/_rules/transformers/_pipelines.py,sha256=-E5Hgitnr6ee8R9_3sqtjmWIPJ0w1xaLErG6Fo6ExVU,2603
|
|
205
|
-
cognite/neat/_rules/transformers/_verification.py,sha256=
|
|
212
|
+
cognite/neat/_rules/transformers/_verification.py,sha256=snkzbuZHYD5kNlSCOZ-nNI3mEmeqGbHOahCV0DKBgQc,2661
|
|
206
213
|
cognite/neat/_session/__init__.py,sha256=fxQ5URVlUnmEGYyB8Baw7IDq-uYacqkigbc4b-Pr9Fw,58
|
|
207
|
-
cognite/neat/_session/_base.py,sha256=
|
|
214
|
+
cognite/neat/_session/_base.py,sha256=JE5XU8RWL-evM6rEfhrSimHdvcFuQzqikDQvFkCJOs4,11303
|
|
208
215
|
cognite/neat/_session/_collector.py,sha256=zS5JxLIYnAWV-dBzF6WgUfo662iYSzEyDhtnMv-Zibs,4002
|
|
209
|
-
cognite/neat/_session/
|
|
210
|
-
cognite/neat/_session/
|
|
211
|
-
cognite/neat/_session/
|
|
216
|
+
cognite/neat/_session/_drop.py,sha256=XlEaKb_HpqI5EQuUuUFjcf3Qx6BfcBBWdqqGdwkGhmE,1137
|
|
217
|
+
cognite/neat/_session/_inspect.py,sha256=s3R6vz8HbqZSdknyXTSkmA3JvvInlQF5yNKECTA-I1w,7264
|
|
218
|
+
cognite/neat/_session/_mapping.py,sha256=I9FwZD4KvDv1hHF5peOjVIyarnfAGXMhyHCLi0ls9Dk,1316
|
|
219
|
+
cognite/neat/_session/_prepare.py,sha256=7Hg0ogIhDZgZdgbhycwyd0oETbHPbgpFOaxCjASJ2Ok,20021
|
|
220
|
+
cognite/neat/_session/_read.py,sha256=UFly-c0fxX2ier5soIAjMRqUPAhRK_ZKGGGChZEMR7w,13503
|
|
212
221
|
cognite/neat/_session/_set.py,sha256=1XtYn_AVrvSJWRXSQXsm-j9-WPzLVHFnuTXNEKXg_aQ,1913
|
|
213
222
|
cognite/neat/_session/_show.py,sha256=_ev_Z41rkW4nlvhLf69PmttggKksnkCchOow7CmICyU,14124
|
|
214
223
|
cognite/neat/_session/_state.py,sha256=rqKHkikagO1pf_fKpY-LZI1X5R_v6AyYpV72_3eSduM,5783
|
|
215
|
-
cognite/neat/_session/_to.py,sha256=
|
|
224
|
+
cognite/neat/_session/_to.py,sha256=d5Ia6PBFycTjpcGoO87o34hMWOGcFtVskzmWBdOGCes,5899
|
|
216
225
|
cognite/neat/_session/_wizard.py,sha256=Rdld2eZ-Q5BYbmAwW8FlfAYebdlw_P6L6V2WSDk-dHI,1306
|
|
217
226
|
cognite/neat/_session/engine/__init__.py,sha256=aeI5pzljU5n1B-SVu3LwjYVsN1tSVhnJj-4ddflEo4U,120
|
|
218
227
|
cognite/neat/_session/engine/_import.py,sha256=1QxA2_EK613lXYAHKQbZyw2yjo5P9XuiX4Z6_6-WMNQ,169
|
|
@@ -221,19 +230,13 @@ cognite/neat/_session/engine/_load.py,sha256=HAzrAiR3FQz881ZMbaK6EIvMNRxHUK8VbSo
|
|
|
221
230
|
cognite/neat/_session/exceptions.py,sha256=nFGeo-TVao_oaUJmfePcpfZehxCfjcsJ-kCCiUhJtuw,2148
|
|
222
231
|
cognite/neat/_shared.py,sha256=JXebp3LREqBq9TPNXb7QCHwF7_nbWo622WAzllxSaaU,1671
|
|
223
232
|
cognite/neat/_store/__init__.py,sha256=G-VG_YwfRt1kuPao07PDJyZ3w_0-eguzLUM13n-Z_RA,64
|
|
224
|
-
cognite/neat/_store/_base.py,sha256=
|
|
233
|
+
cognite/neat/_store/_base.py,sha256=HLBoog17VGanhRXru1eJCa9ONiXCYYJoqxAcIBjeUZI,13922
|
|
225
234
|
cognite/neat/_store/_provenance.py,sha256=BiVOuwl65qWZBaBlPYbVv0Dy_Ibg7U3tLpXt8H7KRuw,8722
|
|
226
235
|
cognite/neat/_utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
227
236
|
cognite/neat/_utils/auth.py,sha256=UbFNq4BIqxc1459xJtI1FZz91K5XEMkfY5cfpBHyUHU,13301
|
|
228
237
|
cognite/neat/_utils/auxiliary.py,sha256=WFOycFgoYipvDmtGvn6ZNH3H8iNZmHamrfe2kXRb8lM,6667
|
|
229
|
-
cognite/neat/_utils/cdf/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
230
|
-
cognite/neat/_utils/cdf/data_classes.py,sha256=XdPsHfmE3G-4o1AT_rNRiT916kWRoUpOMfgCyYjI0xU,10461
|
|
231
|
-
cognite/neat/_utils/cdf/loaders/__init__.py,sha256=s2aPR5XLo6WZ0ybstAJlcGFYkA7CyHW1XO-NYpL0V6o,483
|
|
232
|
-
cognite/neat/_utils/cdf/loaders/_base.py,sha256=ACqWVCrYX40u3n6tq9iqTP1Y-p2VzlaYshJNk7hoHa4,1778
|
|
233
|
-
cognite/neat/_utils/cdf/loaders/_data_modeling.py,sha256=eHnweAJWTszt5h44XgXSp_bcbtwxqxyB_4_9XnsLguY,14236
|
|
234
|
-
cognite/neat/_utils/cdf/loaders/_ingestion.py,sha256=CNORsQaP-ILTUBj7h9rPeysnH8GxSXr1GjBd6-9n9ho,7140
|
|
235
238
|
cognite/neat/_utils/collection_.py,sha256=ziPaNG3yfNE2DnhI_TDkIJ3TPDbUpJFG9Q2uPckNlx0,766
|
|
236
|
-
cognite/neat/_utils/rdf_.py,sha256=
|
|
239
|
+
cognite/neat/_utils/rdf_.py,sha256=dNUra2HQ0zatjNjxDnumXcOgvT9yA9SN5Yc46qBIW0M,7632
|
|
237
240
|
cognite/neat/_utils/reader/__init__.py,sha256=KOdEuGd9n9tyqZY7HCTnBKAXk2PUn4n_l7O3ZguSp-w,112
|
|
238
241
|
cognite/neat/_utils/reader/_base.py,sha256=PECrAlJqKDlyFzAlBBLfKjyOEyJSgN0sUfjbK-2qWf4,4537
|
|
239
242
|
cognite/neat/_utils/spreadsheet.py,sha256=LI0c7dlW0zXHkHw0NvB-gg6Df6cDcE3FbiaHBYLXdzQ,2714
|
|
@@ -241,7 +244,7 @@ cognite/neat/_utils/text.py,sha256=PvTEsEjaTu8SE8yYaKUrce4msboMj933dK7-0Eey_rE,3
|
|
|
241
244
|
cognite/neat/_utils/time_.py,sha256=O30LUiDH9TdOYz8_a9pFqTtJdg8vEjC3qHCk8xZblG8,345
|
|
242
245
|
cognite/neat/_utils/upload.py,sha256=iWKmsQgw4EHLv-11NjYu7zAj5LtqTAfNa87a1kWeuaU,5727
|
|
243
246
|
cognite/neat/_utils/xml_.py,sha256=FQkq84u35MUsnKcL6nTMJ9ajtG9D5i1u4VBnhGqP2DQ,1710
|
|
244
|
-
cognite/neat/_version.py,sha256=
|
|
247
|
+
cognite/neat/_version.py,sha256=osyAEKybr0C_gaLlQse66V7s_5GGhtDONJSRiIyooXQ,45
|
|
245
248
|
cognite/neat/_workflows/__init__.py,sha256=S0fZq7kvoqDKodHu1UIPsqcpdvXoefUWRPt1lqeQkQs,420
|
|
246
249
|
cognite/neat/_workflows/base.py,sha256=O1pcmfbme2gIVF2eOGrKZSUDmhZc8L9rI8UfvLN2YAM,26839
|
|
247
250
|
cognite/neat/_workflows/cdf_store.py,sha256=3pebnATPo6In4-1srpa3wzstynTOi3T6hwFX5uaie4c,18050
|
|
@@ -259,9 +262,9 @@ cognite/neat/_workflows/steps/lib/current/__init__.py,sha256=c22IznGdCSNCpXCi_yo
|
|
|
259
262
|
cognite/neat/_workflows/steps/lib/current/graph_extractor.py,sha256=iQsEs3a8pYISFqlP7lTMnPxz8Zic5Ep7CwB38jkRaJY,3711
|
|
260
263
|
cognite/neat/_workflows/steps/lib/current/graph_loader.py,sha256=EItu0wh-b-AFyn7iRhdThLjJ2NvHYBv3hY3x2w5sCqg,1693
|
|
261
264
|
cognite/neat/_workflows/steps/lib/current/graph_store.py,sha256=Fbd3Fb4K2QML_if46SLldikvBJUPJ2VUAG2Bzqcq-Qc,1586
|
|
262
|
-
cognite/neat/_workflows/steps/lib/current/rules_exporter.py,sha256=
|
|
263
|
-
cognite/neat/_workflows/steps/lib/current/rules_importer.py,sha256=
|
|
264
|
-
cognite/neat/_workflows/steps/lib/current/rules_validator.py,sha256
|
|
265
|
+
cognite/neat/_workflows/steps/lib/current/rules_exporter.py,sha256=ef55muQVcrUuFRgzkGyi2F5RdqH0AMBUy0xj4D6I4jA,25630
|
|
266
|
+
cognite/neat/_workflows/steps/lib/current/rules_importer.py,sha256=GnGlzCF6eWpCKXf8IO9PN1J9anss1FojDUW3DoGMm6U,18073
|
|
267
|
+
cognite/neat/_workflows/steps/lib/current/rules_validator.py,sha256=6xfjVVoZaCfpKmiJIIQuDp3-M8rrYhKV-tCnMQkgsYU,4727
|
|
265
268
|
cognite/neat/_workflows/steps/lib/io/__init__.py,sha256=k7IPbIq3ey19oRc5sA_15F99-O6dxzqbm1LihGRRo5A,32
|
|
266
269
|
cognite/neat/_workflows/steps/lib/io/io_steps.py,sha256=EZWqM_0hkfzCVnUxzHPNLIdvkqT6NUKDaZsrD_Z2jpU,16934
|
|
267
270
|
cognite/neat/_workflows/steps/step_model.py,sha256=XyKk3j8Q4Y4E9E9rai-LbEelQPlrhyzsDWzzzruoxOM,2946
|
|
@@ -270,8 +273,8 @@ cognite/neat/_workflows/tasks.py,sha256=dr2xuIb8P5e5e9p_fjzRlvDbKsre2xGYrkc3wnRx
|
|
|
270
273
|
cognite/neat/_workflows/triggers.py,sha256=u69xOsaTtM8_WD6ZeIIBB-XKwvlZmPHAsZQh_TnyHcM,7073
|
|
271
274
|
cognite/neat/_workflows/utils.py,sha256=gKdy3RLG7ctRhbCRwaDIWpL9Mi98zm56-d4jfHDqP1E,453
|
|
272
275
|
cognite/neat/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
273
|
-
cognite_neat-0.
|
|
274
|
-
cognite_neat-0.
|
|
275
|
-
cognite_neat-0.
|
|
276
|
-
cognite_neat-0.
|
|
277
|
-
cognite_neat-0.
|
|
276
|
+
cognite_neat-0.99.0.dist-info/LICENSE,sha256=W8VmvFia4WHa3Gqxq1Ygrq85McUNqIGDVgtdvzT-XqA,11351
|
|
277
|
+
cognite_neat-0.99.0.dist-info/METADATA,sha256=HiIEArITg0LEj_WPj3PiCIV7gqlHjZ1zeW8vharhjeY,9698
|
|
278
|
+
cognite_neat-0.99.0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
279
|
+
cognite_neat-0.99.0.dist-info/entry_points.txt,sha256=SsQlnl8SNMSSjE3acBI835JYFtsIinLSbVmHmMEXv6E,51
|
|
280
|
+
cognite_neat-0.99.0.dist-info/RECORD,,
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
from collections import Counter, defaultdict
|
|
2
|
-
from collections.abc import Iterator, MutableSequence, Sequence
|
|
3
|
-
from pathlib import Path
|
|
4
|
-
from typing import Any, Generic, SupportsIndex, TypeVar, cast, get_args, overload
|
|
5
|
-
|
|
6
|
-
import pandas as pd
|
|
7
|
-
from pydantic import BaseModel, GetCoreSchemaHandler, field_validator
|
|
8
|
-
from pydantic_core import core_schema
|
|
9
|
-
from pydantic_core.core_schema import ValidationInfo
|
|
10
|
-
|
|
11
|
-
from cognite.neat._issues.errors import NeatValueError
|
|
12
|
-
from cognite.neat._rules.models._base_rules import ClassRef, PropertyRef
|
|
13
|
-
from cognite.neat._rules.models.entities import ClassEntity, Undefined
|
|
14
|
-
|
|
15
|
-
T_Mapping = TypeVar("T_Mapping", bound=ClassRef | PropertyRef)
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
class Mapping(BaseModel, Generic[T_Mapping]):
|
|
19
|
-
source: T_Mapping
|
|
20
|
-
destination: T_Mapping
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
class MappingList(list, MutableSequence[Mapping[T_Mapping]]):
|
|
24
|
-
@classmethod
|
|
25
|
-
def __get_pydantic_core_schema__(cls, source: Any, handler: GetCoreSchemaHandler) -> core_schema.CoreSchema:
|
|
26
|
-
if args := get_args(source):
|
|
27
|
-
item_type = args[0]
|
|
28
|
-
else:
|
|
29
|
-
# Someone use SheetList without specifying the type
|
|
30
|
-
raise TypeError("SheetList must be used with a type argument, e.g., SheetList[InformationProperty]")
|
|
31
|
-
|
|
32
|
-
instance_schema = core_schema.is_instance_schema(cls)
|
|
33
|
-
sequence_row_schema = handler.generate_schema(Sequence[item_type]) # type: ignore[valid-type]
|
|
34
|
-
|
|
35
|
-
non_instance_schema = core_schema.no_info_after_validator_function(MappingList, sequence_row_schema)
|
|
36
|
-
return core_schema.union_schema([instance_schema, non_instance_schema])
|
|
37
|
-
|
|
38
|
-
def as_destination_by_source(self) -> dict[T_Mapping, T_Mapping]:
|
|
39
|
-
return {mapping.source: mapping.destination for mapping in self}
|
|
40
|
-
|
|
41
|
-
def to_pandas(self, drop_na_columns: bool = True, include: list[str] | None = None) -> pd.DataFrame:
|
|
42
|
-
"""Converts ResourceDict to pandas DataFrame."""
|
|
43
|
-
df = pd.DataFrame([entity.model_dump() for entity in self])
|
|
44
|
-
if drop_na_columns:
|
|
45
|
-
df = df.dropna(axis=1, how="all")
|
|
46
|
-
if include is not None:
|
|
47
|
-
df = df[include]
|
|
48
|
-
return df
|
|
49
|
-
|
|
50
|
-
def _repr_html_(self) -> str:
|
|
51
|
-
"""Returns HTML representation of ResourceDict."""
|
|
52
|
-
return self.to_pandas(drop_na_columns=True)._repr_html_() # type: ignore[operator]
|
|
53
|
-
|
|
54
|
-
# Implemented to get correct type hints
|
|
55
|
-
def __iter__(self) -> Iterator[Mapping[T_Mapping]]:
|
|
56
|
-
return super().__iter__()
|
|
57
|
-
|
|
58
|
-
@overload
|
|
59
|
-
def __getitem__(self, index: SupportsIndex) -> Mapping[T_Mapping]: ...
|
|
60
|
-
|
|
61
|
-
@overload
|
|
62
|
-
def __getitem__(self, index: slice) -> "MappingList[T_Mapping]": ...
|
|
63
|
-
|
|
64
|
-
def __getitem__(self, index: SupportsIndex | slice, /) -> "Mapping[T_Mapping] | MappingList[T_Mapping]":
|
|
65
|
-
if isinstance(index, slice):
|
|
66
|
-
return MappingList[T_Mapping](super().__getitem__(index))
|
|
67
|
-
return super().__getitem__(index)
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
class RuleMapping(BaseModel):
|
|
71
|
-
properties: MappingList[PropertyRef]
|
|
72
|
-
classes: MappingList[ClassRef]
|
|
73
|
-
|
|
74
|
-
@field_validator("properties", "classes", mode="before")
|
|
75
|
-
def as_mapping_list(cls, value: Sequence[Any], info: ValidationInfo) -> Any:
|
|
76
|
-
if isinstance(value, Sequence) and not isinstance(value, MappingList):
|
|
77
|
-
annotation = cast(type, cls.model_fields[info.field_name].annotation) # type: ignore[index]
|
|
78
|
-
ref_cls = get_args(annotation)[0]
|
|
79
|
-
return annotation([Mapping[ref_cls].model_validate(item) for item in value]) # type: ignore[valid-type, index]
|
|
80
|
-
return value
|
|
81
|
-
|
|
82
|
-
@classmethod
|
|
83
|
-
def load_spreadsheet(
|
|
84
|
-
cls, path: str | Path, source_prefix: str | None = None, destination_prefix: str | None = None
|
|
85
|
-
) -> "RuleMapping":
|
|
86
|
-
"""Loads mapping from Excel spreadsheet.
|
|
87
|
-
|
|
88
|
-
This method expects four columns in the spreadsheet. The first two columns are the source class and
|
|
89
|
-
property, and the last two columns are the destination class and property. The method will create
|
|
90
|
-
a mapping for each row in the spreadsheet.
|
|
91
|
-
|
|
92
|
-
The class mapping will be inferred from the property mappings. If a source class has multiple
|
|
93
|
-
destination classes, the most common destination class will be used.
|
|
94
|
-
|
|
95
|
-
Args:
|
|
96
|
-
path: Path to Excel spreadsheet.
|
|
97
|
-
source_prefix: Default prefix for source classes.
|
|
98
|
-
destination_prefix: Default prefix for destination classes.
|
|
99
|
-
|
|
100
|
-
Returns:
|
|
101
|
-
Mapping object.
|
|
102
|
-
|
|
103
|
-
"""
|
|
104
|
-
df = pd.read_excel(path).dropna(axis=1, how="all")
|
|
105
|
-
properties = MappingList[PropertyRef]()
|
|
106
|
-
destination_classes_by_source: dict[ClassEntity, Counter[ClassEntity]] = defaultdict(Counter)
|
|
107
|
-
for _, row in df.iterrows():
|
|
108
|
-
if len(row) < 4:
|
|
109
|
-
raise NeatValueError(f"Row {row} is not valid. Expected 4 columns, got {len(row)}")
|
|
110
|
-
|
|
111
|
-
if any(pd.isna(row.iloc[:4])):
|
|
112
|
-
continue
|
|
113
|
-
source_class, source_property, destination_class, destination_property = row.iloc[:4]
|
|
114
|
-
source_entity = ClassEntity.load(source_class, prefix=source_prefix or Undefined)
|
|
115
|
-
destination_entity = ClassEntity.load(destination_class, prefix=destination_prefix or Undefined)
|
|
116
|
-
properties.append(
|
|
117
|
-
Mapping(
|
|
118
|
-
source=PropertyRef(Class=source_entity, Property=source_property),
|
|
119
|
-
destination=PropertyRef(Class=destination_entity, Property=destination_property),
|
|
120
|
-
)
|
|
121
|
-
)
|
|
122
|
-
destination_classes_by_source[source_entity][destination_entity] += 1
|
|
123
|
-
|
|
124
|
-
classes = MappingList[ClassRef]()
|
|
125
|
-
for source_entity, destination_classes in destination_classes_by_source.items():
|
|
126
|
-
destination_entity = destination_classes.most_common(1)[0][0]
|
|
127
|
-
classes.append(
|
|
128
|
-
Mapping(source=ClassRef(Class=source_entity), destination=ClassRef(Class=destination_entity))
|
|
129
|
-
)
|
|
130
|
-
|
|
131
|
-
return cls(properties=properties, classes=classes)
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
from ._base import ResourceLoader
|
|
2
|
-
from ._data_modeling import (
|
|
3
|
-
ContainerLoader,
|
|
4
|
-
DataModelingLoader,
|
|
5
|
-
DataModelLoader,
|
|
6
|
-
SpaceLoader,
|
|
7
|
-
ViewLoader,
|
|
8
|
-
)
|
|
9
|
-
from ._ingestion import (
|
|
10
|
-
RawDatabaseLoader,
|
|
11
|
-
RawTableLoader,
|
|
12
|
-
TransformationLoader,
|
|
13
|
-
)
|
|
14
|
-
|
|
15
|
-
__all__ = [
|
|
16
|
-
"DataModelingLoader",
|
|
17
|
-
"ContainerLoader",
|
|
18
|
-
"DataModelLoader",
|
|
19
|
-
"ResourceLoader",
|
|
20
|
-
"SpaceLoader",
|
|
21
|
-
"ViewLoader",
|
|
22
|
-
"TransformationLoader",
|
|
23
|
-
"RawTableLoader",
|
|
24
|
-
"RawDatabaseLoader",
|
|
25
|
-
]
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
from abc import ABC, abstractmethod
|
|
2
|
-
from collections.abc import Sequence
|
|
3
|
-
from typing import Generic, TypeVar
|
|
4
|
-
|
|
5
|
-
from cognite.client import CogniteClient
|
|
6
|
-
from cognite.client.data_classes._base import (
|
|
7
|
-
T_CogniteResourceList,
|
|
8
|
-
T_WritableCogniteResource,
|
|
9
|
-
T_WriteClass,
|
|
10
|
-
WriteableCogniteResourceList,
|
|
11
|
-
)
|
|
12
|
-
from cognite.client.utils.useful_types import SequenceNotStr
|
|
13
|
-
|
|
14
|
-
from cognite.neat._shared import T_ID
|
|
15
|
-
|
|
16
|
-
T_WritableCogniteResourceList = TypeVar("T_WritableCogniteResourceList", bound=WriteableCogniteResourceList)
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
class ResourceLoader(
|
|
20
|
-
ABC,
|
|
21
|
-
Generic[T_ID, T_WriteClass, T_WritableCogniteResource, T_CogniteResourceList, T_WritableCogniteResourceList],
|
|
22
|
-
):
|
|
23
|
-
resource_name: str
|
|
24
|
-
|
|
25
|
-
def __init__(self, client: CogniteClient) -> None:
|
|
26
|
-
self.client = client
|
|
27
|
-
|
|
28
|
-
@classmethod
|
|
29
|
-
@abstractmethod
|
|
30
|
-
def get_id(cls, item: T_WriteClass | T_WritableCogniteResource | dict | T_ID) -> T_ID:
|
|
31
|
-
raise NotImplementedError
|
|
32
|
-
|
|
33
|
-
@classmethod
|
|
34
|
-
def get_ids(cls, items: Sequence[T_WriteClass | T_WritableCogniteResource]) -> list[T_ID]:
|
|
35
|
-
return [cls.get_id(item) for item in items]
|
|
36
|
-
|
|
37
|
-
@abstractmethod
|
|
38
|
-
def create(self, items: Sequence[T_WriteClass]) -> T_WritableCogniteResourceList:
|
|
39
|
-
raise NotImplementedError
|
|
40
|
-
|
|
41
|
-
@abstractmethod
|
|
42
|
-
def retrieve(self, ids: SequenceNotStr[T_ID]) -> T_WritableCogniteResourceList:
|
|
43
|
-
raise NotImplementedError
|
|
44
|
-
|
|
45
|
-
@abstractmethod
|
|
46
|
-
def update(self, items: Sequence[T_WriteClass]) -> T_WritableCogniteResourceList:
|
|
47
|
-
raise NotImplementedError
|
|
48
|
-
|
|
49
|
-
@abstractmethod
|
|
50
|
-
def delete(self, ids: SequenceNotStr[T_ID]) -> list[T_ID]:
|
|
51
|
-
raise NotImplementedError
|
|
52
|
-
|
|
53
|
-
def are_equal(self, local: T_WriteClass, remote: T_WritableCogniteResource) -> bool:
|
|
54
|
-
return local == remote.as_write()
|