query-6692bd4c82e945cc8012b7b7f99d8b7f
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?dob
WHERE
{ ?item wdt:P27 wd:Q20. # country of citizenship=Norway
?item wdt:P569 ?dob . # must have dob
bind (year(?dob) as ?year) # convert dob to years
FILTER (?year >= 1710) # filter for dob later or equal to 1710
FILTER (?year <= 1911) # filter for dob prior to or equal to 1911
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],no". } # get labels
} order by ?dob
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?dob"):::projected
v3("?item"):::projected
v4("?year")
c9(["#91;AUTO_LANGUAGE#93;,no"]):::literal
c7(["bd:serviceParam"]):::iri
c4(["wd:Q20"]):::iri
f0[["?year <= '1911^^xsd:integer'"]]
f0 --> v4
f1[["?year >= '1710^^xsd:integer'"]]
f1 --> v4
v3 --"wdt:P27"--> c4
v3 --"wdt:P569"--> v1
bind2[/"year-from-dateTime(?dob)"/]
v1 --o bind2
bind2 --as--o v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end