Question

I am currently retrieving information about a subject using following query:

DESCRIBE <http://dbpedia.org/resource/Albert_Einstein>

How can I edit this query to only get information where predicate is dbpedia property (http://dbpedia.org/property/*)?

Was it helpful?

Solution

To get one particular property:

SELECT ?o { <http://dbpedia.org/resource/Albert_Einstein> <http://dbpedia.org/property/...> ?o }

or to get all properties beginning with http://dbpedia.org/property/

SELECT ?p ?o { 
  <http://dbpedia.org/resource/Albert_Einstein> ?p ?o .
  FILTER(STRSTARTS(str(?p), "http://dbpedia.org/property/")))
}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top