I have a question:
I want to retrieve the type of a certain page by making "rdf:type". If my source is "London", I write this query:
prefix dbpediaont: <http://dbpedia.org/ontology/>
prefix dbpedia: <http://dbpedia.org/resource/>
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
select distinct ?mat where {
dbpedia:London rdf:type ?mat
}
I get this result: QUERY SPARQL.
Now, if I use the resource "Leondeon", which is a resource redirection "London" (I see that it is present in "is dbpedia-owl: wikiPageRedirects of"), I do not get any results.
prefix dbpediaont: <http://dbpedia.org/ontology/>
prefix dbpedia: <http://dbpedia.org/resource/>
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
select distinct ?mat where {
dbpedia:Leondeon rdf:type ?mat
}
I thought that since "Leondeon" is a redirection of "London" (I interpret as if they were the same), I thought that any "rdf:type" of "Leondeon" give me same results as "London". I wonder why I get a different result in this case, where the resources used belong to the same URI "http://dbpedia.org/resource/London".