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.
- cognite/neat/_version.py +1 -1
- cognite/neat/app/api/data_classes/rest.py +0 -19
- cognite/neat/app/api/explorer.py +6 -4
- cognite/neat/app/api/routers/crud.py +11 -21
- cognite/neat/app/api/routers/workflows.py +24 -94
- cognite/neat/graph/extractors/_classic_cdf/_assets.py +8 -2
- cognite/neat/graph/extractors/_mock_graph_generator.py +2 -2
- cognite/neat/graph/loaders/_base.py +17 -12
- cognite/neat/graph/loaders/_rdf2asset.py +223 -58
- cognite/neat/graph/loaders/_rdf2dms.py +1 -1
- cognite/neat/graph/stores/_base.py +5 -0
- cognite/neat/rules/analysis/_asset.py +31 -1
- cognite/neat/rules/importers/_inference2rules.py +31 -35
- cognite/neat/rules/models/information/_rules.py +1 -1
- cognite/neat/workflows/steps/data_contracts.py +17 -43
- cognite/neat/workflows/steps/lib/current/graph_extractor.py +28 -24
- cognite/neat/workflows/steps/lib/current/graph_loader.py +4 -21
- cognite/neat/workflows/steps/lib/current/graph_store.py +18 -134
- cognite/neat/workflows/steps_registry.py +5 -7
- {cognite_neat-0.87.4.dist-info → cognite_neat-0.88.0.dist-info}/METADATA +1 -1
- {cognite_neat-0.87.4.dist-info → cognite_neat-0.88.0.dist-info}/RECORD +24 -132
- cognite/neat/app/api/routers/core.py +0 -91
- cognite/neat/app/api/routers/data_exploration.py +0 -336
- cognite/neat/app/api/routers/rules.py +0 -203
- cognite/neat/legacy/__init__.py +0 -0
- cognite/neat/legacy/graph/__init__.py +0 -3
- cognite/neat/legacy/graph/examples/Knowledge-Graph-Nordic44-dirty.xml +0 -20182
- cognite/neat/legacy/graph/examples/Knowledge-Graph-Nordic44.xml +0 -20163
- cognite/neat/legacy/graph/examples/__init__.py +0 -10
- cognite/neat/legacy/graph/examples/skos-capturing-sheet-wind-topics.xlsx +0 -0
- cognite/neat/legacy/graph/exceptions.py +0 -90
- cognite/neat/legacy/graph/extractors/__init__.py +0 -6
- cognite/neat/legacy/graph/extractors/_base.py +0 -14
- cognite/neat/legacy/graph/extractors/_dexpi.py +0 -44
- cognite/neat/legacy/graph/extractors/_graph_capturing_sheet.py +0 -403
- cognite/neat/legacy/graph/extractors/_mock_graph_generator.py +0 -361
- cognite/neat/legacy/graph/loaders/__init__.py +0 -23
- cognite/neat/legacy/graph/loaders/_asset_loader.py +0 -511
- cognite/neat/legacy/graph/loaders/_base.py +0 -67
- cognite/neat/legacy/graph/loaders/_exceptions.py +0 -85
- cognite/neat/legacy/graph/loaders/core/__init__.py +0 -0
- cognite/neat/legacy/graph/loaders/core/labels.py +0 -58
- cognite/neat/legacy/graph/loaders/core/models.py +0 -136
- cognite/neat/legacy/graph/loaders/core/rdf_to_assets.py +0 -1046
- cognite/neat/legacy/graph/loaders/core/rdf_to_relationships.py +0 -559
- cognite/neat/legacy/graph/loaders/rdf_to_dms.py +0 -309
- cognite/neat/legacy/graph/loaders/validator.py +0 -87
- cognite/neat/legacy/graph/models.py +0 -6
- cognite/neat/legacy/graph/stores/__init__.py +0 -13
- cognite/neat/legacy/graph/stores/_base.py +0 -400
- cognite/neat/legacy/graph/stores/_graphdb_store.py +0 -52
- cognite/neat/legacy/graph/stores/_memory_store.py +0 -43
- cognite/neat/legacy/graph/stores/_oxigraph_store.py +0 -151
- cognite/neat/legacy/graph/stores/_oxrdflib.py +0 -247
- cognite/neat/legacy/graph/stores/_rdf_to_graph.py +0 -42
- cognite/neat/legacy/graph/transformations/__init__.py +0 -0
- cognite/neat/legacy/graph/transformations/entity_matcher.py +0 -101
- cognite/neat/legacy/graph/transformations/query_generator/__init__.py +0 -3
- cognite/neat/legacy/graph/transformations/query_generator/sparql.py +0 -575
- cognite/neat/legacy/graph/transformations/transformer.py +0 -322
- cognite/neat/legacy/rules/__init__.py +0 -0
- cognite/neat/legacy/rules/analysis.py +0 -231
- cognite/neat/legacy/rules/examples/Rules-Nordic44-to-graphql.xlsx +0 -0
- cognite/neat/legacy/rules/examples/Rules-Nordic44.xlsx +0 -0
- cognite/neat/legacy/rules/examples/__init__.py +0 -18
- cognite/neat/legacy/rules/examples/power-grid-containers.yaml +0 -124
- cognite/neat/legacy/rules/examples/power-grid-example.xlsx +0 -0
- cognite/neat/legacy/rules/examples/power-grid-model.yaml +0 -224
- cognite/neat/legacy/rules/examples/rules-template.xlsx +0 -0
- cognite/neat/legacy/rules/examples/sheet2cdf-transformation-rules.xlsx +0 -0
- cognite/neat/legacy/rules/examples/skos-rules.xlsx +0 -0
- cognite/neat/legacy/rules/examples/source-to-solution-mapping-rules.xlsx +0 -0
- cognite/neat/legacy/rules/examples/wind-energy.owl +0 -1511
- cognite/neat/legacy/rules/exceptions.py +0 -2972
- cognite/neat/legacy/rules/exporters/__init__.py +0 -20
- cognite/neat/legacy/rules/exporters/_base.py +0 -45
- cognite/neat/legacy/rules/exporters/_core/__init__.py +0 -5
- cognite/neat/legacy/rules/exporters/_core/rules2labels.py +0 -24
- cognite/neat/legacy/rules/exporters/_rules2dms.py +0 -885
- cognite/neat/legacy/rules/exporters/_rules2excel.py +0 -213
- cognite/neat/legacy/rules/exporters/_rules2graphql.py +0 -183
- cognite/neat/legacy/rules/exporters/_rules2ontology.py +0 -524
- cognite/neat/legacy/rules/exporters/_rules2pydantic_models.py +0 -748
- cognite/neat/legacy/rules/exporters/_rules2rules.py +0 -105
- cognite/neat/legacy/rules/exporters/_rules2triples.py +0 -38
- cognite/neat/legacy/rules/exporters/_validation.py +0 -146
- cognite/neat/legacy/rules/importers/__init__.py +0 -22
- cognite/neat/legacy/rules/importers/_base.py +0 -66
- cognite/neat/legacy/rules/importers/_dict2rules.py +0 -158
- cognite/neat/legacy/rules/importers/_dms2rules.py +0 -194
- cognite/neat/legacy/rules/importers/_graph2rules.py +0 -308
- cognite/neat/legacy/rules/importers/_json2rules.py +0 -39
- cognite/neat/legacy/rules/importers/_owl2rules/__init__.py +0 -3
- cognite/neat/legacy/rules/importers/_owl2rules/_owl2classes.py +0 -239
- cognite/neat/legacy/rules/importers/_owl2rules/_owl2metadata.py +0 -260
- cognite/neat/legacy/rules/importers/_owl2rules/_owl2properties.py +0 -217
- cognite/neat/legacy/rules/importers/_owl2rules/_owl2rules.py +0 -290
- cognite/neat/legacy/rules/importers/_spreadsheet2rules.py +0 -45
- cognite/neat/legacy/rules/importers/_xsd2rules.py +0 -20
- cognite/neat/legacy/rules/importers/_yaml2rules.py +0 -39
- cognite/neat/legacy/rules/models/__init__.py +0 -5
- cognite/neat/legacy/rules/models/_base.py +0 -151
- cognite/neat/legacy/rules/models/raw_rules.py +0 -316
- cognite/neat/legacy/rules/models/rdfpath.py +0 -237
- cognite/neat/legacy/rules/models/rules.py +0 -1289
- cognite/neat/legacy/rules/models/tables.py +0 -9
- cognite/neat/legacy/rules/models/value_types.py +0 -118
- cognite/neat/legacy/workflows/examples/Export_DMS/workflow.yaml +0 -89
- cognite/neat/legacy/workflows/examples/Export_Rules_to_Ontology/workflow.yaml +0 -152
- cognite/neat/legacy/workflows/examples/Extract_DEXPI_Graph_and_Export_Rules/workflow.yaml +0 -139
- cognite/neat/legacy/workflows/examples/Extract_RDF_Graph_and_Generate_Assets/workflow.yaml +0 -270
- cognite/neat/legacy/workflows/examples/Import_DMS/workflow.yaml +0 -65
- cognite/neat/legacy/workflows/examples/Ontology_to_Data_Model/workflow.yaml +0 -116
- cognite/neat/legacy/workflows/examples/Validate_Rules/workflow.yaml +0 -67
- cognite/neat/legacy/workflows/examples/Validate_Solution_Model/workflow.yaml +0 -64
- cognite/neat/legacy/workflows/examples/Visualize_Data_Model_Using_Mock_Graph/workflow.yaml +0 -95
- cognite/neat/legacy/workflows/examples/Visualize_Semantic_Data_Model/workflow.yaml +0 -111
- cognite/neat/workflows/examples/Extract_RDF_Graph_and_Generate_Assets/workflow.yaml +0 -270
- cognite/neat/workflows/migration/__init__.py +0 -0
- cognite/neat/workflows/migration/steps.py +0 -91
- cognite/neat/workflows/migration/wf_manifests.py +0 -33
- cognite/neat/workflows/steps/lib/legacy/__init__.py +0 -7
- cognite/neat/workflows/steps/lib/legacy/graph_contextualization.py +0 -82
- cognite/neat/workflows/steps/lib/legacy/graph_extractor.py +0 -746
- cognite/neat/workflows/steps/lib/legacy/graph_loader.py +0 -606
- cognite/neat/workflows/steps/lib/legacy/graph_store.py +0 -307
- cognite/neat/workflows/steps/lib/legacy/graph_transformer.py +0 -58
- cognite/neat/workflows/steps/lib/legacy/rules_exporter.py +0 -511
- cognite/neat/workflows/steps/lib/legacy/rules_importer.py +0 -612
- {cognite_neat-0.87.4.dist-info → cognite_neat-0.88.0.dist-info}/LICENSE +0 -0
- {cognite_neat-0.87.4.dist-info → cognite_neat-0.88.0.dist-info}/WHEEL +0 -0
- {cognite_neat-0.87.4.dist-info → cognite_neat-0.88.0.dist-info}/entry_points.txt +0 -0
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
from __future__ import annotations
|
|
2
|
-
|
|
3
|
-
from datetime import date, datetime
|
|
4
|
-
from typing import cast
|
|
5
|
-
|
|
6
|
-
from cognite.client.data_classes.data_modeling import (
|
|
7
|
-
Boolean,
|
|
8
|
-
Date,
|
|
9
|
-
FileReference,
|
|
10
|
-
Float64,
|
|
11
|
-
Int32,
|
|
12
|
-
Int64,
|
|
13
|
-
Json,
|
|
14
|
-
PropertyType,
|
|
15
|
-
SequenceReference,
|
|
16
|
-
Text,
|
|
17
|
-
TimeSeriesReference,
|
|
18
|
-
Timestamp,
|
|
19
|
-
)
|
|
20
|
-
from pydantic import BaseModel
|
|
21
|
-
|
|
22
|
-
from cognite.neat.legacy.rules.models._base import Entity, EntityTypes
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
class ValueTypeMapping(BaseModel):
|
|
26
|
-
"""Mapping between XSD, Python, DMS and Graphql types."""
|
|
27
|
-
|
|
28
|
-
xsd: str
|
|
29
|
-
python: type
|
|
30
|
-
dms: type
|
|
31
|
-
graphql: str
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
class ValueType(Entity):
|
|
35
|
-
"""Value type is a data/object type defined as a child of Entity model."""
|
|
36
|
-
|
|
37
|
-
mapping: ValueTypeMapping | None = None
|
|
38
|
-
|
|
39
|
-
@property
|
|
40
|
-
def python(self) -> type | None:
|
|
41
|
-
"""Returns the Python type for a given value type."""
|
|
42
|
-
if self.type_ == EntityTypes.data_value_type:
|
|
43
|
-
return cast(ValueTypeMapping, self.mapping).python
|
|
44
|
-
else:
|
|
45
|
-
return None
|
|
46
|
-
|
|
47
|
-
@property
|
|
48
|
-
def xsd(self) -> str | None:
|
|
49
|
-
"""Returns the XSD type for a given value type."""
|
|
50
|
-
if self.type_ == EntityTypes.data_value_type:
|
|
51
|
-
return cast(ValueTypeMapping, self.mapping).xsd
|
|
52
|
-
else:
|
|
53
|
-
return None
|
|
54
|
-
|
|
55
|
-
@property
|
|
56
|
-
def dms(self) -> type | None:
|
|
57
|
-
"""Returns the DMS type for a given value type."""
|
|
58
|
-
if self.type_ == EntityTypes.data_value_type:
|
|
59
|
-
return cast(ValueTypeMapping, self.mapping).dms
|
|
60
|
-
else:
|
|
61
|
-
return None
|
|
62
|
-
|
|
63
|
-
@property
|
|
64
|
-
def graphql(self) -> str | None:
|
|
65
|
-
"""Returns the Graphql type for a given value type."""
|
|
66
|
-
if self.type_ == EntityTypes.data_value_type:
|
|
67
|
-
return cast(ValueTypeMapping, self.mapping).graphql
|
|
68
|
-
else:
|
|
69
|
-
return None
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
_DATA_TYPES: list[dict] = [
|
|
73
|
-
{"name": "boolean", "python": bool, "GraphQL": "Boolean", "dms": Boolean},
|
|
74
|
-
{"name": "float", "python": float, "GraphQL": "Float", "dms": Float64},
|
|
75
|
-
{"name": "double", "python": float, "GraphQL": "Float", "dms": Float64},
|
|
76
|
-
{"name": "integer", "python": int, "GraphQL": "Int", "dms": Int32},
|
|
77
|
-
{"name": "nonPositiveInteger", "python": int, "GraphQL": "Int", "dms": Int32},
|
|
78
|
-
{"name": "nonNegativeInteger", "python": int, "GraphQL": "Int", "dms": Int32},
|
|
79
|
-
{"name": "negativeInteger", "python": int, "GraphQL": "Int", "dms": Int32},
|
|
80
|
-
{"name": "long", "python": int, "GraphQL": "Int", "dms": Int64},
|
|
81
|
-
{"name": "string", "python": str, "GraphQL": "String", "dms": Text},
|
|
82
|
-
{"name": "langString", "python": str, "GraphQL": "String", "dms": Text},
|
|
83
|
-
{"name": "anyURI", "python": str, "GraphQL": "String", "dms": Text},
|
|
84
|
-
{"name": "normalizedString", "python": str, "GraphQL": "String", "dms": Text},
|
|
85
|
-
{"name": "token", "python": str, "GraphQL": "String", "dms": Text},
|
|
86
|
-
{"name": "PlainLiteral", "python": str, "GraphQL": "String", "dms": Text},
|
|
87
|
-
# Graphql does not have a datetime/date type this is CDF specific
|
|
88
|
-
{"name": "dateTime", "python": datetime, "GraphQL": "Timestamp", "dms": Timestamp},
|
|
89
|
-
{"name": "dateTimeStamp", "python": datetime, "GraphQL": "Timestamp", "dms": Timestamp},
|
|
90
|
-
{"name": "date", "python": date, "GraphQL": "String", "dms": Date},
|
|
91
|
-
# CDF specific types, not in XSD
|
|
92
|
-
{"name": "timeseries", "python": TimeSeriesReference, "GraphQL": "TimeSeries", "dms": TimeSeriesReference},
|
|
93
|
-
{"name": "file", "python": FileReference, "GraphQL": "File", "dms": FileReference},
|
|
94
|
-
{"name": "sequence", "python": SequenceReference, "GraphQL": "Sequence", "dms": SequenceReference},
|
|
95
|
-
{"name": "json", "python": Json, "GraphQL": "Json", "dms": Json},
|
|
96
|
-
]
|
|
97
|
-
|
|
98
|
-
XSD_VALUE_TYPE_MAPPINGS: dict[str, ValueType] = {
|
|
99
|
-
data_type["name"]: ValueType(
|
|
100
|
-
prefix="xsd",
|
|
101
|
-
suffix=cast(str, data_type["name"]),
|
|
102
|
-
name=cast(str, data_type["name"]),
|
|
103
|
-
type_=EntityTypes.data_value_type,
|
|
104
|
-
mapping=ValueTypeMapping(
|
|
105
|
-
xsd=data_type["name"],
|
|
106
|
-
python=data_type["python"],
|
|
107
|
-
dms=data_type["dms"],
|
|
108
|
-
graphql=data_type["GraphQL"],
|
|
109
|
-
),
|
|
110
|
-
)
|
|
111
|
-
for data_type in _DATA_TYPES
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
DMS_VALUE_TYPE_MAPPINGS: dict[type[PropertyType], ValueType] = {}
|
|
116
|
-
for value_type in XSD_VALUE_TYPE_MAPPINGS.values():
|
|
117
|
-
if value_type.dms not in DMS_VALUE_TYPE_MAPPINGS:
|
|
118
|
-
DMS_VALUE_TYPE_MAPPINGS[cast(type[PropertyType], value_type.dms)] = cast(ValueType, value_type)
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
configs: []
|
|
2
|
-
description: null
|
|
3
|
-
implementation_module: null
|
|
4
|
-
name: Export DMS
|
|
5
|
-
steps:
|
|
6
|
-
- complex_configs: {}
|
|
7
|
-
configs: {}
|
|
8
|
-
description: null
|
|
9
|
-
enabled: true
|
|
10
|
-
id: step_861205
|
|
11
|
-
label: Upload Rules Spreadsheet
|
|
12
|
-
max_retries: 0
|
|
13
|
-
method: null
|
|
14
|
-
params:
|
|
15
|
-
file_type: rules
|
|
16
|
-
retry_delay: 3
|
|
17
|
-
stype: file_uploader
|
|
18
|
-
system_component_id: null
|
|
19
|
-
transition_to:
|
|
20
|
-
- step_295479
|
|
21
|
-
trigger: true
|
|
22
|
-
ui_config:
|
|
23
|
-
pos_x: 629
|
|
24
|
-
pos_y: 57
|
|
25
|
-
- complex_configs: {}
|
|
26
|
-
configs:
|
|
27
|
-
File name: ''
|
|
28
|
-
Report formatter: BasicHTML
|
|
29
|
-
Role: infer
|
|
30
|
-
description: null
|
|
31
|
-
enabled: true
|
|
32
|
-
id: step_295479
|
|
33
|
-
label: Validate
|
|
34
|
-
max_retries: 0
|
|
35
|
-
method: ExcelToRules
|
|
36
|
-
params: {}
|
|
37
|
-
retry_delay: 3
|
|
38
|
-
stype: stdstep
|
|
39
|
-
system_component_id: null
|
|
40
|
-
transition_to:
|
|
41
|
-
- step_50885
|
|
42
|
-
trigger: false
|
|
43
|
-
ui_config:
|
|
44
|
-
pos_x: 629
|
|
45
|
-
pos_y: 161
|
|
46
|
-
- complex_configs:
|
|
47
|
-
Components:
|
|
48
|
-
containers: true
|
|
49
|
-
data_models: true
|
|
50
|
-
spaces: true
|
|
51
|
-
views: true
|
|
52
|
-
configs:
|
|
53
|
-
Dry run: 'False'
|
|
54
|
-
Existing component handling: update
|
|
55
|
-
Multi-space components create: 'True'
|
|
56
|
-
description: null
|
|
57
|
-
enabled: true
|
|
58
|
-
id: step_50885
|
|
59
|
-
label: Export Data Model to CDF
|
|
60
|
-
max_retries: 0
|
|
61
|
-
method: RulesToDMS
|
|
62
|
-
params: {}
|
|
63
|
-
retry_delay: 3
|
|
64
|
-
stype: stdstep
|
|
65
|
-
system_component_id: null
|
|
66
|
-
transition_to:
|
|
67
|
-
- step_171560
|
|
68
|
-
trigger: false
|
|
69
|
-
ui_config:
|
|
70
|
-
pos_x: 629
|
|
71
|
-
pos_y: 243
|
|
72
|
-
- complex_configs: {}
|
|
73
|
-
configs: {}
|
|
74
|
-
description: null
|
|
75
|
-
enabled: true
|
|
76
|
-
id: step_171560
|
|
77
|
-
label: Export Transformations
|
|
78
|
-
max_retries: 0
|
|
79
|
-
method: RulesToCDFTransformations
|
|
80
|
-
params: {}
|
|
81
|
-
retry_delay: 3
|
|
82
|
-
stype: stdstep
|
|
83
|
-
system_component_id: null
|
|
84
|
-
transition_to: []
|
|
85
|
-
trigger: false
|
|
86
|
-
ui_config:
|
|
87
|
-
pos_x: 629
|
|
88
|
-
pos_y: 342
|
|
89
|
-
system_components: []
|
|
@@ -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: []
|