query-d022e01630534f1ff3ff7d2e2023bf25
Another useful query was finding NYU subsidiaries, so we could see which schools and departments are already on Wikidata:
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 ?nyusubsidiary ?nyusubsidiaryLabel
WHERE
{
?nyusubsidiary (wdt:P361| wdt:P749) wd:Q49210;
wdt:P31 ?type.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?nyusubsidiary"):::projected
v2("?type")
c6(["bd:serviceParam"]):::iri
c2(["wd:Q49210"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P749"--> c2
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P361"--> c2
end
union0r <== or ==> union0l
end
v1 --"wdt:P31"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end