query-472bc224903f174648b4e1bebf0db404

rq turtle/ttl

TODO

Use at

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 schools in Kerala, color-coded by type
#defaultView:Map
SELECT DISTINCT ?i ?iLabel ?layer ?c WHERE {
  ?item (wdt:P31/(wdt:P279*)) wd:Q3914; wdt:P17 wd:Q668; wdt:P131* wd:Q1186 ; 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((" ")) c4(["wd:Q3914"]):::iri c1(["en"]):::literal c12(["bd:serviceParam"]):::iri c6(["wd:Q668"]):::iri c8(["wd:Q1186"]):::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