Commit 55bbe5f1 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Update municipality table.

parent 6196e898
......@@ -30,11 +30,11 @@
SELECT ?item ?postalCode ?adminUnit ?labelDE ?labelFR ?labelIT (GROUP_CONCAT(DISTINCT ?coordinates; SEPARATOR=",") as ?groupedCoordinates)
?item wdt:P31 wd:Q70208.
?item wdt:P281 ?postalCode .
?item wdt:P31 wd:Q70208. # swiss municipalities
?item wdt:P281 ?postalCode .
?item wdt:P625 ?coordinates .
?item wdt:P131 ?adminUnit .
?adminUnit wdt:P31 wd:Q23058 .
?adminUnit wdt:P31 wd:Q23058 . # adminUnit is canton of switzerland
?item rdfs:label ?labelDE .
FILTER(LANG(?labelDE) = "de")
......@@ -43,7 +43,10 @@ WHERE
FILTER(LANG(?labelFR) = "fr")
?item rdfs:label ?labelIT .
FILTER(LANG(?labelIT) = "fr")
FILTER(LANG(?labelIT) = "it")
?item wdt:P31 wd:Q685309 # removes former municipalities
GROUP BY ?item ?postalCode ?adminUnit ?labelDE ?labelFR ?labelIT
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment