query-adb544f6a3352447fc6867b0f7a302e2

rq turtle/ttl

Municipalities

Use at

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#>
PREFIX target: <http://www.wikidata.org/entity/Q35>

SELECT 
  ?municipality ?municipalityLabel
  (CONCAT("#municipality/", SUBSTR(STR(?municipality), 32)) AS ?municipalityUrl)
  ?municipalityDescription
WHERE {
  ?municipality wdt:P31 / wdt:P279* wd:Q15284 ;
                wdt:P17 target: .
  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("?municipality"):::projected v2("?municipalityUrl") a1((" ")) c7(["bd:serviceParam"]):::iri c3(["wd:Q15284"]):::iri c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal c5(["wd:Q35"]):::iri v1 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 v1 --"wdt:P17"--> c5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end bind0[/"concat('#municipality/',substring(str(?municipality),'32^^xsd:integer'))"/] v1 --o bind0 bind0 --as--o v2