query-65a339dfec9364b58266285ec121658a
Propertiesinstance of (P31)named after (P138)subclass of (P279)
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 ?propLabel ?university ?universityLabel
WHERE {
?item wdt:P31 wd:Q479716 ;
wikibase:sitelinks ?sitelinks ;
?p ?university .
FILTER(?p != wdt:P138)
?university wdt:P31/wdt:P279* wd:Q3918.
?prop wikibase:directClaim ?p .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC(?sitelinks) ?propLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?item"):::projected
v3("?p")
v6("?prop")
v2("?propLabel"):::projected
v1("?sitelinks")
v5("?university"):::projected
a1((" "))
c3(["wd:Q479716"]):::iri
c9(["bd:serviceParam"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c6(["wd:Q3918"]):::iri
f0[["?p != 'wdt:P138'"]]
f0 --> v3
v4 --"wdt:P31"--> c3
v4 --"wikibase:sitelinks"--> v1
v4 -->v3--> v5
v5 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c6
v6 --"wikibase:directClaim"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end