Is there a way in SPARQL to automatically connect instances of one ontology in DBpedia and another in a different database. For example
http://yago-knowledge.org/resource/Daphne_Gere and http://dbpedia.org/page/Daphne_Gere
are similar and connect with the propriety sameAs
, but I would like to be able to do it for all instances of the ontologies where they belong
http://yago-knowledge.org/resource/wordnet_actor_109765278 and http://dbpedia.org/ontology/Actor
So for example the result will be a table that has all the instances from one class with their equivalent in the other class.
How about a simple query to DBpedia, which already contains (most of?) the links that you want?
select ?dbid ?yagoid where {
?dbid a dbpedia-owl:Actor ;
owl:sameAs ?yagoid .
filter strstarts( str(?yagoid), 'http://yago-knowledge.org/resource/' )
}
limit 100
dbid yagoid
-------------------------------------------------------------------------------------------
http://dbpedia.org/resource/Amy_Fisher http://yago-knowledge.org/resource/Amy_Fisher
http://dbpedia.org/resource/Angel_Dark http://yago-knowledge.org/resource/Angel_Dark
http://dbpedia.org/resource/Anita_Mui http://yago-knowledge.org/resource/Anita_Mui
http://dbpedia.org/resource/Annabel_Chong http://yago-knowledge.org/resource/Annabel_Chong
… …