ontoripple 0.1__py3-none-any.whl → 0.2__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.
- ontoripple/__main__.py +7 -7
- {ontoripple-0.1.dist-info → ontoripple-0.2.dist-info}/METADATA +1 -1
- ontoripple-0.2.dist-info/RECORD +8 -0
- ontoripple-0.1.dist-info/RECORD +0 -8
- {ontoripple-0.1.dist-info → ontoripple-0.2.dist-info}/LICENSE +0 -0
- {ontoripple-0.1.dist-info → ontoripple-0.2.dist-info}/WHEEL +0 -0
ontoripple/__main__.py
CHANGED
@@ -20,7 +20,7 @@ def define_args():
|
|
20
20
|
|
21
21
|
if __name__ == "__main__":
|
22
22
|
args = define_args().parse_args()
|
23
|
-
change_data = Graph().parse(args.changes_kg_path
|
23
|
+
change_data = Graph().parse(args.changes_kg_path)
|
24
24
|
|
25
25
|
# Case 1: Both mapping and SHACL parameters are provided
|
26
26
|
if (
|
@@ -33,17 +33,17 @@ if __name__ == "__main__":
|
|
33
33
|
logger.info("Loading old mapping rules from YARRRML using YATTER")
|
34
34
|
yaml = YAML(typ='safe', pure=True)
|
35
35
|
output_mappings = Graph().parse(
|
36
|
-
yatter.translate(yaml.load(open(args.old_mapping_path)), RML_URI)
|
36
|
+
yatter.translate(yaml.load(open(args.old_mapping_path)), RML_URI)
|
37
37
|
)
|
38
38
|
else:
|
39
|
-
output_mappings = Graph().parse(args.old_mapping_path
|
39
|
+
output_mappings = Graph().parse(args.old_mapping_path)
|
40
40
|
ontology = None
|
41
41
|
if args.ontology_path:
|
42
42
|
ontology = Graph().parse(args.ontology_path)
|
43
43
|
|
44
44
|
logger.info("Starting the propagation of changes over RML mappings and SHACL shapes")
|
45
45
|
review_mappings = Graph()
|
46
|
-
output_shapes = Graph().parse(args.old_shacl_path
|
46
|
+
output_shapes = Graph().parse(args.old_shacl_path)
|
47
47
|
|
48
48
|
new_mapping,new_shapes = propagate(change_data, output_mappings, review_mappings, ontology, output_shapes)
|
49
49
|
new_mapping.serialize(destination=args.new_mappings_path)
|
@@ -63,10 +63,10 @@ if __name__ == "__main__":
|
|
63
63
|
logger.info("Loading old mapping rules from YARRRML using YATTER")
|
64
64
|
yaml = YAML(typ='safe', pure=True)
|
65
65
|
output_mappings = Graph().parse(
|
66
|
-
yatter.translate(yaml.load(open(args.old_mapping_path)), RML_URI)
|
66
|
+
yatter.translate(yaml.load(open(args.old_mapping_path)), RML_URI)
|
67
67
|
)
|
68
68
|
else:
|
69
|
-
output_mappings = Graph().parse(args.old_mapping_path
|
69
|
+
output_mappings = Graph().parse(args.old_mapping_path)
|
70
70
|
|
71
71
|
ontology = None
|
72
72
|
if args.ontology_path:
|
@@ -86,7 +86,7 @@ if __name__ == "__main__":
|
|
86
86
|
# Case 3: Only SHACL parameters are provided
|
87
87
|
elif args.old_shacl_path and args.new_shapes_path:
|
88
88
|
logger.info("Starting the propagation of changes over the SHACL shapes")
|
89
|
-
output_shapes = Graph().parse(args.old_shacl_path
|
89
|
+
output_shapes = Graph().parse(args.old_shacl_path)
|
90
90
|
ontology = None
|
91
91
|
if args.ontology_path:
|
92
92
|
ontology = Graph().parse(args.ontology_path)
|
@@ -0,0 +1,8 @@
|
|
1
|
+
ontoripple/__init__.py,sha256=JFkm5NVZKO1xGYOsmjSenqs8h7axzU5e2CTEzpgMpsw,8657
|
2
|
+
ontoripple/__main__.py,sha256=aVKV68AqUA-oCx0cnPAYhQVfHiWJ7qSexPW2CnSNt4k,4730
|
3
|
+
ontoripple/constants.py,sha256=oCXAjsiRM3mlefFnlI3aaPP5zt7Upbg1E4jw3uljZCk,13096
|
4
|
+
ontoripple/evol_kg.py,sha256=Z072bOeWBiKnbJSmoxs-mdzSwrT4_fbIgusEnnL6U6Y,120016
|
5
|
+
ontoripple-0.2.dist-info/LICENSE,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
|
6
|
+
ontoripple-0.2.dist-info/METADATA,sha256=nwoyTC0eqQg0j9_wcSzpzTS5ihDU_kuoaVfSSmk7x0I,3338
|
7
|
+
ontoripple-0.2.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
|
8
|
+
ontoripple-0.2.dist-info/RECORD,,
|
ontoripple-0.1.dist-info/RECORD
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
ontoripple/__init__.py,sha256=JFkm5NVZKO1xGYOsmjSenqs8h7axzU5e2CTEzpgMpsw,8657
|
2
|
-
ontoripple/__main__.py,sha256=DEAhA4UQS8iY3KQGsvhdOC_goFWuU5ANlrh2foOII_c,4828
|
3
|
-
ontoripple/constants.py,sha256=oCXAjsiRM3mlefFnlI3aaPP5zt7Upbg1E4jw3uljZCk,13096
|
4
|
-
ontoripple/evol_kg.py,sha256=Z072bOeWBiKnbJSmoxs-mdzSwrT4_fbIgusEnnL6U6Y,120016
|
5
|
-
ontoripple-0.1.dist-info/LICENSE,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
|
6
|
-
ontoripple-0.1.dist-info/METADATA,sha256=nJvUdq07eWz3lj0jaf4ddln_qAuCErQSQMSyU8ppw_M,3338
|
7
|
-
ontoripple-0.1.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
|
8
|
-
ontoripple-0.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|