Skip to content

Commit

Permalink
Fixed identation problem
Browse files Browse the repository at this point in the history
  • Loading branch information
eiglesias34 committed Nov 10, 2023
1 parent 00d914b commit cfac444
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ You can easily customize your own configurations from the set of features that S

## Version
```
4.7.2.6
4.7.2.7
```

## RML-Test Cases
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.7.2.6
4.7.2.7
12 changes: 6 additions & 6 deletions rdfizer/rdfizer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1612,12 +1612,12 @@ def semantify_xml(triples_map, triples_map_list, output_file_descriptor):
if triples_map.subject_map.rdf_class != [None] and subject != None:
predicate = "<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>"
for rdf_class in triples_map.subject_map.rdf_class:
if rdf_class != None:
obj = "<{}>".format(rdf_class)
if rdf_class != None:
obj = "<{}>".format(rdf_class)
dictionary_table_update(subject)
dictionary_table_update(obj)
dictionary_table_update(predicate + "_" + obj)
rdf_type = subject + " " + predicate + " " + obj + " .\n"
rdf_type = subject + " " + predicate + " " + obj + " .\n"
for graph in triples_map.subject_map.graph:
if graph != None and "defaultGraph" not in graph:
if "{" in graph:
Expand Down Expand Up @@ -2074,18 +2074,18 @@ def semantify_xml(triples_map, triples_map_list, output_file_descriptor):
triple = subject + " " + predicate + " " + object + ".\n"
if predicate_object_map.graph[predicate[1:-1]] != None and "defaultGraph" not in \
predicate_object_map.graph[predicate[1:-1]]:
if "{" in predicate_object_map.graph[predicate[1:-1]]:
if "{" in predicate_object_map.graph[predicate[1:-1]]:
triple = triple[:-2] + " <" + string_substitution_xml(
predicate_object_map.graph[predicate[1:-1]], "{(.+?)}", child, "subject",
triples_map.iterator, parent_map, namespace) + ">.\n"
else:
triple = triple[:-2] + " <" + predicate_object_map.graph[predicate[1:-1]] + ">.\n"
if duplicate == "yes":
if predicate in general_predicates:
if dic_table[
if dic_table[
predicate + "_" + predicate_object_map.object_map.value] not in g_triples:
output_file_descriptor.write(triple)
g_triples.update({dic_table[
g_triples.update({dic_table[
predicate + "_" + predicate_object_map.object_map.value]: {
dic_table[subject] + "_" + dic_table[object]: ""}})
i += 1
Expand Down
12 changes: 6 additions & 6 deletions rdfizer/rdfizer/semantify.py
Original file line number Diff line number Diff line change
Expand Up @@ -1612,12 +1612,12 @@ def semantify_xml(triples_map, triples_map_list, output_file_descriptor):
if triples_map.subject_map.rdf_class != [None] and subject != None:
predicate = "<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>"
for rdf_class in triples_map.subject_map.rdf_class:
if rdf_class != None:
obj = "<{}>".format(rdf_class)
if rdf_class != None:
obj = "<{}>".format(rdf_class)
dictionary_table_update(subject)
dictionary_table_update(obj)
dictionary_table_update(predicate + "_" + obj)
rdf_type = subject + " " + predicate + " " + obj + " .\n"
rdf_type = subject + " " + predicate + " " + obj + " .\n"
for graph in triples_map.subject_map.graph:
if graph != None and "defaultGraph" not in graph:
if "{" in graph:
Expand Down Expand Up @@ -2074,18 +2074,18 @@ def semantify_xml(triples_map, triples_map_list, output_file_descriptor):
triple = subject + " " + predicate + " " + object + ".\n"
if predicate_object_map.graph[predicate[1:-1]] != None and "defaultGraph" not in \
predicate_object_map.graph[predicate[1:-1]]:
if "{" in predicate_object_map.graph[predicate[1:-1]]:
if "{" in predicate_object_map.graph[predicate[1:-1]]:
triple = triple[:-2] + " <" + string_substitution_xml(
predicate_object_map.graph[predicate[1:-1]], "{(.+?)}", child, "subject",
triples_map.iterator, parent_map, namespace) + ">.\n"
else:
triple = triple[:-2] + " <" + predicate_object_map.graph[predicate[1:-1]] + ">.\n"
if duplicate == "yes":
if predicate in general_predicates:
if dic_table[
if dic_table[
predicate + "_" + predicate_object_map.object_map.value] not in g_triples:
output_file_descriptor.write(triple)
g_triples.update({dic_table[
g_triples.update({dic_table[
predicate + "_" + predicate_object_map.object_map.value]: {
dic_table[subject] + "_" + dic_table[object]: ""}})
i += 1
Expand Down

0 comments on commit cfac444

Please sign in to comment.