diff --git a/README.md b/README.md index 0623253..a394758 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,7 @@ You can easily customize your own configurations from the set of features that S ## Version ``` -4.6.4 +4.6.4.1 ``` ## RML-Test Cases diff --git a/VERSION b/VERSION index 101d404..7e4bae4 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -4.6.4 \ No newline at end of file +4.6.4.1 \ No newline at end of file diff --git a/rdfizer/rdfizer/__init__.py b/rdfizer/rdfizer/__init__.py index 68d8b42..b827073 100755 --- a/rdfizer/rdfizer/__init__.py +++ b/rdfizer/rdfizer/__init__.py @@ -1460,13 +1460,22 @@ def semantify_json(triples_map, triples_map_list, delimiter, output_file_descrip new_iterator += tp + "." if "$" != tp and "" != tp: if "[*][*]" in tp: - row = row[tp.split("[*][*]")[0]] + if tp.split("[*][*]")[0] in row: + row = row[tp.split("[*][*]")[0]] + else: + row = [] elif "[*]" in tp: - row = row[tp.split("[*]")[0]] + if tp.split("[*]")[0] in row: + row = row[tp.split("[*]")[0]] + else: + row = [] elif "*" == tp: pass else: - row = row[tp] + if tp in row: + row = row[tp] + else: + row = [] if new_iterator != ".": if "*" == new_iterator[-2]: for sub_row in row: diff --git a/rdfizer/rdfizer/semantify.py b/rdfizer/rdfizer/semantify.py index 68d8b42..b827073 100755 --- a/rdfizer/rdfizer/semantify.py +++ b/rdfizer/rdfizer/semantify.py @@ -1460,13 +1460,22 @@ def semantify_json(triples_map, triples_map_list, delimiter, output_file_descrip new_iterator += tp + "." if "$" != tp and "" != tp: if "[*][*]" in tp: - row = row[tp.split("[*][*]")[0]] + if tp.split("[*][*]")[0] in row: + row = row[tp.split("[*][*]")[0]] + else: + row = [] elif "[*]" in tp: - row = row[tp.split("[*]")[0]] + if tp.split("[*]")[0] in row: + row = row[tp.split("[*]")[0]] + else: + row = [] elif "*" == tp: pass else: - row = row[tp] + if tp in row: + row = row[tp] + else: + row = [] if new_iterator != ".": if "*" == new_iterator[-2]: for sub_row in row: