I do not get all sameAs objects when reasoning with sameAs

Hi, I am just trying the sameAs reasoning.
I have two triples which have the following:

<http://www.khaos.es/ontologies/lucentia/ontologies/water.owl#Agost> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.khaos.es/ontologies/lucentia/ontologies/water.owl#Municipio> .
<http://www.khaos.es/ontologies/lucentia/ontologies/water.owl#Villajoyosa> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.khaos.es/ontologies/lucentia/ontologies/water.owl#Municipio> .

Then I do two sameAs to each of these triples:

<http://www.khaos.es/ontologies/lucentia/ontologies/water.owl#Villajoyosa> <http://www.w3.org/2002/07/owl#sameAs> <http://www.geonames.org/6355512/villajoyosa.html> .
<http://www.khaos.es/ontologies/lucentia/ontologies/water.owl#Villajoyosa> <http://www.w3.org/2002/07/owl#sameAs> <http://www.wikidata.org/entity/Q935589> .
<http://www.khaos.es/ontologies/lucentia/ontologies/water.owl#Agost> <http://www.w3.org/2002/07/owl#sameAs> <http://www.wikidata.org/entity/Q1228383> .
<http://www.khaos.es/ontologies/lucentia/ontologies/water.owl#Agost> <http://www.w3.org/2002/07/owl#sameAs> <http://www.geonames.org/2522419/agost.html> .

So, when querying for these 2 subjects I should get: the originals (2) and the 2 sameAs per each, then 6 results.

The problem is that I am just getting 2 results. It is obvious that is inferring knowledge, but I do not get why is not showing all the results.

Here I leave you the query and the results:

Thanks for your help.

As per the docs, sameAs reasoning chooses one “canonical” URI to represent each entity, and will always display only that. Any information associated with any of them will appear to be associated with the canonical URI.

So, is it impossible to show all them?

The point is that you don’t need to see them all, as behind the scenes Stardog considers them to be the same entity. In theory you could include an explicit ?x owl:sameAs ?y in your query, and you’d see them all then.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.