Skip to content

Commit d8cce90

Browse files
committed
Small fix for RML-Star
1 parent 7fc0993 commit d8cce90

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ You can easily customize your own configurations from the set of features that S
8484

8585
## Version
8686
```
87-
4.7.5.7
87+
4.7.5.8
8888
```
8989

9090
## RML-Test Cases

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.7.5.7
1+
4.7.5.8

rdfizer/rdfizer/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,10 @@ def hash_maker(parent_data, parent_subject, child_object, quoted, triples_map_li
669669
else:
670670
hash_table.update({row[parent] : {triples : "subject"}})
671671
if isinstance(child_object.child,list):
672-
join_table.update({parent_subject.triples_map_id + "_" + child_object.child[0] : hash_table})
672+
if quoted == "":
673+
join_table.update({parent_subject.triples_map_id + "_" + child_object.child[0] : hash_table})
674+
else:
675+
join_table.update({"quoted_" + parent_subject.triples_map_id + "_" + child_object.child[0] : hash_table})
673676
else:
674677
join_table.update({"quoted_" + parent_subject.triples_map_id + "_" + child_object.child : hash_table})
675678

rdfizer/rdfizer/semantify.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,10 @@ def hash_maker(parent_data, parent_subject, child_object, quoted, triples_map_li
669669
else:
670670
hash_table.update({row[parent] : {triples : "subject"}})
671671
if isinstance(child_object.child,list):
672-
join_table.update({parent_subject.triples_map_id + "_" + child_object.child[0] : hash_table})
672+
if quoted == "":
673+
join_table.update({parent_subject.triples_map_id + "_" + child_object.child[0] : hash_table})
674+
else:
675+
join_table.update({"quoted_" + parent_subject.triples_map_id + "_" + child_object.child[0] : hash_table})
673676
else:
674677
join_table.update({"quoted_" + parent_subject.triples_map_id + "_" + child_object.child : hash_table})
675678

0 commit comments

Comments
 (0)