diff --git a/README.md b/README.md index b7c52cf..fd670f8 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.7.4.5 +4.7.4.6 ``` ## RML-Test Cases diff --git a/VERSION b/VERSION index d94ecf1..b61fb71 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -4.7.4.5 \ No newline at end of file +4.7.4.6 \ No newline at end of file diff --git a/rdfizer/rdfizer/__init__.py b/rdfizer/rdfizer/__init__.py index ebda5b7..80fa02c 100755 --- a/rdfizer/rdfizer/__init__.py +++ b/rdfizer/rdfizer/__init__.py @@ -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) @@ -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][ diff --git a/rdfizer/rdfizer/semantify.py b/rdfizer/rdfizer/semantify.py index 74ca422..ada4ae6 100755 --- a/rdfizer/rdfizer/semantify.py +++ b/rdfizer/rdfizer/semantify.py @@ -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) @@ -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][