SPARQL examples

From Wer Leitet?
Revision as of 12:49, 5 August 2024 by Admin (talk | contribs) (Created page with "==Persons== ===Persons in advisory boards in a time range=== {{SPARQL|query= SELECT DISTINCT ?person ?personLabel ?beirat WHERE { ?person rdfs:label ?personLabel; wdt:P3 wd:Q2; wdt:P463 ?surname; p:P1012 [ps:P1012 ?beirat; pq:P4 ?pubDate]. FILTER((LANG(?personLabel)) = "de") FILTER("1940-01-01"^^xsd:dateTime <= ?pubDate && ?pubDate < "1941-01-01"^^xsd:dateTime). } ORDER BY ?surname }}")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Persons

Persons in advisory boards in a time range

SELECT DISTINCT ?person ?personLabel ?beirat WHERE {
  ?person rdfs:label ?personLabel;
     wdt:P3 wd:Q2; 
     wdt:P463 ?surname;
     p:P1012 [ps:P1012 ?beirat;
              pq:P4 ?pubDate].
FILTER((LANG(?personLabel)) = "de")
FILTER("1940-01-01"^^xsd:dateTime <= ?pubDate && ?pubDate < "1941-01-01"^^xsd:dateTime).
} ORDER BY ?surname