Advertisement
Dossy86

SPARQL-Abfrage:German_women_in_politics

Jan 16th, 2013
862
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SPARQL 0.68 KB | None | 0 0
  1. PREFIX dbo: <http://dbpedia.org/ontology/>
  2.  
  3. SELECT DISTINCT ?person (STR(?name) AS ?name) ?birth ?death  (STR(?description)
  4.     AS ?description) (STR(?place) AS ?place) ?long ?lat
  5.    
  6. WHERE {
  7.      ?person <http://purl.org/dc/terms/subject> <http://dbpedia.org/resource/Category:German_women_in_politics> .
  8.      ?person dbo:birthDate ?birth .
  9.      OPTIONAL {?person dbo:deathDate ?death .}
  10.      ?person dbo:birthPlace ?placeR .
  11.      OPTIONAL {?placeR geo:long ?long . ?placeR geo:lat ?lat . }
  12.      ?placeR dbpprop:name ?place .
  13.      ?person foaf:name ?name .
  14.      ?person rdfs:comment ?description .
  15.      FILTER ( LANG(?description) = "de" ) .
  16. }
  17.  
  18. GROUP BY ?person ORDER BY ?person
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement