I've prepared calculation of "Tarifdaten". It is split into the following queries:
calc-canton-municipality-population.rq: This query fetches all valid municipalities of a hard-coded year (2019 at the moment), gets the population data and writes them into a new graph. There is a link between the canton and the municipalities via skos:narrower so one can easily get all municipalities per canton.
calc-provider-category-max-min.rq: This query fetches all tariffs of the same hard-coded year and calculates max/min values per municipality. It then attaches this information to the same municipality URI that is used in the previous query
I've prepared calculation of "Tarifdaten". It is split into the following queries:
skos:narrower
so one can easily get all municipalities per canton.I execute them like this:
for testing I load the data in a local TDB and execute the last query on them:
This query returns a result-set and should be executed for each canton. This can be done by replacing
8:
on line 16 with an integer between 1-26.Sample for Kanton Glarus:
Note that the municipality Glarus is missing due to a bug in the source-data.