cognite-neat 0.88.0__py3-none-any.whl → 0.88.1__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.

Files changed (52) hide show
  1. cognite/neat/_version.py +1 -1
  2. cognite/neat/app/api/routers/configuration.py +1 -1
  3. cognite/neat/app/ui/neat-app/build/asset-manifest.json +7 -7
  4. cognite/neat/app/ui/neat-app/build/index.html +1 -1
  5. cognite/neat/app/ui/neat-app/build/static/css/{main.38a62222.css → main.72e3d92e.css} +2 -2
  6. cognite/neat/app/ui/neat-app/build/static/css/main.72e3d92e.css.map +1 -0
  7. cognite/neat/app/ui/neat-app/build/static/js/main.5a52cf09.js +3 -0
  8. cognite/neat/app/ui/neat-app/build/static/js/{main.ec7f72e2.js.LICENSE.txt → main.5a52cf09.js.LICENSE.txt} +0 -9
  9. cognite/neat/app/ui/neat-app/build/static/js/main.5a52cf09.js.map +1 -0
  10. cognite/neat/config.py +44 -27
  11. cognite/neat/exceptions.py +6 -0
  12. cognite/neat/graph/extractors/_classic_cdf/_assets.py +21 -73
  13. cognite/neat/graph/extractors/_classic_cdf/_base.py +102 -0
  14. cognite/neat/graph/extractors/_classic_cdf/_events.py +46 -42
  15. cognite/neat/graph/extractors/_classic_cdf/_files.py +41 -45
  16. cognite/neat/graph/extractors/_classic_cdf/_labels.py +75 -52
  17. cognite/neat/graph/extractors/_classic_cdf/_relationships.py +49 -27
  18. cognite/neat/graph/extractors/_classic_cdf/_sequences.py +47 -50
  19. cognite/neat/graph/extractors/_classic_cdf/_timeseries.py +47 -49
  20. cognite/neat/graph/queries/_base.py +22 -29
  21. cognite/neat/graph/queries/_shared.py +1 -1
  22. cognite/neat/graph/stores/_base.py +19 -11
  23. cognite/neat/graph/transformers/_rdfpath.py +3 -2
  24. cognite/neat/issues.py +8 -0
  25. cognite/neat/rules/exporters/_rules2ontology.py +28 -20
  26. cognite/neat/rules/exporters/_validation.py +15 -21
  27. cognite/neat/rules/importers/_owl2rules/_owl2metadata.py +3 -7
  28. cognite/neat/rules/importers/_spreadsheet2rules.py +30 -27
  29. cognite/neat/rules/issues/dms.py +20 -0
  30. cognite/neat/rules/issues/importing.py +15 -0
  31. cognite/neat/rules/issues/ontology.py +298 -0
  32. cognite/neat/rules/issues/spreadsheet.py +48 -0
  33. cognite/neat/rules/issues/tables.py +72 -0
  34. cognite/neat/rules/models/_rdfpath.py +4 -4
  35. cognite/neat/rules/models/_types/_field.py +9 -19
  36. cognite/neat/rules/models/information/_rules.py +5 -4
  37. cognite/neat/utils/rdf_.py +17 -9
  38. cognite/neat/utils/regex_patterns.py +52 -0
  39. {cognite_neat-0.88.0.dist-info → cognite_neat-0.88.1.dist-info}/METADATA +2 -6
  40. {cognite_neat-0.88.0.dist-info → cognite_neat-0.88.1.dist-info}/RECORD +43 -45
  41. cognite/neat/app/ui/neat-app/build/static/css/main.38a62222.css.map +0 -1
  42. cognite/neat/app/ui/neat-app/build/static/js/main.ec7f72e2.js +0 -3
  43. cognite/neat/app/ui/neat-app/build/static/js/main.ec7f72e2.js.map +0 -1
  44. cognite/neat/graph/stores/_oxrdflib.py +0 -247
  45. cognite/neat/rules/exceptions.py +0 -2972
  46. cognite/neat/rules/models/_types/_base.py +0 -16
  47. cognite/neat/workflows/examples/Export_Rules_to_Ontology/workflow.yaml +0 -152
  48. cognite/neat/workflows/examples/Extract_DEXPI_Graph_and_Export_Rules/workflow.yaml +0 -139
  49. cognite/neat/workflows/examples/Ontology_to_Data_Model/workflow.yaml +0 -116
  50. {cognite_neat-0.88.0.dist-info → cognite_neat-0.88.1.dist-info}/LICENSE +0 -0
  51. {cognite_neat-0.88.0.dist-info → cognite_neat-0.88.1.dist-info}/WHEEL +0 -0
  52. {cognite_neat-0.88.0.dist-info → cognite_neat-0.88.1.dist-info}/entry_points.txt +0 -0
@@ -1,16 +0,0 @@
1
- MORE_THAN_ONE_NONE_ALPHANUMERIC_REGEX = r"([_-]{2,})"
2
- PREFIX_COMPLIANCE_REGEX = r"^([a-zA-Z]+)([a-zA-Z0-9]*[_-]{0,1}[a-zA-Z0-9_-]*)([a-zA-Z0-9]*)$"
3
-
4
- VIEW_ID_COMPLIANCE_REGEX = (
5
- r"(?!^(Query|Mutation|Subscription|String|Int32|Int64|Int|Float32|Float64|Float|"
6
- r"Timestamp|JSONObject|Date|Numeric|Boolean|PageInfo|File|Sequence|TimeSeries)$)"
7
- r"(^[a-zA-Z][a-zA-Z0-9_]{0,253}[a-zA-Z0-9]?$)"
8
- )
9
- DMS_PROPERTY_ID_COMPLIANCE_REGEX = (
10
- r"(?!^(space|externalId|createdTime|lastUpdatedTime|deletedTime|edge_id|"
11
- r"node_id|project_id|property_group|seq|tg_table_name|extensions)$)"
12
- r"(^[a-zA-Z][a-zA-Z0-9_]{0,253}[a-zA-Z0-9]?$)"
13
- )
14
- CLASS_ID_COMPLIANCE_REGEX = r"(?!^(Class|class)$)(^[a-zA-Z][a-zA-Z0-9._-]{0,253}[a-zA-Z0-9]?$)"
15
- PROPERTY_ID_COMPLIANCE_REGEX = r"^(\*)|(?!^(Property|property)$)(^[a-zA-Z][a-zA-Z0-9._-]{0,253}[a-zA-Z0-9]?$)"
16
- VERSION_COMPLIANCE_REGEX = r"^[a-zA-Z0-9]([.a-zA-Z0-9_-]{0,41}[a-zA-Z0-9])?$"
@@ -1,152 +0,0 @@
1
- configs: []
2
- description: null
3
- implementation_module: null
4
- name: Export Rules to Ontology
5
- steps:
6
- - complex_configs: {}
7
- configs: {}
8
- description: null
9
- enabled: true
10
- id: step_trigger
11
- label: Workflow Trigger
12
- max_retries: 0
13
- method: null
14
- params: {}
15
- retry_delay: 3
16
- stype: http_trigger
17
- system_component_id: null
18
- transition_to:
19
- - step_import_excel_rules
20
- trigger: true
21
- ui_config:
22
- pos_x: 480
23
- pos_y: 45
24
- - complex_configs: {}
25
- configs:
26
- file_name: skos-rules.xlsx
27
- validation_report_file: rules_validation_report.txt
28
- validation_report_storage_dir: rules_validation_report
29
- version: ""
30
- description: null
31
- enabled: true
32
- id: step_import_excel_rules
33
- label: Import Excel Rules
34
- max_retries: 0
35
- method: ImportExcelToRules
36
- params: {}
37
- retry_delay: 3
38
- stype: stdstep
39
- system_component_id: null
40
- transition_to:
41
- - step_export_rules_to_ontology
42
- trigger: false
43
- ui_config:
44
- pos_x: 481
45
- pos_y: 120
46
- - complex_configs: {}
47
- configs:
48
- ontology_file_path: staging/ontology.ttl
49
- description: null
50
- enabled: true
51
- id: step_export_rules_to_ontology
52
- label: Export Rules To Ontology
53
- max_retries: 0
54
- method: ExportRulesToOntology
55
- params: {}
56
- retry_delay: 3
57
- stype: stdstep
58
- system_component_id: null
59
- transition_to:
60
- - step_export_rules_to_shacle
61
- trigger: false
62
- ui_config:
63
- pos_x: 478
64
- pos_y: 191
65
- - complex_configs: {}
66
- configs:
67
- db_server_api_root_url: ""
68
- disk_store_dir: ontology-graph-store
69
- graph_name: source
70
- init_procedure: reset
71
- sparql_query_url: ""
72
- sparql_update_url: ""
73
- store_type: oxigraph
74
- description: null
75
- enabled: true
76
- id: step_configure_graph_store
77
- label: Configure Graph Store
78
- max_retries: 0
79
- method: ConfigureGraphStore
80
- params: {}
81
- retry_delay: 3
82
- stype: stdstep
83
- system_component_id: null
84
- transition_to:
85
- - step_load_ontology_to_graph_store
86
- trigger: false
87
- ui_config:
88
- pos_x: 479
89
- pos_y: 383
90
- - complex_configs: {}
91
- configs:
92
- add_base_iri: "True"
93
- file_path: staging/ontology.ttl
94
- mime_type: text/turtle
95
- description: null
96
- enabled: true
97
- id: step_load_ontology_to_graph_store
98
- label: Load Ontology To Graph Store
99
- max_retries: 0
100
- method: ExtractGraphFromRdfFile
101
- params: {}
102
- retry_delay: 3
103
- stype: stdstep
104
- system_component_id: null
105
- transition_to:
106
- - step_load_shacl_to_graph
107
- trigger: false
108
- ui_config:
109
- pos_x: 479
110
- pos_y: 455
111
- - complex_configs: {}
112
- configs:
113
- file_name: shacl.ttl
114
- shacl_file_path: staging/shacl.ttl
115
- storage_dir: staging
116
- description: null
117
- enabled: true
118
- id: step_export_rules_to_shacle
119
- label: Export Rules to Shacl
120
- max_retries: 0
121
- method: ExportRulesToSHACL
122
- params: {}
123
- retry_delay: 3
124
- stype: stdstep
125
- system_component_id: null
126
- transition_to:
127
- - step_configure_graph_store
128
- trigger: false
129
- ui_config:
130
- pos_x: 480
131
- pos_y: 291
132
- - complex_configs: {}
133
- configs:
134
- add_base_iri: "True"
135
- file_path: staging/shacl.ttl
136
- mime_type: text/turtle
137
- description: null
138
- enabled: true
139
- id: step_load_shacl_to_graph
140
- label: Load SHACL to Graph Store
141
- max_retries: 0
142
- method: ExtractGraphFromRdfFile
143
- params: {}
144
- retry_delay: 3
145
- stype: stdstep
146
- system_component_id: null
147
- transition_to: []
148
- trigger: false
149
- ui_config:
150
- pos_x: 475
151
- pos_y: 542
152
- system_components: []
@@ -1,139 +0,0 @@
1
- configs: []
2
- description: null
3
- implementation_module: null
4
- name: Extract DEXPI Graph and Export Rules
5
- steps:
6
- - complex_configs: {}
7
- configs: {}
8
- description: null
9
- enabled: true
10
- id: step_trigger
11
- label: Workflow Trigger
12
- max_retries: 0
13
- method: null
14
- params: {}
15
- retry_delay: 3
16
- stype: http_trigger
17
- system_component_id: null
18
- transition_to:
19
- - step_128344
20
- - step_configure_graph_store
21
- trigger: true
22
- ui_config:
23
- pos_x: 352
24
- pos_y: 106
25
- - complex_configs: {}
26
- configs:
27
- db_server_api_root_url: ""
28
- disk_store_dir: dexpi-graph
29
- graph_name: source
30
- init_procedure: reset
31
- sparql_query_url: ""
32
- sparql_update_url: ""
33
- store_type: oxigraph
34
- description: null
35
- enabled: true
36
- id: step_configure_graph_store
37
- label: Graph Store Config
38
- max_retries: 0
39
- method: ConfigureGraphStore
40
- params: {}
41
- retry_delay: 3
42
- stype: stdstep
43
- system_component_id: null
44
- transition_to:
45
- - step_download_dexpi_file
46
- trigger: false
47
- ui_config:
48
- pos_x: 353
49
- pos_y: 176
50
- - complex_configs: {}
51
- configs:
52
- base_namespace: http://purl.org/cognite/neat#
53
- file_path: source-graphs/depxi_example.xml
54
- description: null
55
- enabled: true
56
- id: step_load_ttl
57
- label: Extract Graph from DEXPI file
58
- max_retries: 0
59
- method: ExtractGraphFromDexpiFile
60
- params: {}
61
- retry_delay: 3
62
- stype: stdstep
63
- system_component_id: null
64
- transition_to:
65
- - infer_rules
66
- trigger: false
67
- ui_config:
68
- pos_x: 354
69
- pos_y: 344
70
- - complex_configs: {}
71
- configs:
72
- api_url: https://raw.githubusercontent.com/cognitedata/neat/main/tests/data/depxi_example.xml
73
- auth_mode: none
74
- http_method: GET
75
- output_file_path: source-graphs/depxi_example.xml
76
- password: ""
77
- response_destination: file
78
- token: ""
79
- username: ""
80
- description: null
81
- enabled: true
82
- id: step_download_dexpi_file
83
- label: Download DISC DEXPI example
84
- max_retries: 0
85
- method: DownloadDataFromRestApiToFile
86
- params: {}
87
- retry_delay: 3
88
- stype: stdstep
89
- system_component_id: null
90
- transition_to:
91
- - step_load_ttl
92
- trigger: false
93
- ui_config:
94
- pos_x: 354
95
- pos_y: 250
96
- - complex_configs: {}
97
- configs:
98
- excel_file_path: rules/inferred-rules.xlsx
99
- file_name: inferred_transformations.xlsx
100
- max_number_of_instances: "-1"
101
- storage_dir: staging
102
- description: null
103
- enabled: true
104
- id: infer_rules
105
- label: Import/infer Rules from Graph
106
- max_retries: 0
107
- method: ImportGraphToRules
108
- params: {}
109
- retry_delay: 3
110
- stype: stdstep
111
- system_component_id: null
112
- transition_to:
113
- - import_inferred_rules
114
- trigger: false
115
- ui_config:
116
- pos_x: 356
117
- pos_y: 442
118
- - complex_configs: {}
119
- configs:
120
- file_name: inferred-rules.xlsx
121
- validation_report_file: rules_validation_report.txt
122
- validation_report_storage_dir: rules_validation_report
123
- version: ""
124
- description: null
125
- enabled: true
126
- id: import_inferred_rules
127
- label: Import Inferred Rules
128
- max_retries: 0
129
- method: ImportExcelToRules
130
- params: {}
131
- retry_delay: 3
132
- stype: stdstep
133
- system_component_id: null
134
- transition_to: []
135
- trigger: false
136
- ui_config:
137
- pos_x: 356
138
- pos_y: 537
139
- system_components: []
@@ -1,116 +0,0 @@
1
- configs: []
2
- description: null
3
- implementation_module: null
4
- name: Ontology to Data Model
5
- steps:
6
- - complex_configs: {}
7
- configs: {}
8
- description: null
9
- enabled: true
10
- id: step_trigger
11
- label: Trigger
12
- max_retries: 0
13
- method: null
14
- params: {}
15
- retry_delay: 3
16
- stype: http_trigger
17
- system_component_id: null
18
- transition_to:
19
- - step_128344
20
- - dowload_ontology
21
- trigger: true
22
- ui_config:
23
- pos_x: 524
24
- pos_y: 259
25
- - complex_configs: {}
26
- configs:
27
- excel_file_path: rules/LIS-14-rules.xlsx
28
- make_compliant: "True"
29
- ontology_file_path: staging/LIS-14.ttl
30
- description: null
31
- enabled: true
32
- id: onotology2rules
33
- label: Import Ontology to Rules
34
- max_retries: 0
35
- method: ImportOntologyToRules
36
- params: {}
37
- retry_delay: 3
38
- stype: stdstep
39
- system_component_id: null
40
- transition_to:
41
- - load_generated_rules
42
- - import_generated_rules
43
- trigger: false
44
- ui_config:
45
- pos_x: 524
46
- pos_y: 403
47
- - complex_configs: {}
48
- configs:
49
- file_name: LIS-14-rules.xlsx
50
- validation_report_file: rules_validation_report.txt
51
- validation_report_storage_dir: rules_validation_report
52
- version: ""
53
- description: null
54
- enabled: true
55
- id: import_generated_rules
56
- label: Import Generated Rules
57
- max_retries: 0
58
- method: ImportExcelToRules
59
- params: {}
60
- retry_delay: 3
61
- stype: stdstep
62
- system_component_id: null
63
- transition_to:
64
- - step_59017
65
- - step_829062
66
- - export_rules_to_graphql_schema
67
- trigger: false
68
- ui_config:
69
- pos_x: 524
70
- pos_y: 490
71
- - complex_configs: {}
72
- configs:
73
- api_url: https://rds.posccaesar.org/ontology/lis14/ont/core/2.0/LIS-14.ttl
74
- auth_mode: none
75
- http_method: GET
76
- output_file_path: staging/LIS-14.ttl
77
- password: ""
78
- response_destination: file
79
- token: ""
80
- username: ""
81
- description: null
82
- enabled: true
83
- id: dowload_ontology
84
- label: Download Ontology
85
- max_retries: 0
86
- method: DownloadDataFromRestApiToFile
87
- params: {}
88
- retry_delay: 3
89
- stype: stdstep
90
- system_component_id: null
91
- transition_to:
92
- - onotology2rules
93
- trigger: false
94
- ui_config:
95
- pos_x: 524
96
- pos_y: 333
97
- - complex_configs: {}
98
- configs:
99
- file_name: ""
100
- storage_dir: staging
101
- description: null
102
- enabled: true
103
- id: export_rules_to_graphql_schema
104
- label: Export Rules to GraphQL Schema
105
- max_retries: 0
106
- method: ExportRulesToGraphQLSchema
107
- params: {}
108
- retry_delay: 3
109
- stype: stdstep
110
- system_component_id: null
111
- transition_to: []
112
- trigger: false
113
- ui_config:
114
- pos_x: 525
115
- pos_y: 577
116
- system_components: []