query-0b1eb3805ce51a318e6b694dfc735d67
Propertiesinstance of (P31)subclass of (P279)named after (P138)
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 ?item ?itemLabel ?class ?classLabel
WHERE
{
?item wdt:P31/wdt:P279* wd:7397.
?item wdt:P138 ?class.
?class wdt:P31 wd:Q55983715.
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;
v2("?class"):::projected
v1("?item"):::projected
a1((" "))
c7(["bd:serviceParam"]):::iri
c5(["wd:Q55983715"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c3(["wd:7397"]):::iri
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v1 --"wdt:P138"--> v2
v2 --"wdt:P31"--> c5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end