query-fa23f1a83210ca97d8f1eaacb1e78c1a
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
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 ?date
WHERE
{
?item wdt:P31 wd:Q47150325.
?item wdt:P585 ?date .
filter(xsd:integer(year(?date)) > 1900 && xsd:integer(year(?date)) <= 2021 )
filter not exists {?item wdt:P18 [] . }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} order by desc(?date)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?date"):::projected
v2("?item"):::projected
a1((" "))
c8(["bd:serviceParam"]):::iri
c5(["wd:Q47150325"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P18"--> e0a1
e0v1("?item"):::projected
e0a1((" ")):::projected
end
f0--EXISTS--> f0e0
f0 --> v2
f0 --> c1
f0 --> a1
v2 --"wdt:P18"--> a1
f1[["http://www.w3.org/2001/XMLSchema#integer(year-from-dateTime(?date)) > '1900^^xsd:integer'http://www.w3.org/2001/XMLSchema#integer(year-from-dateTime(?date)) <= '2021^^xsd:integer'"]]
f1 --> v1
v2 --"wdt:P31"--> c5
v2 --"wdt:P585"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end