Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
HarmonizedCensusData/Queries/H_BewoondeSchepen_TijdelijkAanwezig_BinnenKom.rq
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
24 lines (22 sloc)
1.25 KB
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
#+ summary: Bewoonde Schepen Tijdelijk Aanwezig Binnen Kom | |
#+ tags: | |
#+ - Harmonized Tables 1859-1920 | |
PREFIX qb: <http://purl.org/linked-data/cube#> | |
PREFIX cedar: <http://lod.cedar-project.nl/vocab/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:refArea ?municipality . | |
?obs cedar:houseType <http://lod.cedar-project.nl/vocab/cedar#house-BewoondeSchepen> . | |
?obs cedar:Kom <http://lod.cedar-project.nl/vocab/cedar-Kom#BinnenKom> . | |
?obs cedar:residenceStatus <http://lod.cedar-project.nl/vocab/cedar-residenceStatus#TijdelijkAanwezig> . | |
?slice a qb:Slice. | |
?slice qb:observation ?obs. | |
?slice sdmx-dimension:refPeriod ?year . | |
FILTER (NOT EXISTS {?obs cedar:isTotal ?total }) . | |
FILTER (?year IN (1830, 1840, 1849, 1859, 1869, 1879, 1889, 1899, 1909, 1920, 1930, 1940, 1950, 1960, 1971, 1980, 1990, 2000, 2010)) . | |
FILTER (NOT EXISTS {?obs sdmx-dimension:sex ?sex }) . | |
} GROUP BY ?municipality ?year ORDER BY ?municipality |