-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
root
committed
Feb 25, 2015
1 parent
d3368db
commit 56ea088
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Totals per municipality, cross year | ||
|
||
PREFIX qb: <http://purl.org/linked-data/cube#> | ||
PREFIX cedar: <http://bit.ly/cedar#> | ||
PREFIX sdmx-dimension: <http://purl.org/linked-data/sdmx/2009/dimension#> | ||
PREFIX sdmx-code: <http://purl.org/linked-data/sdmx/2009/code#> | ||
|
||
SELECT ?municipality ?year (SUM(?pop) AS ?tot) | ||
FROM <urn:graph:cedar-mini:release> | ||
WHERE { ?obs a qb:Observation . | ||
?obs cedar:population ?pop . | ||
?obs sdmx-dimension:sex sdmx-code:sex-M . | ||
?obs sdmx-dimension:refArea ?municipality . | ||
?obs cedar:residenceStatus <http://bit.ly/cedar-residenceStatus#TijdelijkAanwezig> . | ||
?slice a qb:Slice. | ||
?slice qb:observation ?obs. | ||
?slice sdmx-dimension:refPeriod ?year . | ||
FILTER (NOT EXISTS {?obs cedar:houseType ?house }) . | ||
FILTER (NOT EXISTS {?obs cedar:isTotal ?total }) . | ||
FILTER (?year IN (1879, 1889)) . | ||
FILTER (regex(?obs, "VT_1879_01_H1-S0|VT_1889_03_H1-S0", "i")) . | ||
} GROUP BY ?municipality ?year | ||
|
||
|