Skip to content

Commit

Permalink
Fixed issue with NonAssertedTriplesMap conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
eiglesias34 committed Jun 13, 2024
1 parent f6d955f commit cc1a497
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 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.4.5
4.7.4.6
```

## 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.4.5
4.7.4.6
8 changes: 4 additions & 4 deletions rdfizer/rdfizer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2191,8 +2191,8 @@ def mapping_parser(mapping_file):
else:
for triples_map in triples_map_list:
if str(triples_map.triples_map_id) == str(result_triples_map.triples_map_id):
if result_triples_map.rdf_class not in triples_map.subject_map.rdf_class:
triples_map.subject_map.rdf_class.append(result_triples_map.rdf_class)
if str(result_triples_map.rdf_class) not in triples_map.subject_map.rdf_class:
triples_map.subject_map.rdf_class.append(str(result_triples_map.rdf_class))
if result_triples_map.graph not in triples_map.subject_map.graph:
triples_map.graph.append(result_triples_map.graph)

Expand Down Expand Up @@ -8783,8 +8783,8 @@ def semantify(config_path, log_path='error.log'):
sorted_sources[source_type][source][triples_map],
generated_subjects)
else:
if "NonAssertedTriplesMap" not in sorted_sources[source_type][source][triples_map].mappings_type:
for triples_map in sorted_sources[source_type][source]:
for triples_map in sorted_sources[source_type][source]:
if "NonAssertedTriplesMap" not in sorted_sources[source_type][source][triples_map].mappings_type:
if (len(sorted_sources[source_type][source][
triples_map].predicate_object_maps_list) > 0 and
sorted_sources[source_type][source][
Expand Down
8 changes: 4 additions & 4 deletions rdfizer/rdfizer/semantify.py
Original file line number Diff line number Diff line change
Expand Up @@ -2191,8 +2191,8 @@ def mapping_parser(mapping_file):
else:
for triples_map in triples_map_list:
if str(triples_map.triples_map_id) == str(result_triples_map.triples_map_id):
if result_triples_map.rdf_class not in triples_map.subject_map.rdf_class:
triples_map.subject_map.rdf_class.append(result_triples_map.rdf_class)
if str(result_triples_map.rdf_class) not in triples_map.subject_map.rdf_class:
triples_map.subject_map.rdf_class.append(str(result_triples_map.rdf_class))
if result_triples_map.graph not in triples_map.subject_map.graph:
triples_map.graph.append(result_triples_map.graph)

Expand Down Expand Up @@ -8783,8 +8783,8 @@ def semantify(config_path, log_path='error.log'):
sorted_sources[source_type][source][triples_map],
generated_subjects)
else:
if "NonAssertedTriplesMap" not in sorted_sources[source_type][source][triples_map].mappings_type:
for triples_map in sorted_sources[source_type][source]:
for triples_map in sorted_sources[source_type][source]:
if "NonAssertedTriplesMap" not in sorted_sources[source_type][source][triples_map].mappings_type:
if (len(sorted_sources[source_type][source][
triples_map].predicate_object_maps_list) > 0 and
sorted_sources[source_type][source][
Expand Down

0 comments on commit cc1a497

Please sign in to comment.