Search code examples
sparqldbpedia

Why is dbpedia-owl:wikiPageRedirects not returning the full set of redirect links? (Sparql)


I am using the following query :

select ?value where { <http://dbpedia.org/resource/Paris>  dbpedia-owl:wikiPageRedirects* ?value } 

in order to retrieve the wikiPageRedirects property of Paris.


Based on dbpedia Paris has more than 20 redirect links. Why am I only retrieving the first one?



Solution

  • Your direction was wrong.

    select distinct *
    where { 
      ?x dbpedia-owl:wikiPageRedirects <http://dbpedia.org/resource/Paris>
    }