cognite-neat 0.88.2__py3-none-any.whl → 0.88.3__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.
- cognite/neat/_version.py +1 -1
- cognite/neat/graph/__init__.py +0 -3
- cognite/neat/graph/loaders/_base.py +3 -3
- cognite/neat/graph/loaders/_rdf2asset.py +24 -25
- cognite/neat/graph/loaders/_rdf2dms.py +20 -15
- cognite/neat/issues/__init__.py +1 -3
- cognite/neat/issues/_base.py +259 -70
- cognite/neat/issues/errors/__init__.py +72 -0
- cognite/neat/issues/errors/_external.py +67 -0
- cognite/neat/issues/errors/_general.py +28 -0
- cognite/neat/issues/errors/_properties.py +62 -0
- cognite/neat/issues/errors/_resources.py +111 -0
- cognite/neat/issues/errors/_workflow.py +36 -0
- cognite/neat/issues/formatters.py +1 -1
- cognite/neat/issues/warnings/__init__.py +66 -0
- cognite/neat/issues/warnings/_external.py +40 -0
- cognite/neat/issues/warnings/_general.py +29 -0
- cognite/neat/issues/warnings/_models.py +92 -0
- cognite/neat/issues/warnings/_properties.py +44 -0
- cognite/neat/issues/warnings/_resources.py +55 -0
- cognite/neat/issues/warnings/user_modeling.py +113 -0
- cognite/neat/rules/_shared.py +10 -2
- cognite/neat/rules/exporters/_base.py +6 -6
- cognite/neat/rules/exporters/_rules2dms.py +18 -11
- cognite/neat/rules/exporters/_rules2excel.py +4 -4
- cognite/neat/rules/exporters/_rules2ontology.py +74 -51
- cognite/neat/rules/exporters/_rules2yaml.py +3 -3
- cognite/neat/rules/exporters/_validation.py +11 -96
- cognite/neat/rules/importers/_base.py +8 -12
- cognite/neat/rules/importers/_dms2rules.py +21 -24
- cognite/neat/rules/importers/_dtdl2rules/dtdl_converter.py +22 -17
- cognite/neat/rules/importers/_dtdl2rules/dtdl_importer.py +26 -19
- cognite/neat/rules/importers/_dtdl2rules/spec.py +7 -0
- cognite/neat/rules/importers/_rdf/_imf2rules/_imf2classes.py +1 -1
- cognite/neat/rules/importers/_rdf/_imf2rules/_imf2rules.py +9 -7
- cognite/neat/rules/importers/_rdf/_inference2rules.py +8 -8
- cognite/neat/rules/importers/_rdf/_owl2rules/_owl2classes.py +1 -0
- cognite/neat/rules/importers/_rdf/_owl2rules/_owl2properties.py +1 -0
- cognite/neat/rules/importers/_rdf/_owl2rules/_owl2rules.py +4 -4
- cognite/neat/rules/importers/_rdf/_shared.py +3 -3
- cognite/neat/rules/importers/_spreadsheet2rules.py +35 -22
- cognite/neat/rules/importers/_yaml2rules.py +23 -22
- cognite/neat/rules/models/_constants.py +2 -1
- cognite/neat/rules/models/_rdfpath.py +4 -4
- cognite/neat/rules/models/_types/_field.py +5 -10
- cognite/neat/rules/models/asset/_rules.py +1 -3
- cognite/neat/rules/models/asset/_validation.py +13 -9
- cognite/neat/rules/models/dms/_converter.py +2 -4
- cognite/neat/rules/models/dms/_exporter.py +30 -8
- cognite/neat/rules/models/dms/_rules.py +23 -7
- cognite/neat/rules/models/dms/_schema.py +87 -78
- cognite/neat/rules/models/dms/_validation.py +104 -65
- cognite/neat/rules/models/information/_converter.py +2 -2
- cognite/neat/rules/models/information/_rules.py +7 -8
- cognite/neat/rules/models/information/_validation.py +47 -24
- cognite/neat/rules/transformers/_base.py +15 -0
- cognite/neat/utils/auxiliary.py +2 -35
- cognite/neat/utils/text.py +17 -0
- cognite/neat/workflows/base.py +4 -4
- cognite/neat/workflows/cdf_store.py +3 -3
- cognite/neat/workflows/steps/data_contracts.py +1 -1
- cognite/neat/workflows/steps/lib/current/graph_extractor.py +3 -3
- cognite/neat/workflows/steps/lib/current/graph_loader.py +2 -2
- cognite/neat/workflows/steps/lib/current/graph_store.py +1 -1
- cognite/neat/workflows/steps/lib/current/rules_exporter.py +10 -10
- cognite/neat/workflows/steps/lib/current/rules_importer.py +6 -6
- cognite/neat/workflows/steps/lib/current/rules_validator.py +5 -6
- cognite/neat/workflows/steps/lib/io/io_steps.py +5 -5
- cognite/neat/workflows/steps_registry.py +4 -5
- {cognite_neat-0.88.2.dist-info → cognite_neat-0.88.3.dist-info}/METADATA +1 -1
- {cognite_neat-0.88.2.dist-info → cognite_neat-0.88.3.dist-info}/RECORD +78 -84
- cognite/neat/exceptions.py +0 -145
- cognite/neat/graph/exceptions.py +0 -90
- cognite/neat/issues/errors/external.py +0 -21
- cognite/neat/issues/errors/properties.py +0 -75
- cognite/neat/issues/errors/resources.py +0 -123
- cognite/neat/issues/neat_warnings/__init__.py +0 -2
- cognite/neat/issues/neat_warnings/identifier.py +0 -27
- cognite/neat/issues/neat_warnings/models.py +0 -22
- cognite/neat/issues/neat_warnings/properties.py +0 -77
- cognite/neat/issues/neat_warnings/resources.py +0 -125
- cognite/neat/rules/issues/__init__.py +0 -22
- cognite/neat/rules/issues/base.py +0 -63
- cognite/neat/rules/issues/dms.py +0 -549
- cognite/neat/rules/issues/fileread.py +0 -197
- cognite/neat/rules/issues/ontology.py +0 -298
- cognite/neat/rules/issues/spreadsheet.py +0 -563
- cognite/neat/rules/issues/spreadsheet_file.py +0 -151
- cognite/neat/rules/issues/tables.py +0 -72
- cognite/neat/workflows/_exceptions.py +0 -41
- /cognite/neat/{issues/errors/schema.py → rules/transformers/__init__.py} +0 -0
- /cognite/neat/{graph/stores → store}/__init__.py +0 -0
- /cognite/neat/{graph/stores → store}/_base.py +0 -0
- /cognite/neat/{graph/stores → store}/_provenance.py +0 -0
- {cognite_neat-0.88.2.dist-info → cognite_neat-0.88.3.dist-info}/LICENSE +0 -0
- {cognite_neat-0.88.2.dist-info → cognite_neat-0.88.3.dist-info}/WHEEL +0 -0
- {cognite_neat-0.88.2.dist-info → cognite_neat-0.88.3.dist-info}/entry_points.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
cognite/neat/__init__.py,sha256=AiexNcHdAHFbrrbo9c65gtil1dqx_SGraDH1PSsXjKE,126
|
|
2
2
|
cognite/neat/_shared.py,sha256=RSaHm2eJceTlvb-hMMe4nHgoHdPYDfN3XcxDXo24k3A,1530
|
|
3
|
-
cognite/neat/_version.py,sha256=
|
|
3
|
+
cognite/neat/_version.py,sha256=n4HA9gqnPDJQQ2u0lCOtmkV4pXgTed2pvJLXhBU7Obg,23
|
|
4
4
|
cognite/neat/app/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
cognite/neat/app/api/asgi/metrics.py,sha256=nxFy7L5cChTI0a-zkCiJ59Aq8yLuIJp5c9Dg0wRXtV0,152
|
|
6
6
|
cognite/neat/app/api/configuration.py,sha256=L1DCtLZ1HZku8I2z-JWd5RDsXhIsboFsKwAMhkrm-bY,3600
|
|
@@ -40,8 +40,7 @@ cognite/neat/app/ui/neat-app/build/static/js/main.5a52cf09.js.map,sha256=Lf93Q5-
|
|
|
40
40
|
cognite/neat/app/ui/neat-app/build/static/media/logo.8093b84df9ed36a174c629d6fe0b730d.svg,sha256=EYf9q9JoVJ1L1np-XloeEZXCmaibzKmmpXCKn_44xzA,240334
|
|
41
41
|
cognite/neat/config.py,sha256=MbYOvlibOjODEPcCHNKwZHVjg9ft8kZSojnW4gQCiHQ,10116
|
|
42
42
|
cognite/neat/constants.py,sha256=kuAOxPWvv4RzBISgNGoeyEXrt4B_VgMfxexDIOUEdMA,877
|
|
43
|
-
cognite/neat/
|
|
44
|
-
cognite/neat/graph/__init__.py,sha256=J8JSJj3s4gFbuAexma__KGpBXPN8wuydPTKd6EwgKPA,65
|
|
43
|
+
cognite/neat/graph/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
45
44
|
cognite/neat/graph/_shared.py,sha256=9QRETdm7hvqIeiHv_n1xi1DUq91Nq7oRRpnPKE0Pnag,181
|
|
46
45
|
cognite/neat/graph/_tracking/__init__.py,sha256=pYj7c-YAUIP4hvN-4mlWnwaeZFerzL9_gM-oZhex7cE,91
|
|
47
46
|
cognite/neat/graph/_tracking/base.py,sha256=8JmaDhlFhSkdBe4SOvFnrdDvMmfTZkHhZxWWWTYkMOQ,820
|
|
@@ -50,7 +49,6 @@ cognite/neat/graph/examples/Knowledge-Graph-Nordic44-dirty.xml,sha256=ujJip6XBs5
|
|
|
50
49
|
cognite/neat/graph/examples/Knowledge-Graph-Nordic44.xml,sha256=U2Ns-M4LRjT1fBkhmRj63ur7jDzlRtHK9yOLf_npZ_g,1437996
|
|
51
50
|
cognite/neat/graph/examples/__init__.py,sha256=yAjHVY3b5jOjmbW-iLbhvu7BG014TpGi3K4igkDqW5I,368
|
|
52
51
|
cognite/neat/graph/examples/skos-capturing-sheet-wind-topics.xlsx,sha256=CV_yK5ZSbYS_ktfIZUPD8Sevs47zpswLXQUDFkGE4Gw,45798
|
|
53
|
-
cognite/neat/graph/exceptions.py,sha256=R6pyOH774n9w2x_X_nrUr8OMAdjJMf_XPIqAvxIQaWo,3401
|
|
54
52
|
cognite/neat/graph/extractors/__init__.py,sha256=nXcNp6i3-1HteIkr8Ujxk4b09W5jk27Q3eWuwjcnGnM,1647
|
|
55
53
|
cognite/neat/graph/extractors/_base.py,sha256=8IWygpkQTwo0UOmbbwWVI7540_klTVdUVX2JjVPFRIs,498
|
|
56
54
|
cognite/neat/graph/extractors/_classic_cdf/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -66,37 +64,37 @@ cognite/neat/graph/extractors/_dexpi.py,sha256=Q3whJpEi3uFMzJGAAeUfgRnAzz6ZHmtuE
|
|
|
66
64
|
cognite/neat/graph/extractors/_mock_graph_generator.py,sha256=2qHh3fJxxAR9QdR6TPu-6DOvcjJkjHF4bwZN7lulziY,14678
|
|
67
65
|
cognite/neat/graph/extractors/_rdf_file.py,sha256=ialMCLv9WH5k6v1YMfozfcmAYhz8OVo9jVhsKMyQkDA,763
|
|
68
66
|
cognite/neat/graph/loaders/__init__.py,sha256=TbeJqifd16JLOglPVNOeb6pN_w060UYag50KquBM_r0,769
|
|
69
|
-
cognite/neat/graph/loaders/_base.py,sha256=
|
|
70
|
-
cognite/neat/graph/loaders/_rdf2asset.py,sha256=
|
|
71
|
-
cognite/neat/graph/loaders/_rdf2dms.py,sha256=
|
|
67
|
+
cognite/neat/graph/loaders/_base.py,sha256=5CpNsSj3WGCCjT2dC4GhnbArSD7DlWg_kXtze_ediLg,3614
|
|
68
|
+
cognite/neat/graph/loaders/_rdf2asset.py,sha256=Opq7BNAzrAYq-ffF2ayAqNVopyBDrayn0hj07KVFsyI,17504
|
|
69
|
+
cognite/neat/graph/loaders/_rdf2dms.py,sha256=s1rCOAsZjcmhkRsW9_VbD9zL2yY9lAcjOtQirmzDCEw,14713
|
|
72
70
|
cognite/neat/graph/models.py,sha256=AtLgZh2qyRP6NRetjQCy9qLMuTQB0CH52Zsev-qa2sk,149
|
|
73
71
|
cognite/neat/graph/queries/__init__.py,sha256=BgDd-037kvtWwAoGAy8eORVNMiZ5-E9sIV0txIpeaN4,50
|
|
74
72
|
cognite/neat/graph/queries/_base.py,sha256=H1ypFF_Fjls_oViF_5rrfTZzFOjwA4AHnzPdnmLNdXM,8243
|
|
75
73
|
cognite/neat/graph/queries/_construct.py,sha256=lDquCxjiaUzL3G48ZQffrGJMcqPkWVtCdkfatgPAUKI,7208
|
|
76
74
|
cognite/neat/graph/queries/_shared.py,sha256=Kk53TqJmwD2G-rxhLq_jJXYy8jvLsUAAWGJS5r9pOaY,5327
|
|
77
|
-
cognite/neat/graph/stores/__init__.py,sha256=G-VG_YwfRt1kuPao07PDJyZ3w_0-eguzLUM13n-Z_RA,64
|
|
78
|
-
cognite/neat/graph/stores/_base.py,sha256=HC7PpqQV_KMxdF61aocwU3e7ljvpVHp4xvNwNKIrhBU,12442
|
|
79
|
-
cognite/neat/graph/stores/_provenance.py,sha256=HIXa-p7yc2l3HFkQWMnGPhn-t_FROEG21thADGkgy0c,3590
|
|
80
75
|
cognite/neat/graph/transformers/__init__.py,sha256=FMvlDEDJHrZL4Jb_H0AiJZO5uHXBCuLhB5HVDuinnBI,665
|
|
81
76
|
cognite/neat/graph/transformers/_base.py,sha256=b37Ek-9njuM5pTR_3XhnxCMrg_ip_2BMwM7ZhKpAAlw,328
|
|
82
77
|
cognite/neat/graph/transformers/_classic_cdf.py,sha256=6xX-OBSJT5DAQrTJ-nuhCfGNaSk5Iktxn-WIMfzEIqo,13189
|
|
83
78
|
cognite/neat/graph/transformers/_rdfpath.py,sha256=VLtGJvTPT5SWhV98fuGGt0pptTXfzOOQSNehypsPHug,1861
|
|
84
|
-
cognite/neat/issues/__init__.py,sha256=
|
|
85
|
-
cognite/neat/issues/_base.py,sha256=
|
|
86
|
-
cognite/neat/issues/errors/__init__.py,sha256=
|
|
87
|
-
cognite/neat/issues/errors/
|
|
88
|
-
cognite/neat/issues/errors/
|
|
89
|
-
cognite/neat/issues/errors/
|
|
90
|
-
cognite/neat/issues/errors/
|
|
91
|
-
cognite/neat/issues/
|
|
92
|
-
cognite/neat/issues/
|
|
93
|
-
cognite/neat/issues/
|
|
94
|
-
cognite/neat/issues/
|
|
95
|
-
cognite/neat/issues/
|
|
96
|
-
cognite/neat/issues/
|
|
79
|
+
cognite/neat/issues/__init__.py,sha256=KkBEO-0Lg3vdvjrQtxKR6Wy2iV2mooc9utSO8-_9UuI,405
|
|
80
|
+
cognite/neat/issues/_base.py,sha256=FXYyfNOFWIw5jniQHzjiQXoA6o37_bfVAEhB0yy2sXE,15113
|
|
81
|
+
cognite/neat/issues/errors/__init__.py,sha256=gapkNMhT_yA6zS2kDteXhreuqfkpXVm8SSL5aT7EwT0,2041
|
|
82
|
+
cognite/neat/issues/errors/_external.py,sha256=TUdihRyr5amdGSzSU49hWz7N7BSPCTVo7glKFNDrc5w,1583
|
|
83
|
+
cognite/neat/issues/errors/_general.py,sha256=g4wt8gAL16W29ApdGugcNOCsywi0Z5AywPa7jRxxPMs,672
|
|
84
|
+
cognite/neat/issues/errors/_properties.py,sha256=7To9RvOyBzspZrs4jG3kAYJ3bzmMjDld_2lXDTWkUgM,2299
|
|
85
|
+
cognite/neat/issues/errors/_resources.py,sha256=SqzHY4Mtm-JEYSKZO8x4Mh7vOVWMV3nOEu1JrUVdjIc,3863
|
|
86
|
+
cognite/neat/issues/errors/_workflow.py,sha256=nC3sxqlJSyi-kmo2ZAfxEH23ZuNRMC-oBcwQcl_2hkU,950
|
|
87
|
+
cognite/neat/issues/formatters.py,sha256=QCk41VLlpq-R9uaHpINYceZkIUoI9m4pwSq_yWPOmr8,3331
|
|
88
|
+
cognite/neat/issues/warnings/__init__.py,sha256=ZnQIaA8WAG378DLjCTSrlGLtGO7A33453-7ShCaBqtw,2250
|
|
89
|
+
cognite/neat/issues/warnings/_external.py,sha256=pauqW4VjKnfflUiz7J8EXtTdpXxCuCcE-EuzvXlPJuI,953
|
|
90
|
+
cognite/neat/issues/warnings/_general.py,sha256=yLfooeTwq57LQPbvvVgMZDBZpyrnalXHlA6bu0lSqFg,601
|
|
91
|
+
cognite/neat/issues/warnings/_models.py,sha256=60SSiGFwtoB2WX6s8fMf80dluIWR_y20GNGTgpL_1Ng,3040
|
|
92
|
+
cognite/neat/issues/warnings/_properties.py,sha256=DPoUOlWJ0G5IllJEDHvVCTgngGkrzJDunoyzhW9RhGg,1511
|
|
93
|
+
cognite/neat/issues/warnings/_resources.py,sha256=RpmZ-KLEyTTckfAG9IvQVslq8yjN9NPS9Q_Oa6Y3ps8,1788
|
|
94
|
+
cognite/neat/issues/warnings/user_modeling.py,sha256=6bnXq-dw5T9li7Kdz47iYb9DxhrVoE403hnBqtEn2bg,3616
|
|
97
95
|
cognite/neat/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
98
96
|
cognite/neat/rules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
99
|
-
cognite/neat/rules/_shared.py,sha256=
|
|
97
|
+
cognite/neat/rules/_shared.py,sha256=yn6nsR4WtnS4ZCCDhgWiMEfL8RjnjDAlt6Cg3JoaWgM,722
|
|
100
98
|
cognite/neat/rules/analysis/__init__.py,sha256=1qQXgddwSmRjC5s22XfQhsn8XPYfwAV_2n6lqeWJmKc,141
|
|
101
99
|
cognite/neat/rules/analysis/_asset.py,sha256=SCiDatwDPi80jj41yQAp740irRWijMKEtAObkwKOKYs,7322
|
|
102
100
|
cognite/neat/rules/analysis/_base.py,sha256=jb9G2g59QaSZDwJmG1Kh9rq7CprvyrokTqfMytr0ZOk,16758
|
|
@@ -104,76 +102,73 @@ cognite/neat/rules/analysis/_information.py,sha256=TU9QbhtyhPVYqAxR-9L5awevl9i3q
|
|
|
104
102
|
cognite/neat/rules/examples/__init__.py,sha256=nxIwueAcHgZhkYriGxnDLQmIyiT8PByPHbScjYKDKe0,374
|
|
105
103
|
cognite/neat/rules/examples/wind-energy.owl,sha256=NuomCA9FuuLF0JlSuG3OKqD4VBcHgSjDKFLV17G1zV8,65934
|
|
106
104
|
cognite/neat/rules/exporters/__init__.py,sha256=nRMUBUf7yr1QPjyITeX2rTLtLLawHv24hhRE39d2-e0,1109
|
|
107
|
-
cognite/neat/rules/exporters/_base.py,sha256=
|
|
108
|
-
cognite/neat/rules/exporters/_rules2dms.py,sha256=
|
|
109
|
-
cognite/neat/rules/exporters/_rules2excel.py,sha256=
|
|
110
|
-
cognite/neat/rules/exporters/_rules2ontology.py,sha256=
|
|
111
|
-
cognite/neat/rules/exporters/_rules2yaml.py,sha256=
|
|
112
|
-
cognite/neat/rules/exporters/_validation.py,sha256=
|
|
105
|
+
cognite/neat/rules/exporters/_base.py,sha256=TW4R1u568_-w1yrpmr0MGGJuJzGpsw1curdWM7nXhB4,1952
|
|
106
|
+
cognite/neat/rules/exporters/_rules2dms.py,sha256=rPOXIJEzlJyPG1-fgEmappSwYmQ9E6T5-XX7E-ExeQY,14855
|
|
107
|
+
cognite/neat/rules/exporters/_rules2excel.py,sha256=QFOPDOGfofyflWur_4XFBF3DmHJZtCLMYlFwlg_mu7I,14360
|
|
108
|
+
cognite/neat/rules/exporters/_rules2ontology.py,sha256=o2ayPhIXfSYRdTXpYMD5fbYieOjRDlcWtCpHtlIkbNs,22040
|
|
109
|
+
cognite/neat/rules/exporters/_rules2yaml.py,sha256=3VDCSvkwBQ0p58o0AcdURx0KatErQF5W0iI48601FHY,3050
|
|
110
|
+
cognite/neat/rules/exporters/_validation.py,sha256=A0kyrIEu51ZXl47CXmO4ZOT0whO5iKNwMY-BwMc2scA,680
|
|
113
111
|
cognite/neat/rules/importers/__init__.py,sha256=z682_ktGKDjr52DIL6cPvOercZS6-TYD_ZDo-MGqtck,1207
|
|
114
|
-
cognite/neat/rules/importers/_base.py,sha256=
|
|
115
|
-
cognite/neat/rules/importers/_dms2rules.py,sha256=
|
|
112
|
+
cognite/neat/rules/importers/_base.py,sha256=wYqsOOnWk2ehPnmF4fW0mThrBO9NMqRzRKlHCNAzNgA,4498
|
|
113
|
+
cognite/neat/rules/importers/_dms2rules.py,sha256=TB1w66mUIu8fSyJDoLV6oJpJ9ZvGdIb-l8uHI2MdgsM,20329
|
|
116
114
|
cognite/neat/rules/importers/_dtdl2rules/__init__.py,sha256=CNR-sUihs2mnR1bPMKs3j3L4ds3vFTsrl6YycExZTfU,68
|
|
117
115
|
cognite/neat/rules/importers/_dtdl2rules/_unit_lookup.py,sha256=wW4saKva61Q_i17guY0dc4OseJDQfqHy_QZBtm0OD6g,12134
|
|
118
|
-
cognite/neat/rules/importers/_dtdl2rules/dtdl_converter.py,sha256=
|
|
119
|
-
cognite/neat/rules/importers/_dtdl2rules/dtdl_importer.py,sha256=
|
|
120
|
-
cognite/neat/rules/importers/_dtdl2rules/spec.py,sha256=
|
|
116
|
+
cognite/neat/rules/importers/_dtdl2rules/dtdl_converter.py,sha256=14N78bA_Wvrsdo7c82FT3HUSXib10AmiEZKC54RwrAk,11712
|
|
117
|
+
cognite/neat/rules/importers/_dtdl2rules/dtdl_importer.py,sha256=MIgFbbkwGR9IE8aE9sv3AlzUJKmT1PyCYcBKtXY4efE,6922
|
|
118
|
+
cognite/neat/rules/importers/_dtdl2rules/spec.py,sha256=_uy-rO45Y-BJIp5p5dQVbVmjjVKYahkazJf-khVbT4E,12165
|
|
121
119
|
cognite/neat/rules/importers/_rdf/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
122
120
|
cognite/neat/rules/importers/_rdf/_imf2rules/__init__.py,sha256=4ZuX81E-Tp4Vf6g_6Pb0iStzOCy7RJ83yxhvo4UddXY,63
|
|
123
|
-
cognite/neat/rules/importers/_rdf/_imf2rules/_imf2classes.py,sha256=
|
|
121
|
+
cognite/neat/rules/importers/_rdf/_imf2rules/_imf2classes.py,sha256=xGV7eDUX0fm56RPXRMgAx8TfCy18fxbPegIqqdDzYk0,3462
|
|
124
122
|
cognite/neat/rules/importers/_rdf/_imf2rules/_imf2metadata.py,sha256=_z8z22-wS6gZHO4Gl-dJ-jhfUoAFgShIN303mFCL7uU,959
|
|
125
123
|
cognite/neat/rules/importers/_rdf/_imf2rules/_imf2properties.py,sha256=tLstxHJGQ9muWhGZ_he8zg0q-WtnqlJjVGa-ashcDI4,5671
|
|
126
|
-
cognite/neat/rules/importers/_rdf/_imf2rules/_imf2rules.py,sha256=
|
|
127
|
-
cognite/neat/rules/importers/_rdf/_inference2rules.py,sha256=
|
|
124
|
+
cognite/neat/rules/importers/_rdf/_imf2rules/_imf2rules.py,sha256=r1TGt96QwWVfV6nWgKUaSy64gsw0t6e_833x8sZqrM0,6605
|
|
125
|
+
cognite/neat/rules/importers/_rdf/_inference2rules.py,sha256=ne-t8p6G484jY6U8ErFCW_5r6vDsOpK3GGj9l94ARcc,13882
|
|
128
126
|
cognite/neat/rules/importers/_rdf/_owl2rules/__init__.py,sha256=tdGcrgtozdQyST-pTlxIa4cLBNTLvtk1nNYR4vOdFSw,63
|
|
129
|
-
cognite/neat/rules/importers/_rdf/_owl2rules/_owl2classes.py,sha256=
|
|
127
|
+
cognite/neat/rules/importers/_rdf/_owl2rules/_owl2classes.py,sha256=VLlr2UHAia0xWaeg3tKJ3N0sq_nYur3UqcOXgjMYxzg,1934
|
|
130
128
|
cognite/neat/rules/importers/_rdf/_owl2rules/_owl2metadata.py,sha256=3eTXm0irYJcjMV4H57xblP_iaNO_T0JErQuAYZfNaFA,2659
|
|
131
|
-
cognite/neat/rules/importers/_rdf/_owl2rules/_owl2properties.py,sha256=
|
|
132
|
-
cognite/neat/rules/importers/_rdf/_owl2rules/_owl2rules.py,sha256=
|
|
133
|
-
cognite/neat/rules/importers/_rdf/_shared.py,sha256=
|
|
134
|
-
cognite/neat/rules/importers/_spreadsheet2rules.py,sha256
|
|
135
|
-
cognite/neat/rules/importers/_yaml2rules.py,sha256=
|
|
136
|
-
cognite/neat/rules/issues/__init__.py,sha256=ATpneE7eTBqrtDYqS1rWk8Z1MeSRQOD3hTmA2n-cqvU,459
|
|
137
|
-
cognite/neat/rules/issues/base.py,sha256=UpuFJMKSDb5jzfIE79JgnIAKxvWikzEFAQHG6XOaz4I,1626
|
|
138
|
-
cognite/neat/rules/issues/dms.py,sha256=5VPgfJone-HzlLzSer_14tPChESyEzxOl0LygD-Q-F8,20688
|
|
139
|
-
cognite/neat/rules/issues/fileread.py,sha256=ao199mtvhPSW0IA8ZQZ0RzuLIIipYtL0jp6fLqxb4_c,5748
|
|
140
|
-
cognite/neat/rules/issues/ontology.py,sha256=hbEd6IdA1Sc3OMmU2iTnyUn1jUK2NVlXPykvxn0TX-g,10857
|
|
141
|
-
cognite/neat/rules/issues/spreadsheet.py,sha256=L4LBp90zyl2SYWqBhndLJQ4Ndiyhq-GdeSt3bTrUPvE,19671
|
|
142
|
-
cognite/neat/rules/issues/spreadsheet_file.py,sha256=YCp0Pk_TsiqYuOPdWpjUpre-zvi2c5_MvrC_dxw10YY,4964
|
|
143
|
-
cognite/neat/rules/issues/tables.py,sha256=_Ut5wel4-88XvkUxM4VFYDANDIl3lq_loeLlzAJhtgc,2381
|
|
129
|
+
cognite/neat/rules/importers/_rdf/_owl2rules/_owl2properties.py,sha256=2nuhRr7ZEEAEN94IFRYwrt_T4WqmQUzOpqrNuji_Vi4,2145
|
|
130
|
+
cognite/neat/rules/importers/_rdf/_owl2rules/_owl2rules.py,sha256=cG8HIEI4onlh-7KB0sQK0ubgCDtwMrIPDJYJ6iToLWY,2837
|
|
131
|
+
cognite/neat/rules/importers/_rdf/_shared.py,sha256=cAA0PUGHgfIBMq2obJyTL62tuLWFXTTM8OLO0NRBuCc,19765
|
|
132
|
+
cognite/neat/rules/importers/_spreadsheet2rules.py,sha256=-0oYHo1PLeOblOB82SHFseAvuA-J2YcUUv52QPoC_YI,13537
|
|
133
|
+
cognite/neat/rules/importers/_yaml2rules.py,sha256=OzeAU9fGw7LYuWz5MkSsBSC4sWYSnY4HxOzfdj520oI,4200
|
|
144
134
|
cognite/neat/rules/models/__init__.py,sha256=DHitrcmu9in2F8NqBE1O2J4UU_-MAlY6sB1MfigY4IU,887
|
|
145
135
|
cognite/neat/rules/models/_base.py,sha256=0wZgEDWLxKInQGw4ig3F_P_QP2FlUlMoanQvRMihHIg,11301
|
|
146
|
-
cognite/neat/rules/models/_constants.py,sha256=
|
|
147
|
-
cognite/neat/rules/models/_rdfpath.py,sha256=
|
|
136
|
+
cognite/neat/rules/models/_constants.py,sha256=OEc5d9CsULliffXVKuzfwumHQyrGJKtRA_HZ_tdM7LI,75
|
|
137
|
+
cognite/neat/rules/models/_rdfpath.py,sha256=oyMpmL_t0R5Uocdm3CA9iDLT2ZJVr2BIuz4cxaUlabM,11881
|
|
148
138
|
cognite/neat/rules/models/_types/__init__.py,sha256=l1tGxzE7ezNHIL72AoEvNHN2IFuitxOLxiHJG__s6t4,305
|
|
149
|
-
cognite/neat/rules/models/_types/_field.py,sha256=
|
|
139
|
+
cognite/neat/rules/models/_types/_field.py,sha256=VM40gfADOzw5UFy-olCBotComra0MsAafjyUlaIgFV8,2875
|
|
150
140
|
cognite/neat/rules/models/asset/__init__.py,sha256=qNon0kHleCPo2eT82TmeBAfiDDdwdKNU-Xdewuz8JRA,231
|
|
151
141
|
cognite/neat/rules/models/asset/_converter.py,sha256=PrTh9ZZkqSJBviiJE4xc3pClCsaWu2tTYOdgwg6_VOk,150
|
|
152
|
-
cognite/neat/rules/models/asset/_rules.py,sha256=
|
|
142
|
+
cognite/neat/rules/models/asset/_rules.py,sha256=eYV32f31RZPFfp0yEEMTiMU-RGF1IQDBvYZOr9_gDTI,5911
|
|
153
143
|
cognite/neat/rules/models/asset/_rules_input.py,sha256=LiT-85CVgDz2ng65CtrRa77r4rnmg3E4Q6DC7-gv0dE,6257
|
|
154
144
|
cognite/neat/rules/models/asset/_serializer.py,sha256=ixqRf9qEzvChgysRaDX4g_vHVDtRBCsPYC9sOn0-ShE,3365
|
|
155
|
-
cognite/neat/rules/models/asset/_validation.py,sha256=
|
|
145
|
+
cognite/neat/rules/models/asset/_validation.py,sha256=vLaamjMHA_nlahD0pn-5mmkiW_81sMp1C5ejFtDp_Xc,2008
|
|
156
146
|
cognite/neat/rules/models/data_types.py,sha256=mHTjWh47VzLwrr0w6dRf59LW7pTTGRTgsxvtW9p0JWw,6020
|
|
157
147
|
cognite/neat/rules/models/dms/__init__.py,sha256=Wzyqzz2ZIjpUbDg04CMuuIAw-f2A02DayNeqO9R-2Hw,491
|
|
158
|
-
cognite/neat/rules/models/dms/_converter.py,sha256=
|
|
159
|
-
cognite/neat/rules/models/dms/_exporter.py,sha256=
|
|
160
|
-
cognite/neat/rules/models/dms/_rules.py,sha256=
|
|
148
|
+
cognite/neat/rules/models/dms/_converter.py,sha256=zbJYupVve2vLlj39ThY5dZPfV33hDkjWcah8r4lqu9M,5807
|
|
149
|
+
cognite/neat/rules/models/dms/_exporter.py,sha256=EN0ifg3vzJzo3Xv0wPS40sphD6MONbV4POjLMEoYMls,25800
|
|
150
|
+
cognite/neat/rules/models/dms/_rules.py,sha256=JEwqGMcTi0yHsJJZoUm3GRtMli-i3_SWPp1210F6cFQ,20751
|
|
161
151
|
cognite/neat/rules/models/dms/_rules_input.py,sha256=bGarQoDNZmBuSZh_l7ARsZH86_hVWmlX73GmyOI3zGE,13645
|
|
162
|
-
cognite/neat/rules/models/dms/_schema.py,sha256=
|
|
152
|
+
cognite/neat/rules/models/dms/_schema.py,sha256=lc6Q0EUchOAUSTRiJnWc6UPBz7LjCW5NEvIGwNakcSI,50724
|
|
163
153
|
cognite/neat/rules/models/dms/_serializer.py,sha256=iqp2zyyf8jEcU-R3PERuN8nu248xIqyxiWj4owAn92g,6406
|
|
164
|
-
cognite/neat/rules/models/dms/_validation.py,sha256=
|
|
154
|
+
cognite/neat/rules/models/dms/_validation.py,sha256=Qd3zggB84GUeB-bNKE52sG04GYWaMUqiF47lbzqwHoQ,15884
|
|
165
155
|
cognite/neat/rules/models/domain.py,sha256=qG1387w6E4XIviOb7EwAjMaavUUQBweYlmYrZnj-FRI,2936
|
|
166
156
|
cognite/neat/rules/models/entities.py,sha256=jImGRqBH9Ej43tOMNFKOqqDDqftIjW6zCqt_vCj6ylw,20903
|
|
167
157
|
cognite/neat/rules/models/information/__init__.py,sha256=HR6g8xgyU53U7Ck8pPdbT70817Q4NC1r1pCRq5SA8iw,291
|
|
168
|
-
cognite/neat/rules/models/information/_converter.py,sha256=
|
|
169
|
-
cognite/neat/rules/models/information/_rules.py,sha256=
|
|
158
|
+
cognite/neat/rules/models/information/_converter.py,sha256=tDgardgQFS6NLhs3CKEEv88C2J7xLaRF7aE9RBuM-S8,13948
|
|
159
|
+
cognite/neat/rules/models/information/_rules.py,sha256=RwS1M2Pw_VNvlH2MhqcEUjZe-rkIBTva6JYDEaLFVfU,13447
|
|
170
160
|
cognite/neat/rules/models/information/_rules_input.py,sha256=AOTslaehKZH67VJaJO5bu8tT-1iSQz2uwf9mWFpK_44,10580
|
|
171
161
|
cognite/neat/rules/models/information/_serializer.py,sha256=yti9I_xJruxrib66YIBInhze___Io-oPTQH6uWDumPE,3503
|
|
172
|
-
cognite/neat/rules/models/information/_validation.py,sha256=
|
|
162
|
+
cognite/neat/rules/models/information/_validation.py,sha256=JCVCWlW4tZbamTdyQq5UIkramifImvW2UptUQNDLHkU,9224
|
|
173
163
|
cognite/neat/rules/models/wrapped_entities.py,sha256=ThhjnNNrpgz0HeORIQ8Q894trxP73P7T_TuZj6qH2CU,7157
|
|
164
|
+
cognite/neat/rules/transformers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
165
|
+
cognite/neat/rules/transformers/_base.py,sha256=-6kGqdw1JkDjcLw9JVnlHOOQP01GP3bvlabBWSWx-G8,450
|
|
166
|
+
cognite/neat/store/__init__.py,sha256=G-VG_YwfRt1kuPao07PDJyZ3w_0-eguzLUM13n-Z_RA,64
|
|
167
|
+
cognite/neat/store/_base.py,sha256=HC7PpqQV_KMxdF61aocwU3e7ljvpVHp4xvNwNKIrhBU,12442
|
|
168
|
+
cognite/neat/store/_provenance.py,sha256=HIXa-p7yc2l3HFkQWMnGPhn-t_FROEG21thADGkgy0c,3590
|
|
174
169
|
cognite/neat/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
175
170
|
cognite/neat/utils/auth.py,sha256=k0sEfTpK_bamMjAkj7jN6n9yta8TaqHTFkZUjUgpwik,12770
|
|
176
|
-
cognite/neat/utils/auxiliary.py,sha256=
|
|
171
|
+
cognite/neat/utils/auxiliary.py,sha256=A--zKPcu9tdEjJDvIX_mFiTsYaMhOgo7PtBPQzeMkoc,5716
|
|
177
172
|
cognite/neat/utils/cdf/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
178
173
|
cognite/neat/utils/cdf/data_classes.py,sha256=HWFpphCTHDkpnVwwtVb3gOLB76GKJ_F5XfLAf5wcd34,9615
|
|
179
174
|
cognite/neat/utils/cdf/loaders/__init__.py,sha256=s2aPR5XLo6WZ0ybstAJlcGFYkA7CyHW1XO-NYpL0V6o,483
|
|
@@ -184,14 +179,13 @@ cognite/neat/utils/collection_.py,sha256=fX4eAMau5AsUs1Dm5PlzINxR64kUjncEEHeoL_J
|
|
|
184
179
|
cognite/neat/utils/rdf_.py,sha256=VXDBQUt86vRntiGhejK35PlsbvKCUkuQQa1cMYz4SIc,5656
|
|
185
180
|
cognite/neat/utils/regex_patterns.py,sha256=M01rIfK6aRexP60qIrbG0qwBYaHj_ukmMC5leatSlic,1950
|
|
186
181
|
cognite/neat/utils/spreadsheet.py,sha256=LI0c7dlW0zXHkHw0NvB-gg6Df6cDcE3FbiaHBYLXdzQ,2714
|
|
187
|
-
cognite/neat/utils/text.py,sha256=
|
|
182
|
+
cognite/neat/utils/text.py,sha256=PvTEsEjaTu8SE8yYaKUrce4msboMj933dK7-0Eey_rE,3652
|
|
188
183
|
cognite/neat/utils/time_.py,sha256=O30LUiDH9TdOYz8_a9pFqTtJdg8vEjC3qHCk8xZblG8,345
|
|
189
184
|
cognite/neat/utils/upload.py,sha256=7yQZZM1SFEC-Dhl12rQD_8gUoRKLwmWhNjsImVB18og,4015
|
|
190
185
|
cognite/neat/utils/xml_.py,sha256=ppLT3lQKVp8wOP-m8-tFY8uB2P4R76l7R_-kUtsABng,992
|
|
191
186
|
cognite/neat/workflows/__init__.py,sha256=oiKub_U9f5cA0I1nKl5dFkR4BD8_6Be9eMzQ_50PwP0,396
|
|
192
|
-
cognite/neat/workflows/
|
|
193
|
-
cognite/neat/workflows/
|
|
194
|
-
cognite/neat/workflows/cdf_store.py,sha256=HCn76PJ7_vrBeTtBv9GDBH77B7wCzVnH13AoS2lu9aA,18016
|
|
187
|
+
cognite/neat/workflows/base.py,sha256=pWsUCtHVjdDe_N_pbQpmYLji-iN2U-H1G13aJbAXy7M,26829
|
|
188
|
+
cognite/neat/workflows/cdf_store.py,sha256=Ao6YnZ5wnZtP1wdnDQM7Hj2G7NqtLzBOKn4LJQS-8AU,18047
|
|
195
189
|
cognite/neat/workflows/examples/Export_DMS/workflow.yaml,sha256=XmyaUAsZrN-GnoBejg9eXHQBm1U1Z-NhdKc11Wm1ieM,1987
|
|
196
190
|
cognite/neat/workflows/examples/Import_DMS/workflow.yaml,sha256=i7FeD0dzUBhzorjMgo7v1mjShhgsEpobbxIAL-czt34,1364
|
|
197
191
|
cognite/neat/workflows/examples/Validate_Rules/workflow.yaml,sha256=lmuC-zttewtZl5EjnUv8RuM9t2dC-F053duNQHKoPGg,1395
|
|
@@ -201,24 +195,24 @@ cognite/neat/workflows/examples/Visualize_Semantic_Data_Model/workflow.yaml,sha2
|
|
|
201
195
|
cognite/neat/workflows/manager.py,sha256=CtxnabAmZq4APd5XA6FTBlytP3WmlbKNGjNoR04uAQ4,14102
|
|
202
196
|
cognite/neat/workflows/model.py,sha256=LQY7abYnz3CUEIlIEqoj0Eo6Q8yQukTQ0S_sPststCA,6570
|
|
203
197
|
cognite/neat/workflows/steps/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
204
|
-
cognite/neat/workflows/steps/data_contracts.py,sha256=
|
|
198
|
+
cognite/neat/workflows/steps/data_contracts.py,sha256=RobxctwAOxdOYdPf6jEkMj9KSTJjj4Cf__oOr5Ge2rs,2467
|
|
205
199
|
cognite/neat/workflows/steps/lib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
206
200
|
cognite/neat/workflows/steps/lib/current/__init__.py,sha256=c22IznGdCSNCpXCi_yonlbbywJE1uj6bfVCv0X2LYeE,225
|
|
207
|
-
cognite/neat/workflows/steps/lib/current/graph_extractor.py,sha256=
|
|
208
|
-
cognite/neat/workflows/steps/lib/current/graph_loader.py,sha256=
|
|
209
|
-
cognite/neat/workflows/steps/lib/current/graph_store.py,sha256=
|
|
210
|
-
cognite/neat/workflows/steps/lib/current/rules_exporter.py,sha256=
|
|
211
|
-
cognite/neat/workflows/steps/lib/current/rules_importer.py,sha256=
|
|
212
|
-
cognite/neat/workflows/steps/lib/current/rules_validator.py,sha256=
|
|
201
|
+
cognite/neat/workflows/steps/lib/current/graph_extractor.py,sha256=VHZpeo-QB_qSJu2QuU9uISFgw8LgQGeMVvSc1KORw3c,4738
|
|
202
|
+
cognite/neat/workflows/steps/lib/current/graph_loader.py,sha256=4FxE7A0ZCSwGmVP-dcWISwupBQo6TZzUr_1GMQ0klIM,1689
|
|
203
|
+
cognite/neat/workflows/steps/lib/current/graph_store.py,sha256=UydcYMoF2d2m8gOKAtlul8yCfKS3jFJJCTF2psM2flg,1582
|
|
204
|
+
cognite/neat/workflows/steps/lib/current/rules_exporter.py,sha256=QjJjXVFkI2mZiczyysaF264hehGeEWhSbIsK29Pho2w,23919
|
|
205
|
+
cognite/neat/workflows/steps/lib/current/rules_importer.py,sha256=Azi7VreTw7b7KFIrNoXNfQgq2iwpwc3FVOHOo_GWASU,17787
|
|
206
|
+
cognite/neat/workflows/steps/lib/current/rules_validator.py,sha256=phHSwyZzWQ0QK-2CFKUmFCQJU5lrWuZjmaDJUH8UYVg,5046
|
|
213
207
|
cognite/neat/workflows/steps/lib/io/__init__.py,sha256=k7IPbIq3ey19oRc5sA_15F99-O6dxzqbm1LihGRRo5A,32
|
|
214
|
-
cognite/neat/workflows/steps/lib/io/io_steps.py,sha256=
|
|
208
|
+
cognite/neat/workflows/steps/lib/io/io_steps.py,sha256=N4d5lCh7UwBlVj-jL3RQEVA-NznfCUfT19Oh7kDIko0,16931
|
|
215
209
|
cognite/neat/workflows/steps/step_model.py,sha256=bYX0PhlW-B76fBksBPENGGf8foOT6gvJL-2aUO5JimY,2943
|
|
216
|
-
cognite/neat/workflows/steps_registry.py,sha256=
|
|
210
|
+
cognite/neat/workflows/steps_registry.py,sha256=FjMsFBlFFy82ABUzDnWoFidYODV3pp3c7x32U-FqU0I,10722
|
|
217
211
|
cognite/neat/workflows/tasks.py,sha256=dqlJwKAb0jlkl7abbY8RRz3m7MT4SK8-7cntMWkOYjw,788
|
|
218
212
|
cognite/neat/workflows/triggers.py,sha256=_BLNplzoz0iic367u1mhHMHiUrCwP-SLK6_CZzfODX0,7071
|
|
219
213
|
cognite/neat/workflows/utils.py,sha256=gKdy3RLG7ctRhbCRwaDIWpL9Mi98zm56-d4jfHDqP1E,453
|
|
220
|
-
cognite_neat-0.88.
|
|
221
|
-
cognite_neat-0.88.
|
|
222
|
-
cognite_neat-0.88.
|
|
223
|
-
cognite_neat-0.88.
|
|
224
|
-
cognite_neat-0.88.
|
|
214
|
+
cognite_neat-0.88.3.dist-info/LICENSE,sha256=W8VmvFia4WHa3Gqxq1Ygrq85McUNqIGDVgtdvzT-XqA,11351
|
|
215
|
+
cognite_neat-0.88.3.dist-info/METADATA,sha256=ai_ZZOJ1z0ZKlVCp0syVwY4-vDGFqwdDzdoC4FR3PyU,9441
|
|
216
|
+
cognite_neat-0.88.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
217
|
+
cognite_neat-0.88.3.dist-info/entry_points.txt,sha256=61FPqiWb25vbqB0KI7znG8nsg_ibLHBvTjYnkPvNFso,50
|
|
218
|
+
cognite_neat-0.88.3.dist-info/RECORD,,
|
cognite/neat/exceptions.py
DELETED
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
from typing import Any
|
|
2
|
-
from warnings import WarningMessage
|
|
3
|
-
|
|
4
|
-
from pydantic_core import ErrorDetails, PydanticCustomError
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
class NeatException(Exception):
|
|
8
|
-
"""Base class for all exceptions raised by NEAT."""
|
|
9
|
-
|
|
10
|
-
type_: str
|
|
11
|
-
code: int
|
|
12
|
-
description: str
|
|
13
|
-
example: str
|
|
14
|
-
fix: str
|
|
15
|
-
message: str
|
|
16
|
-
|
|
17
|
-
def to_pydantic_custom_error(self):
|
|
18
|
-
return PydanticCustomError(
|
|
19
|
-
self.type_,
|
|
20
|
-
self.message,
|
|
21
|
-
dict(type_=self.type_, code=self.code, description=self.description, example=self.example, fix=self.fix),
|
|
22
|
-
)
|
|
23
|
-
|
|
24
|
-
def to_error_dict(self) -> ErrorDetails:
|
|
25
|
-
return {
|
|
26
|
-
"type": self.type_,
|
|
27
|
-
"loc": (),
|
|
28
|
-
"msg": self.message,
|
|
29
|
-
"input": None,
|
|
30
|
-
"ctx": dict(
|
|
31
|
-
type_=self.type_, code=self.code, description=self.description, example=self.example, fix=self.fix
|
|
32
|
-
),
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
class NeatWarning(UserWarning):
|
|
37
|
-
type_: str
|
|
38
|
-
code: int
|
|
39
|
-
description: str
|
|
40
|
-
example: str
|
|
41
|
-
fix: str
|
|
42
|
-
message: str
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
class NeatImportError(NeatException):
|
|
46
|
-
"""Cognite Import Error
|
|
47
|
-
|
|
48
|
-
Raised if the user attempts to use functionality which requires an uninstalled package.
|
|
49
|
-
|
|
50
|
-
Args:
|
|
51
|
-
module (str): Name of the module which could not be imported
|
|
52
|
-
extra (str): The name of the extra you use to install it with neat.
|
|
53
|
-
"""
|
|
54
|
-
|
|
55
|
-
type_: str = "NeatImportError"
|
|
56
|
-
code: int = 0
|
|
57
|
-
description: str = "Raised if the user attempts to use functionality which requires an uninstalled package."
|
|
58
|
-
example: str = ""
|
|
59
|
-
fix: str = ""
|
|
60
|
-
|
|
61
|
-
def __init__(self, module: str, extra: str, verbose=False):
|
|
62
|
-
self.module = module
|
|
63
|
-
self.message = (
|
|
64
|
-
f"This functionality requires {self.module}. "
|
|
65
|
-
f'You can include it in your neat installation with `pip install "cognite-neat[{extra}]"`.'
|
|
66
|
-
)
|
|
67
|
-
|
|
68
|
-
if verbose:
|
|
69
|
-
self.message += f"\nDescription: {self.description}"
|
|
70
|
-
self.message += f"\nExample: {self.example}"
|
|
71
|
-
self.message += f"\nFix: {self.fix}"
|
|
72
|
-
super().__init__(self.message)
|
|
73
|
-
|
|
74
|
-
def __str__(self) -> str:
|
|
75
|
-
return self.message
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
class InvalidWorkFlowError(NeatException):
|
|
79
|
-
"""InvalidWorkFlowError
|
|
80
|
-
Raised if an invalid workflow is provided to the Workflow Manager.
|
|
81
|
-
Args:
|
|
82
|
-
step_name (str): Name of the step which could not be run
|
|
83
|
-
missing_data (list[str]): The missing data for the step.
|
|
84
|
-
"""
|
|
85
|
-
|
|
86
|
-
type_: str = "InvalidWorkFlowError"
|
|
87
|
-
code: int = 1
|
|
88
|
-
description: str = "Raised if an invalid workflow is provided to the Workflow Manager."
|
|
89
|
-
example: str = ""
|
|
90
|
-
fix: str = ""
|
|
91
|
-
|
|
92
|
-
def __init__(self, step_name, missing_data: list[str], verbose=False):
|
|
93
|
-
self.message = f"In the workflow step {step_name} the following data is missing: {missing_data}."
|
|
94
|
-
|
|
95
|
-
if verbose:
|
|
96
|
-
self.message += f"\nDescription: {self.description}"
|
|
97
|
-
self.message += f"\nExample: {self.example}"
|
|
98
|
-
self.message += f"\nFix: {self.fix}"
|
|
99
|
-
super().__init__(self.message)
|
|
100
|
-
|
|
101
|
-
def __str__(self) -> str:
|
|
102
|
-
return self.message
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
class NeatValueError(NeatException, ValueError): ...
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
class NeatTypeError(NeatException, TypeError): ...
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
def wrangle_warnings(list_of_warnings: list[WarningMessage]) -> list[dict]:
|
|
112
|
-
warning_list: list[dict] = []
|
|
113
|
-
for warning in list_of_warnings:
|
|
114
|
-
if issubclass(warning.message.__class__, NeatWarning):
|
|
115
|
-
warning_list.append(_neat_warning_to_dict(warning))
|
|
116
|
-
elif issubclass(warning.message.__class__, Warning):
|
|
117
|
-
warning_list.append(_python_warning_to_dict(warning))
|
|
118
|
-
return warning_list
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
def _neat_warning_to_dict(warning: WarningMessage) -> dict:
|
|
122
|
-
category: Any = warning.category
|
|
123
|
-
return {
|
|
124
|
-
"type": category.resource_type,
|
|
125
|
-
"loc": (),
|
|
126
|
-
"msg": str(warning.message),
|
|
127
|
-
"input": None,
|
|
128
|
-
"ctx": dict(
|
|
129
|
-
type_=category.resource_type,
|
|
130
|
-
code=category.code,
|
|
131
|
-
description=category.description,
|
|
132
|
-
example=category.example,
|
|
133
|
-
fix=category.fix,
|
|
134
|
-
),
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
def _python_warning_to_dict(warning: WarningMessage) -> dict:
|
|
139
|
-
return {
|
|
140
|
-
"type": warning.category,
|
|
141
|
-
"loc": (),
|
|
142
|
-
"msg": str(warning.message),
|
|
143
|
-
"input": None,
|
|
144
|
-
"ctx": dict(type_=warning.category, code=None, description=None, example=None, fix=None),
|
|
145
|
-
}
|
cognite/neat/graph/exceptions.py
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
"""This module contains the definition of validation errors and warnings raised during graph methods"""
|
|
2
|
-
|
|
3
|
-
from cognite.neat.constants import DEFAULT_DOCS_URL
|
|
4
|
-
from cognite.neat.exceptions import NeatException
|
|
5
|
-
|
|
6
|
-
DOCS_BASE_URL = f"{DEFAULT_DOCS_URL}api/exceptions.html#{__name__}"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
class UnsupportedPropertyType(NeatException):
|
|
10
|
-
"""Unsupported property type when processing the graph capturing sheet
|
|
11
|
-
|
|
12
|
-
Args:
|
|
13
|
-
property_type: property type that is not supported
|
|
14
|
-
verbose: flag that indicates whether to provide enhanced exception message, by default False
|
|
15
|
-
"""
|
|
16
|
-
|
|
17
|
-
type_: str = "UnsupportedPropertyType"
|
|
18
|
-
code: int = 1000
|
|
19
|
-
description: str = "Unsupported property type when processing the graph capturing sheet."
|
|
20
|
-
example: str = ""
|
|
21
|
-
fix: str = ""
|
|
22
|
-
|
|
23
|
-
def __init__(self, property_type: str, verbose: bool = False):
|
|
24
|
-
self.property_type = property_type
|
|
25
|
-
|
|
26
|
-
self.message = (
|
|
27
|
-
f"Property type {self.property_type} is not supported. "
|
|
28
|
-
" Only the following property types are supported: DatatypeProperty and ObjectProperty"
|
|
29
|
-
f"\nFor more information visit: {DOCS_BASE_URL}.{self.__class__.__name__}"
|
|
30
|
-
)
|
|
31
|
-
|
|
32
|
-
if verbose:
|
|
33
|
-
self.message += f"\nDescription: {self.description}"
|
|
34
|
-
self.message += f"\nExample: {self.example}"
|
|
35
|
-
self.message += f"\nFix: {self.fix}"
|
|
36
|
-
super().__init__(self.message)
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
class NamespaceRequired(NeatException):
|
|
40
|
-
"""The functionality requires namespace in the TransformationRules.
|
|
41
|
-
|
|
42
|
-
Args:
|
|
43
|
-
functionality: functionality that requires namespace
|
|
44
|
-
verbose: flag that indicates whether to provide enhanced exception message, by default False
|
|
45
|
-
"""
|
|
46
|
-
|
|
47
|
-
type_ = "NamespaceRequired"
|
|
48
|
-
description: str = "The functionality requires namespace in the TransformationRules."
|
|
49
|
-
example: str = ""
|
|
50
|
-
fix: str = ""
|
|
51
|
-
|
|
52
|
-
def __init__(self, functionality: str, verbose: bool = False):
|
|
53
|
-
self.message = (
|
|
54
|
-
f"Namespace is required to be set in the Transformation rules"
|
|
55
|
-
f"to use {functionality}."
|
|
56
|
-
f"\nFor more information visit: {DOCS_BASE_URL}.{self.__class__.__name__}"
|
|
57
|
-
)
|
|
58
|
-
|
|
59
|
-
if verbose:
|
|
60
|
-
self.message += f"\nDescription: {self.description}"
|
|
61
|
-
self.message += f"\nExample: {self.example}"
|
|
62
|
-
self.message += f"\nFix: {self.fix}"
|
|
63
|
-
super().__init__(self.message)
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
class DatasetIdRequired(NeatException):
|
|
67
|
-
"""The functionality requires data_set_id in the TransformationRules.
|
|
68
|
-
|
|
69
|
-
Args:
|
|
70
|
-
functionality: functionality that requires namespace
|
|
71
|
-
verbose: flag that indicates whether to provide enhanced exception message, by default False
|
|
72
|
-
"""
|
|
73
|
-
|
|
74
|
-
type_ = "DatasetIdRequired"
|
|
75
|
-
description: str = "The functionality requires data_set_id in the TransformationRules."
|
|
76
|
-
example: str = ""
|
|
77
|
-
fix: str = ""
|
|
78
|
-
|
|
79
|
-
def __init__(self, functionality: str, verbose: bool = False):
|
|
80
|
-
self.message = (
|
|
81
|
-
f"DataSetId is required to be set in the Transformation rules"
|
|
82
|
-
f"to use {functionality}."
|
|
83
|
-
f"\nFor more information visit: {DOCS_BASE_URL}.{self.__class__.__name__}"
|
|
84
|
-
)
|
|
85
|
-
|
|
86
|
-
if verbose:
|
|
87
|
-
self.message += f"\nDescription: {self.description}"
|
|
88
|
-
self.message += f"\nExample: {self.example}"
|
|
89
|
-
self.message += f"\nFix: {self.fix}"
|
|
90
|
-
super().__init__(self.message)
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
from dataclasses import dataclass
|
|
2
|
-
from typing import Any
|
|
3
|
-
|
|
4
|
-
from cognite.neat.issues import NeatError
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
@dataclass(frozen=True)
|
|
8
|
-
class FailedAuthorizationError(NeatError):
|
|
9
|
-
description = "Missing authorization for {action}: {reason}"
|
|
10
|
-
|
|
11
|
-
action: str
|
|
12
|
-
reason: str
|
|
13
|
-
|
|
14
|
-
def message(self) -> str:
|
|
15
|
-
return self.description.format(action=self.action, reason=self.reason)
|
|
16
|
-
|
|
17
|
-
def dump(self) -> dict[str, Any]:
|
|
18
|
-
output = super().dump()
|
|
19
|
-
output["action"] = self.action
|
|
20
|
-
output["reason"] = self.reason
|
|
21
|
-
return output
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
from dataclasses import dataclass
|
|
2
|
-
from typing import Any, Generic
|
|
3
|
-
|
|
4
|
-
from .resources import ResourceError, T_Identifier, T_ReferenceIdentifier
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
@dataclass(frozen=True)
|
|
8
|
-
class PropertyNotFoundError(ResourceError[T_Identifier]):
|
|
9
|
-
"""The {resource_type} with identifier {identifier} does not have a property {property_name}"""
|
|
10
|
-
|
|
11
|
-
property_name: str
|
|
12
|
-
|
|
13
|
-
def message(self) -> str:
|
|
14
|
-
return (self.__doc__ or "").format(
|
|
15
|
-
resource_type=self.resource_type, identifier=repr(self.identifier), property_name=self.property_name
|
|
16
|
-
)
|
|
17
|
-
|
|
18
|
-
def dump(self) -> dict[str, Any]:
|
|
19
|
-
output = super().dump()
|
|
20
|
-
output["property_name"] = self.property_name
|
|
21
|
-
return output
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
@dataclass(frozen=True)
|
|
25
|
-
class ReferredPropertyNotFoundError(ResourceError, Generic[T_Identifier, T_ReferenceIdentifier]):
|
|
26
|
-
"""The {resource_type} with identifier {identifier} does not have a property {property_name} referred
|
|
27
|
-
to by {referred_type} {referred_by} does not exist
|
|
28
|
-
"""
|
|
29
|
-
|
|
30
|
-
fix = "Ensure the {resource_type} {identifier} has a {property_name} property"
|
|
31
|
-
|
|
32
|
-
referred_by: T_ReferenceIdentifier
|
|
33
|
-
referred_type: str
|
|
34
|
-
property_name: str
|
|
35
|
-
|
|
36
|
-
def message(self) -> str:
|
|
37
|
-
return (self.__doc__ or "").format(
|
|
38
|
-
resource_type=self.resource_type,
|
|
39
|
-
identifier=repr(self.identifier),
|
|
40
|
-
referred_type=self.referred_type,
|
|
41
|
-
referred_by=repr(self.referred_by),
|
|
42
|
-
property_name=self.property_name,
|
|
43
|
-
)
|
|
44
|
-
|
|
45
|
-
def dump(self) -> dict[str, Any]:
|
|
46
|
-
output = super().dump()
|
|
47
|
-
output["resource_type"] = self.resource_type
|
|
48
|
-
output["identifier"] = self.identifier
|
|
49
|
-
output["referred_by"] = self.referred_by
|
|
50
|
-
output["referred_type"] = self.referred_type
|
|
51
|
-
output["property_name"] = self.property_name
|
|
52
|
-
return output
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
@dataclass(frozen=True)
|
|
56
|
-
class PropertyTypeNotSupportedError(ResourceError[T_Identifier]):
|
|
57
|
-
"""The {resource_type} with identifier {identifier} has a property {property_name}
|
|
58
|
-
of unsupported type {property_type}"""
|
|
59
|
-
|
|
60
|
-
property_name: str
|
|
61
|
-
property_type: str
|
|
62
|
-
|
|
63
|
-
def message(self) -> str:
|
|
64
|
-
return (self.__doc__ or "").format(
|
|
65
|
-
resource_type=self.resource_type,
|
|
66
|
-
identifier=repr(self.identifier),
|
|
67
|
-
property_name=self.property_name,
|
|
68
|
-
property_type=self.property_type,
|
|
69
|
-
)
|
|
70
|
-
|
|
71
|
-
def dump(self) -> dict[str, Any]:
|
|
72
|
-
output = super().dump()
|
|
73
|
-
output["property_name"] = self.property_name
|
|
74
|
-
output["property_type"] = self.property_type
|
|
75
|
-
return output
|