query-199cd692f1385b543e8ec9018aca8875
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
# Credit: User:Mahir256
# Map of medical facilities in West Bengal, color-coded by type
#defaultView:Map
SELECT DISTINCT ?i ?iLabel ?layer ?c {
?item wdt:P31/wdt:P279* wd:Q4260475 ; wdt:P17 wd:Q668; wdt:P131* wd:Q1356 ; wdt:P625 ?c.
?thing rdfs:label ?tl. FILTER(LANG(?tl)="en")
BIND(?tl as ?layer)
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?c"):::projected
v2("?item")
v5("?layer"):::projected
v4("?thing")
v1("?tl")
a1((" "))
c1(["en"]):::literal
c12(["bd:serviceParam"]):::iri
c4(["wd:Q4260475"]):::iri
c6(["wd:Q668"]):::iri
c8(["wd:Q1356"]):::iri
f0[["?tl = 'en'"]]
f0 --> v1
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c4
v2 --"wdt:P17"--> c6
v2 --"wdt:P131"--> c8
v2 --"wdt:P625"--> v3
v4 --"rdfs:label"--> v1
bind1[/"?tl"/]
v1 --o bind1
bind1 --as--o v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c12 --"wikibase:language"--> c1
end