Commit 70291eb8 authored by Jonas Waeber's avatar Jonas Waeber

Sort municipalities list

Split postal code lists (1007-1009) etc.
Update queries in readme
parent e9a62503
......@@ -57,7 +57,6 @@ WHERE
?item wdt:P131 ?canton .
?canton wdt:P31 wd:Q23058 . # adminUnit is canton of switzerland
}
OPTIONAL {
?item rdfs:label ?labelDE .
FILTER(LANG(?labelDE) = "de")
......
......@@ -17,7 +17,11 @@ object Helpers {
}.map {
val values = it.split("\t")
Municipality(
values[1].trim('"').split(",").map { code -> code.trim() },
values[1].trim('"')
.split(",")
.map { code -> code.trim() }
.flatMap { code -> code.split("-") }
.map { code -> code.trim() },
values[2].trim('<', '>'),
values[0].trim('<', '>'),
values[6].split(",")
......
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