cognite-neat 0.123.24__py3-none-any.whl → 0.123.26__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/core/_data_model/importers/_rdf/_owl2data_model.py +35 -2
- cognite/neat/core/_data_model/importers/_rdf/_shared.py +8 -4
- {cognite_neat-0.123.24.dist-info → cognite_neat-0.123.26.dist-info}/METADATA +1 -1
- {cognite_neat-0.123.24.dist-info → cognite_neat-0.123.26.dist-info}/RECORD +7 -7
- {cognite_neat-0.123.24.dist-info → cognite_neat-0.123.26.dist-info}/WHEEL +0 -0
- {cognite_neat-0.123.24.dist-info → cognite_neat-0.123.26.dist-info}/licenses/LICENSE +0 -0
cognite/neat/_version.py
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
__version__ = "0.123.
|
|
1
|
+
__version__ = "0.123.26"
|
|
2
2
|
__engine__ = "^2.0.4"
|
|
@@ -33,8 +33,41 @@ PROPERTIES_QUERY = """
|
|
|
33
33
|
WHERE {{
|
|
34
34
|
?property_ a ?property_Type.
|
|
35
35
|
FILTER (?property_Type IN (owl:ObjectProperty, owl:DatatypeProperty ) )
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
# Handling owl:domain when it is expressed as
|
|
40
|
+
# owl restriction
|
|
41
|
+
OPTIONAL {{
|
|
42
|
+
?property_ rdfs:domain ?domain .
|
|
43
|
+
FILTER(isBlank(?domain))
|
|
44
|
+
?domain owl:unionOf|owl:intersectionOf ?concepts .
|
|
45
|
+
?concepts rdf:rest*/rdf:first ?concept.
|
|
46
|
+
}}
|
|
47
|
+
|
|
48
|
+
# Handling the domain when it is a single concept
|
|
49
|
+
OPTIONAL {{
|
|
50
|
+
?property_ rdfs:domain ?domain .
|
|
51
|
+
FILTER(!isBlank(?domain))
|
|
52
|
+
BIND(?domain AS ?concept)
|
|
53
|
+
}}
|
|
54
|
+
|
|
55
|
+
# Handling owl:range when it is expressed as
|
|
56
|
+
# owl restriction
|
|
57
|
+
OPTIONAL {{
|
|
58
|
+
?property_ rdfs:range ?range .
|
|
59
|
+
FILTER(isBlank(?range))
|
|
60
|
+
?range owl:unionOf|owl:intersectionOf ?value_types .
|
|
61
|
+
?value_types rdf:rest*/rdf:first ?value_type.
|
|
62
|
+
}}
|
|
63
|
+
|
|
64
|
+
# Handling the range when it is a single concept
|
|
65
|
+
OPTIONAL {{
|
|
66
|
+
?property_ rdfs:range ?range .
|
|
67
|
+
FILTER(!isBlank(?range))
|
|
68
|
+
BIND(?range AS ?value_type)
|
|
69
|
+
}}
|
|
70
|
+
|
|
38
71
|
OPTIONAL {{?property_ rdfs:label|skos:prefLabel ?name }}.
|
|
39
72
|
OPTIONAL {{?property_ rdfs:comment|skos:definition ?description}}.
|
|
40
73
|
OPTIONAL {{?property_ owl:maxCardinality ?maxCount}}.
|
|
@@ -183,15 +183,19 @@ def handle_meta(
|
|
|
183
183
|
if not resources[resource_id][feature] and res[feature]:
|
|
184
184
|
resources[resource_id][feature] = res[feature]
|
|
185
185
|
|
|
186
|
-
|
|
187
|
-
|
|
186
|
+
current_value = resources[resource_id][feature]
|
|
187
|
+
new_value = res[feature]
|
|
188
|
+
|
|
189
|
+
if not current_value and new_value:
|
|
190
|
+
resources[resource_id][feature] = new_value
|
|
191
|
+
elif current_value and new_value and current_value != new_value:
|
|
188
192
|
issue_list.append(
|
|
189
193
|
ResourceRedefinedWarning(
|
|
190
194
|
identifier=resource_id,
|
|
191
195
|
resource_type=resource_type,
|
|
192
196
|
feature=feature,
|
|
193
|
-
current_value=
|
|
194
|
-
new_value=
|
|
197
|
+
current_value=current_value,
|
|
198
|
+
new_value=new_value,
|
|
195
199
|
)
|
|
196
200
|
)
|
|
197
201
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cognite-neat
|
|
3
|
-
Version: 0.123.
|
|
3
|
+
Version: 0.123.26
|
|
4
4
|
Summary: Knowledge graph transformation
|
|
5
5
|
Project-URL: Documentation, https://cognite-neat.readthedocs-hosted.com/
|
|
6
6
|
Project-URL: Homepage, https://cognite-neat.readthedocs-hosted.com/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
cognite/neat/__init__.py,sha256=12StS1dzH9_MElqxGvLWrNsxCJl9Hv8A2a9D0E5OD_U,193
|
|
2
|
-
cognite/neat/_version.py,sha256=
|
|
2
|
+
cognite/neat/_version.py,sha256=ZRJQU5AqGl89hbyhyolzPHb6kKhu67DqV9zYl0ab7Nw,47
|
|
3
3
|
cognite/neat/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
cognite/neat/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
cognite/neat/core/_config.py,sha256=WT1BS8uADcFvGoUYOOfwFOVq_VBl472TisdoA3wLick,280
|
|
@@ -44,8 +44,8 @@ cognite/neat/core/_data_model/importers/_spreadsheet2data_model.py,sha256=wPb1ie
|
|
|
44
44
|
cognite/neat/core/_data_model/importers/_rdf/__init__.py,sha256=1yOjV2PKCxwH7uCTXVZhSdxtn5etmFX40cksvwtKcZ8,199
|
|
45
45
|
cognite/neat/core/_data_model/importers/_rdf/_base.py,sha256=XTdKqN4nf0d2Vvk56LShrDoyCQCg9MXvKwxXT0uMnGg,6016
|
|
46
46
|
cognite/neat/core/_data_model/importers/_rdf/_inference2rdata_model.py,sha256=PCgM9-qGSLlupN7tYCFLHjivgICtMiahNry1ub8JCYk,28934
|
|
47
|
-
cognite/neat/core/_data_model/importers/_rdf/_owl2data_model.py,sha256=
|
|
48
|
-
cognite/neat/core/_data_model/importers/_rdf/_shared.py,sha256=
|
|
47
|
+
cognite/neat/core/_data_model/importers/_rdf/_owl2data_model.py,sha256=BVXECneCZE5xNDV79Q0WHEjEPdsRKjQOITvjUSpEdZQ,4025
|
|
48
|
+
cognite/neat/core/_data_model/importers/_rdf/_shared.py,sha256=Cni9yaIKnKh6tHngxhxgseVveB7ZV_doA92fUbMd8gY,9774
|
|
49
49
|
cognite/neat/core/_data_model/models/__init__.py,sha256=hmF7MDR1XmpLxYdMkOEuPuHUqOQKE4AgsuUqdc-ySSQ,1249
|
|
50
50
|
cognite/neat/core/_data_model/models/_base_unverified.py,sha256=1Wfbp-tJaEF6hd1bFdp2FhTgPkInf-1ZokuEoVJRPxQ,6842
|
|
51
51
|
cognite/neat/core/_data_model/models/_base_verified.py,sha256=nzPrlj7ZvYull_Fdh2zeDXz98hux-eQOdTGy9jhUtYA,15127
|
|
@@ -195,7 +195,7 @@ cognite/neat/session/engine/__init__.py,sha256=D3MxUorEs6-NtgoICqtZ8PISQrjrr4dvc
|
|
|
195
195
|
cognite/neat/session/engine/_import.py,sha256=1QxA2_EK613lXYAHKQbZyw2yjo5P9XuiX4Z6_6-WMNQ,169
|
|
196
196
|
cognite/neat/session/engine/_interface.py,sha256=3W-cYr493c_mW3P5O6MKN1xEQg3cA7NHR_ev3zdF9Vk,533
|
|
197
197
|
cognite/neat/session/engine/_load.py,sha256=g52uYakQM03VqHt_RDHtpHso1-mFFifH5M4T2ScuH8A,5198
|
|
198
|
-
cognite_neat-0.123.
|
|
199
|
-
cognite_neat-0.123.
|
|
200
|
-
cognite_neat-0.123.
|
|
201
|
-
cognite_neat-0.123.
|
|
198
|
+
cognite_neat-0.123.26.dist-info/METADATA,sha256=_X-TDE3Cg0RJyvXEA2xzG6Dld67JV1-p7VDXuqDkFFw,9172
|
|
199
|
+
cognite_neat-0.123.26.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
200
|
+
cognite_neat-0.123.26.dist-info/licenses/LICENSE,sha256=W8VmvFia4WHa3Gqxq1Ygrq85McUNqIGDVgtdvzT-XqA,11351
|
|
201
|
+
cognite_neat-0.123.26.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|