diff --git a/lib/ontologies_linked_data/mappings/mappings.rb b/lib/ontologies_linked_data/mappings/mappings.rb index df8cb1df..77709c14 100644 --- a/lib/ontologies_linked_data/mappings/mappings.rb +++ b/lib/ontologies_linked_data/mappings/mappings.rb @@ -380,7 +380,7 @@ def self.get_rest_mapping(mapping_id) GRAPH ?s2 { ?c2 <#{rest_predicate}> ?uuid . } -FILTER(?uuid = <#{mapping_id}>) +FILTER(?uuid = <#{LinkedData::Models::Base.replace_url_prefix_to_id(mapping_id)}>) FILTER(?s1 != ?s2) } LIMIT 1 eos