cognite-neat 0.87.4__py3-none-any.whl → 0.88.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.

Files changed (132) hide show
  1. cognite/neat/_version.py +1 -1
  2. cognite/neat/app/api/data_classes/rest.py +0 -19
  3. cognite/neat/app/api/explorer.py +6 -4
  4. cognite/neat/app/api/routers/crud.py +11 -21
  5. cognite/neat/app/api/routers/workflows.py +24 -94
  6. cognite/neat/graph/extractors/_classic_cdf/_assets.py +8 -2
  7. cognite/neat/graph/extractors/_mock_graph_generator.py +2 -2
  8. cognite/neat/graph/loaders/_base.py +17 -12
  9. cognite/neat/graph/loaders/_rdf2asset.py +223 -58
  10. cognite/neat/graph/loaders/_rdf2dms.py +1 -1
  11. cognite/neat/graph/stores/_base.py +5 -0
  12. cognite/neat/rules/analysis/_asset.py +31 -1
  13. cognite/neat/rules/importers/_inference2rules.py +31 -35
  14. cognite/neat/rules/models/information/_rules.py +1 -1
  15. cognite/neat/workflows/steps/data_contracts.py +17 -43
  16. cognite/neat/workflows/steps/lib/current/graph_extractor.py +28 -24
  17. cognite/neat/workflows/steps/lib/current/graph_loader.py +4 -21
  18. cognite/neat/workflows/steps/lib/current/graph_store.py +18 -134
  19. cognite/neat/workflows/steps_registry.py +5 -7
  20. {cognite_neat-0.87.4.dist-info → cognite_neat-0.88.0.dist-info}/METADATA +1 -1
  21. {cognite_neat-0.87.4.dist-info → cognite_neat-0.88.0.dist-info}/RECORD +24 -132
  22. cognite/neat/app/api/routers/core.py +0 -91
  23. cognite/neat/app/api/routers/data_exploration.py +0 -336
  24. cognite/neat/app/api/routers/rules.py +0 -203
  25. cognite/neat/legacy/__init__.py +0 -0
  26. cognite/neat/legacy/graph/__init__.py +0 -3
  27. cognite/neat/legacy/graph/examples/Knowledge-Graph-Nordic44-dirty.xml +0 -20182
  28. cognite/neat/legacy/graph/examples/Knowledge-Graph-Nordic44.xml +0 -20163
  29. cognite/neat/legacy/graph/examples/__init__.py +0 -10
  30. cognite/neat/legacy/graph/examples/skos-capturing-sheet-wind-topics.xlsx +0 -0
  31. cognite/neat/legacy/graph/exceptions.py +0 -90
  32. cognite/neat/legacy/graph/extractors/__init__.py +0 -6
  33. cognite/neat/legacy/graph/extractors/_base.py +0 -14
  34. cognite/neat/legacy/graph/extractors/_dexpi.py +0 -44
  35. cognite/neat/legacy/graph/extractors/_graph_capturing_sheet.py +0 -403
  36. cognite/neat/legacy/graph/extractors/_mock_graph_generator.py +0 -361
  37. cognite/neat/legacy/graph/loaders/__init__.py +0 -23
  38. cognite/neat/legacy/graph/loaders/_asset_loader.py +0 -511
  39. cognite/neat/legacy/graph/loaders/_base.py +0 -67
  40. cognite/neat/legacy/graph/loaders/_exceptions.py +0 -85
  41. cognite/neat/legacy/graph/loaders/core/__init__.py +0 -0
  42. cognite/neat/legacy/graph/loaders/core/labels.py +0 -58
  43. cognite/neat/legacy/graph/loaders/core/models.py +0 -136
  44. cognite/neat/legacy/graph/loaders/core/rdf_to_assets.py +0 -1046
  45. cognite/neat/legacy/graph/loaders/core/rdf_to_relationships.py +0 -559
  46. cognite/neat/legacy/graph/loaders/rdf_to_dms.py +0 -309
  47. cognite/neat/legacy/graph/loaders/validator.py +0 -87
  48. cognite/neat/legacy/graph/models.py +0 -6
  49. cognite/neat/legacy/graph/stores/__init__.py +0 -13
  50. cognite/neat/legacy/graph/stores/_base.py +0 -400
  51. cognite/neat/legacy/graph/stores/_graphdb_store.py +0 -52
  52. cognite/neat/legacy/graph/stores/_memory_store.py +0 -43
  53. cognite/neat/legacy/graph/stores/_oxigraph_store.py +0 -151
  54. cognite/neat/legacy/graph/stores/_oxrdflib.py +0 -247
  55. cognite/neat/legacy/graph/stores/_rdf_to_graph.py +0 -42
  56. cognite/neat/legacy/graph/transformations/__init__.py +0 -0
  57. cognite/neat/legacy/graph/transformations/entity_matcher.py +0 -101
  58. cognite/neat/legacy/graph/transformations/query_generator/__init__.py +0 -3
  59. cognite/neat/legacy/graph/transformations/query_generator/sparql.py +0 -575
  60. cognite/neat/legacy/graph/transformations/transformer.py +0 -322
  61. cognite/neat/legacy/rules/__init__.py +0 -0
  62. cognite/neat/legacy/rules/analysis.py +0 -231
  63. cognite/neat/legacy/rules/examples/Rules-Nordic44-to-graphql.xlsx +0 -0
  64. cognite/neat/legacy/rules/examples/Rules-Nordic44.xlsx +0 -0
  65. cognite/neat/legacy/rules/examples/__init__.py +0 -18
  66. cognite/neat/legacy/rules/examples/power-grid-containers.yaml +0 -124
  67. cognite/neat/legacy/rules/examples/power-grid-example.xlsx +0 -0
  68. cognite/neat/legacy/rules/examples/power-grid-model.yaml +0 -224
  69. cognite/neat/legacy/rules/examples/rules-template.xlsx +0 -0
  70. cognite/neat/legacy/rules/examples/sheet2cdf-transformation-rules.xlsx +0 -0
  71. cognite/neat/legacy/rules/examples/skos-rules.xlsx +0 -0
  72. cognite/neat/legacy/rules/examples/source-to-solution-mapping-rules.xlsx +0 -0
  73. cognite/neat/legacy/rules/examples/wind-energy.owl +0 -1511
  74. cognite/neat/legacy/rules/exceptions.py +0 -2972
  75. cognite/neat/legacy/rules/exporters/__init__.py +0 -20
  76. cognite/neat/legacy/rules/exporters/_base.py +0 -45
  77. cognite/neat/legacy/rules/exporters/_core/__init__.py +0 -5
  78. cognite/neat/legacy/rules/exporters/_core/rules2labels.py +0 -24
  79. cognite/neat/legacy/rules/exporters/_rules2dms.py +0 -885
  80. cognite/neat/legacy/rules/exporters/_rules2excel.py +0 -213
  81. cognite/neat/legacy/rules/exporters/_rules2graphql.py +0 -183
  82. cognite/neat/legacy/rules/exporters/_rules2ontology.py +0 -524
  83. cognite/neat/legacy/rules/exporters/_rules2pydantic_models.py +0 -748
  84. cognite/neat/legacy/rules/exporters/_rules2rules.py +0 -105
  85. cognite/neat/legacy/rules/exporters/_rules2triples.py +0 -38
  86. cognite/neat/legacy/rules/exporters/_validation.py +0 -146
  87. cognite/neat/legacy/rules/importers/__init__.py +0 -22
  88. cognite/neat/legacy/rules/importers/_base.py +0 -66
  89. cognite/neat/legacy/rules/importers/_dict2rules.py +0 -158
  90. cognite/neat/legacy/rules/importers/_dms2rules.py +0 -194
  91. cognite/neat/legacy/rules/importers/_graph2rules.py +0 -308
  92. cognite/neat/legacy/rules/importers/_json2rules.py +0 -39
  93. cognite/neat/legacy/rules/importers/_owl2rules/__init__.py +0 -3
  94. cognite/neat/legacy/rules/importers/_owl2rules/_owl2classes.py +0 -239
  95. cognite/neat/legacy/rules/importers/_owl2rules/_owl2metadata.py +0 -260
  96. cognite/neat/legacy/rules/importers/_owl2rules/_owl2properties.py +0 -217
  97. cognite/neat/legacy/rules/importers/_owl2rules/_owl2rules.py +0 -290
  98. cognite/neat/legacy/rules/importers/_spreadsheet2rules.py +0 -45
  99. cognite/neat/legacy/rules/importers/_xsd2rules.py +0 -20
  100. cognite/neat/legacy/rules/importers/_yaml2rules.py +0 -39
  101. cognite/neat/legacy/rules/models/__init__.py +0 -5
  102. cognite/neat/legacy/rules/models/_base.py +0 -151
  103. cognite/neat/legacy/rules/models/raw_rules.py +0 -316
  104. cognite/neat/legacy/rules/models/rdfpath.py +0 -237
  105. cognite/neat/legacy/rules/models/rules.py +0 -1289
  106. cognite/neat/legacy/rules/models/tables.py +0 -9
  107. cognite/neat/legacy/rules/models/value_types.py +0 -118
  108. cognite/neat/legacy/workflows/examples/Export_DMS/workflow.yaml +0 -89
  109. cognite/neat/legacy/workflows/examples/Export_Rules_to_Ontology/workflow.yaml +0 -152
  110. cognite/neat/legacy/workflows/examples/Extract_DEXPI_Graph_and_Export_Rules/workflow.yaml +0 -139
  111. cognite/neat/legacy/workflows/examples/Extract_RDF_Graph_and_Generate_Assets/workflow.yaml +0 -270
  112. cognite/neat/legacy/workflows/examples/Import_DMS/workflow.yaml +0 -65
  113. cognite/neat/legacy/workflows/examples/Ontology_to_Data_Model/workflow.yaml +0 -116
  114. cognite/neat/legacy/workflows/examples/Validate_Rules/workflow.yaml +0 -67
  115. cognite/neat/legacy/workflows/examples/Validate_Solution_Model/workflow.yaml +0 -64
  116. cognite/neat/legacy/workflows/examples/Visualize_Data_Model_Using_Mock_Graph/workflow.yaml +0 -95
  117. cognite/neat/legacy/workflows/examples/Visualize_Semantic_Data_Model/workflow.yaml +0 -111
  118. cognite/neat/workflows/examples/Extract_RDF_Graph_and_Generate_Assets/workflow.yaml +0 -270
  119. cognite/neat/workflows/migration/__init__.py +0 -0
  120. cognite/neat/workflows/migration/steps.py +0 -91
  121. cognite/neat/workflows/migration/wf_manifests.py +0 -33
  122. cognite/neat/workflows/steps/lib/legacy/__init__.py +0 -7
  123. cognite/neat/workflows/steps/lib/legacy/graph_contextualization.py +0 -82
  124. cognite/neat/workflows/steps/lib/legacy/graph_extractor.py +0 -746
  125. cognite/neat/workflows/steps/lib/legacy/graph_loader.py +0 -606
  126. cognite/neat/workflows/steps/lib/legacy/graph_store.py +0 -307
  127. cognite/neat/workflows/steps/lib/legacy/graph_transformer.py +0 -58
  128. cognite/neat/workflows/steps/lib/legacy/rules_exporter.py +0 -511
  129. cognite/neat/workflows/steps/lib/legacy/rules_importer.py +0 -612
  130. {cognite_neat-0.87.4.dist-info → cognite_neat-0.88.0.dist-info}/LICENSE +0 -0
  131. {cognite_neat-0.87.4.dist-info → cognite_neat-0.88.0.dist-info}/WHEEL +0 -0
  132. {cognite_neat-0.87.4.dist-info → cognite_neat-0.88.0.dist-info}/entry_points.txt +0 -0
@@ -1,124 +0,0 @@
1
- - externalId: GeographicalRegion
2
- name: GeographicalRegion
3
- properties:
4
- name:
5
- autoIncrement: false
6
- immutable: false
7
- defaultValue: null
8
- description: 'The name that identifies Greographical
9
-
10
- @name name'
11
- name: name
12
- nullable: false
13
- type:
14
- collation: ucs_basic
15
- list: false
16
- type: text
17
- space: workshop
18
- usedFor: node
19
- - externalId: Terminal
20
- name: Terminal
21
- properties:
22
- aliasName:
23
- autoIncrement: false
24
- immutable: false
25
- defaultValue: null
26
- description: 'The alternative name that identifies Substation
27
-
28
- @name aliasName'
29
- name: aliasName
30
- nullable: false
31
- type:
32
- collation: ucs_basic
33
- list: false
34
- type: text
35
- name:
36
- autoIncrement: false
37
- immutable: false
38
- defaultValue: null
39
- description: 'The name that identifies Terminal
40
-
41
- @name name'
42
- name: name
43
- nullable: false
44
- type:
45
- collation: ucs_basic
46
- list: false
47
- type: text
48
- substation:
49
- autoIncrement: false
50
- immutable: false
51
- defaultValue: null
52
- description: 'Substation to which terminal belongs to
53
-
54
- @name substation'
55
- name: substation
56
- nullable: true
57
- type:
58
- container: null
59
- type: direct
60
- list: false
61
- space: workshop
62
- usedFor: node
63
- - externalId: SubGeographicalRegion
64
- name: SubGeographicalRegion
65
- properties:
66
- name:
67
- autoIncrement: false
68
- immutable: false
69
- defaultValue: null
70
- description: 'The name that identifies SubGreographical
71
-
72
- @name name'
73
- name: name
74
- nullable: false
75
- type:
76
- collation: ucs_basic
77
- list: false
78
- type: text
79
- region:
80
- autoIncrement: false
81
- immutable: false
82
- defaultValue: null
83
- description: 'Region to which subgeographical region belongs to
84
-
85
- @name region'
86
- name: region
87
- nullable: true
88
- type:
89
- container: null
90
- type: direct
91
- list: false
92
- space: workshop
93
- usedFor: node
94
- - externalId: Substation
95
- name: Substation
96
- properties:
97
- name:
98
- autoIncrement: false
99
- immutable: false
100
- defaultValue: null
101
- description: 'The name that identifies Substation
102
-
103
- @name name'
104
- name: name
105
- nullable: false
106
- type:
107
- collation: ucs_basic
108
- list: false
109
- type: text
110
- subGeographicalRegion:
111
- autoIncrement: false
112
- immutable: false
113
- defaultValue: null
114
- description: 'The subgeographical region containing the substation
115
-
116
- @name subGeographicalRegion'
117
- name: subGeographicalRegion
118
- nullable: true
119
- type:
120
- container: null
121
- type: direct
122
- list: false
123
- space: workshop
124
- usedFor: node
@@ -1,224 +0,0 @@
1
- space: workshop
2
- externalId: PowerGrid
3
- description: Demo model from Neat
4
- name: PowerGrid
5
- version: "2"
6
- views:
7
- - space: workshop
8
- externalId: GeographicalRegion
9
- name: GeographicalRegion
10
- version: "1"
11
- writable: true
12
- usedFor: node
13
- isGlobal: false
14
- properties:
15
- name:
16
- container:
17
- space: workshop
18
- externalId: GeographicalRegion
19
- containerPropertyIdentifier: name
20
- type:
21
- list: false
22
- collation: ucs_basic
23
- type: text
24
- nullable: false
25
- autoIncrement: false
26
- immutable: false
27
- source: null
28
- defaultValue: null
29
- name: name
30
- description: "The name that identifies Greographical
31
-
32
- @name name"
33
- subRegions:
34
- type:
35
- space: workshop
36
- externalId: GeographicalRegion.subRegions
37
- source:
38
- space: workshop
39
- externalId: SubGeographicalRegion
40
- version: "1"
41
- type: view
42
- name: subRegions
43
- description: null
44
- edgeSource: null
45
- direction: outwards
46
- lastUpdatedTime: 1696712504333
47
- createdTime: 1696712504333
48
- - space: workshop
49
- externalId: SubGeographicalRegion
50
- description:
51
- "A subset of a geographical region of a power system network model.
52
-
53
- @name SubGeographicalRegion"
54
- name: SubGeographicalRegion
55
- version: "1"
56
- writable: true
57
- usedFor: node
58
- isGlobal: false
59
- properties:
60
- name:
61
- container:
62
- space: workshop
63
- externalId: SubGeographicalRegion
64
- containerPropertyIdentifier: name
65
- type:
66
- list: false
67
- collation: ucs_basic
68
- type: text
69
- nullable: false
70
- autoIncrement: false
71
- immutable: false
72
- source: null
73
- defaultValue: null
74
- name: name
75
- description: "The name that identifies SubGreographical
76
-
77
- @name name"
78
- region:
79
- container:
80
- space: workshop
81
- externalId: SubGeographicalRegion
82
- containerPropertyIdentifier: region
83
- type:
84
- container: null
85
- type: direct
86
- list: false
87
- source:
88
- space: workshop
89
- externalId: GeographicalRegion
90
- version: "1"
91
- nullable: true
92
- autoIncrement: false
93
- immutable: false
94
- defaultValue: null
95
- name: region
96
- description: "Region to which subgeographical region belongs to
97
-
98
- @name region"
99
- lastUpdatedTime: 1696712504333
100
- createdTime: 1696712504333
101
- - space: workshop
102
- externalId: Substation
103
- description:
104
- "A substation is a part of an electrical generation, transmission,
105
- and distribution system.
106
-
107
- @name Substation"
108
- name: Substation
109
- version: "1"
110
- writable: true
111
- usedFor: node
112
- isGlobal: false
113
- properties:
114
- name:
115
- container:
116
- space: workshop
117
- externalId: Substation
118
- containerPropertyIdentifier: name
119
- type:
120
- list: false
121
- collation: ucs_basic
122
- type: text
123
- nullable: false
124
- autoIncrement: false
125
- immutable: false
126
- source: null
127
- defaultValue: null
128
- name: name
129
- description: "The name that identifies Substation
130
-
131
- @name name"
132
- subGeographicalRegion:
133
- container:
134
- space: workshop
135
- externalId: Substation
136
- containerPropertyIdentifier: subGeographicalRegion
137
- type:
138
- container: null
139
- type: direct
140
- list: false
141
- source:
142
- space: workshop
143
- externalId: SubGeographicalRegion
144
- version: bbe4295878a47f
145
- nullable: true
146
- autoIncrement: false
147
- immutable: false
148
- defaultValue: null
149
- name: subGeographicalRegion
150
- description: "The subgeographical region containing the substation
151
-
152
- @name subGeographicalRegion"
153
- lastUpdatedTime: 1696712504333
154
- createdTime: 1696712504333
155
- - space: workshop
156
- externalId: Terminal
157
- name: Terminal
158
- version: "1"
159
- writable: true
160
- usedFor: node
161
- isGlobal: false
162
- properties:
163
- name:
164
- container:
165
- space: workshop
166
- externalId: Terminal
167
- containerPropertyIdentifier: name
168
- type:
169
- list: false
170
- collation: ucs_basic
171
- type: text
172
- nullable: false
173
- autoIncrement: false
174
- immutable: false
175
- source: null
176
- defaultValue: null
177
- name: name
178
- description: "The name that identifies Terminal
179
-
180
- @name name"
181
- aliasName:
182
- container:
183
- space: workshop
184
- externalId: Terminal
185
- containerPropertyIdentifier: aliasName
186
- type:
187
- list: false
188
- collation: ucs_basic
189
- type: text
190
- nullable: true
191
- autoIncrement: false
192
- immutable: false
193
- source: null
194
- defaultValue: null
195
- name: aliasName
196
- description: "The alternative name that identifies Substation
197
-
198
- @name aliasName"
199
- substation:
200
- container:
201
- space: workshop
202
- externalId: Terminal
203
- containerPropertyIdentifier: substation
204
- type:
205
- container: null
206
- type: direct
207
- list: false
208
- source:
209
- space: workshop
210
- externalId: Substation
211
- version: "1"
212
- nullable: true
213
- autoIncrement: false
214
- immutable: false
215
- defaultValue: null
216
- name: substation
217
- description: "Substation to which terminal belongs to
218
-
219
- @name substation"
220
- lastUpdatedTime: 1696712504333
221
- createdTime: 1696712504333
222
- isGlobal: false
223
- lastUpdatedTime: 1696712506430
224
- createdTime: 1696712506430