query-86bb295b336230f7e23cfc160e5b2e1a
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 DISTINCT ?item ?itemLabel ?date
{
?item wdt:P31 / wdt:P279* wd:Q3914 . # ?item is school
MINUS {?item wdt:P31 / wdt:P279* wd:Q3918 . } # but not university
?item wdt:P17 wd:Q183 . # in Germany
?item wdt:P571 ?date .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,de" . }
}
ORDER by ?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((" "))
a2((" "))
c9(["bd:serviceParam"]):::iri
c3(["wd:Q3914"]):::iri
c4(["wd:Q3918"]):::iri
c6(["wd:Q183"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en,de"]):::literal
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v2 --"wdt:P31"--> a2
a2 --"wdt:P279"--> c4
end
v2 --"wdt:P17"--> c6
v2 --"wdt:P571"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end