query-9b5c26eb6aa7c0093892266bb83dccd1
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#>
#Tree map of Indian postal administrative divisions
#defaultView:TreeMap
SELECT ?c ?cLabel ?r ?rLabel ?d ?dLabel {
?d wdt:P31 wd:Q63676827 ; wdt:P749 ?r .
?r wdt:P31 wd:Q63676819 ; wdt:P749 ?c .
?c wdt:P31 wd:Q63676815.
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;
v3("?c"):::projected
v1("?d"):::projected
v2("?r"):::projected
c2(["wd:Q63676827"]):::iri
c4(["wd:Q63676819"]):::iri
c7(["bd:serviceParam"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c5(["wd:Q63676815"]):::iri
v1 --"wdt:P31"--> c2
v1 --"wdt:P749"--> v2
v2 --"wdt:P31"--> c4
v2 --"wdt:P749"--> v3
v3 --"wdt:P31"--> c5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end