Reputation: 736
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/*)?
Upvotes: 0
Views: 481
Reputation: 16630
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/")))
}
Upvotes: 3