Pregunta

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/*)?

¿Fue útil?

Solución

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/")))
}
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top