I am trying to extract the manufacturer section of this dbpedia page http://dbpedia.org/page/Diageo
. However my SPARQL query returns nothing. Yet I can return most other values on the page, such as keyPersons which has the exact same layout.
PREFIX dbpedia-owl: <http://dbpedia.org/ontology/>
SELECT ?label
WHERE { <http://dbpedia.org/resource/Diageo>
dbpedia-owl:keyPerson ?label }
PREFIX dbpedia-owl: <http://dbpedia.org/ontology/>
SELECT ?label
WHERE { <http://dbpedia.org/resource/Diageo>
dbpedia-owl:manufacturer ?label }
Any ideas?
In DBpedia, an entity page displays statements in which an entity may be not only a subject, but also an object. In the latter case, respective property appears as "is ... of".
Conversely, the page you have linked to says that
dbr:Diageo
isdbo:manufacturer
ofdbr:Johnnie_Walker
etc. This means thatdbr:Johnnie_Walker dbo:manufacturer dbr:Diageo
holds, not thatdbr:Diageo dbo:manufacturer dbr:Johnnie_Walker
does.By the way,
rdfs:range
ofdbo:manufacturer
isdbo:Organization
.Thus, you should looking for triples that match reversed pattern:
Or, using property paths:
Try it on DBpedia