query-87f7769e9f01d34ceaca6451bdf93021
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 ?university ?universityLabel ?founded WHERE {
{ { SELECT DISTINCT ?subclass { ?subclass wdt:P279* wd:Q3918 } } } .
?university wdt:P131+ wd:Q64;
wdt:P31 ?subclass;
wdt:P571 ?founded .
FILTER( YEAR( ?founded ) < 1890 ) .
MINUS {
?university wdt:P576 ?date .
FILTER( YEAR ( ?date ) < 1890 ) .
} .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" } .
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?date")
v1("?founded"):::projected
v2("?subclass")
v3("?university"):::projected
c10(["bd:serviceParam"]):::iri
c5(["wd:Q64"]):::iri
c12(["en"]):::literal
c3(["wd:Q3918"]):::iri
f0[["year-from-dateTime(?founded) < '1890^^xsd:integer'"]]
f0 --> v1
v2 --"wdt:P279"--> c3
v3 --"wdt:P131"--> c5
v3 --"wdt:P31"--> v2
v3 --"wdt:P571"--> v1
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
f2[["year-from-dateTime(?date) < '1890^^xsd:integer'"]]
f2 --> v4
v3 --"wdt:P576"--> v4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end