query-d40cd5d01e0233fdb46dd7bcf6161653
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 ?item ?itemLabel ?inst_subpLabel ?inst_subp_dc ?classLabel
WHERE {
?class wdt:P279* wd:Q2615082 .
?inst_subp wdt:P1647? wd:P31 .
?inst_subp wikibase:directClaim ?inst_subp_dc .
?item ?inst_subp_dc ?class .
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("?class")
v2("?inst_subp")
v3("?inst_subp_dc"):::projected
v4("?item"):::projected
c7(["bd:serviceParam"]):::iri
c2(["wd:Q2615082"]):::iri
c3(["wd:P31"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P279"--> c2
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P1647"--> c3
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
end
union0r <== or ==> union0l
end
v2 --"wikibase:directClaim"--> v3
v4 -->v3--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end