Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
memoriav
Memobase 2020
services
Import Process
Drupal Sync Service
Commits
55bbe5f1
Commit
55bbe5f1
authored
Jun 30, 2020
by
Jonas Waeber
Browse files
Update municipality table.
parent
6196e898
Changes
2
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
55bbe5f1
...
...
@@ -30,11 +30,11 @@ https://query.wikidata.org/
SELECT
?item
?postalCode
?adminUnit
?labelDE
?labelFR
?labelIT
(
GROUP_CONCAT
(
DISTINCT
?coordinates
;
SEPARATOR
=
","
)
as
?groupedCoordinates
)
WHERE
{
?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"
)
MINUS
{
?item
wdt:
P31
wd:
Q685309
# removes former municipalities
}
}
GROUP
BY
?item
?postalCode
?adminUnit
?labelDE
?labelFR
?labelIT
...
...
src/main/resources/municipalities.tsv
View file @
55bbe5f1
This source diff could not be displayed because it is too large. You can
view the blob
instead.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment