Skip to content

Instantly share code, notes, and snippets.

@albertmeronyo
Created July 28, 2015 12:29
Show Gist options
  • Save albertmeronyo/1dbc6d72d9c448edf8a1 to your computer and use it in GitHub Desktop.
Save albertmeronyo/1dbc6d72d9c448edf8a1 to your computer and use it in GitHub Desktop.
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#>
PREFIX gg: <http://www.gemeentegeschiedenis.nl/amco/>
PREFIX prov: <http://www.w3.org/ns/prov#>
DESCRIBE ?activity
FROM <urn:graph:cedar-mini:release>
WHERE { ?obs a qb:Observation .
?obs cedar:population ?pop .
?obs sdmx-dimension:refArea ?municipality .
?obs cedar:houseType <http://bit.ly/cedar#house-BewoondeHuizen> .
?obs cedar:Kom <http://bit.ly/cedar-Kom#BuitenKom> .
?slice a qb:Slice.
?slice qb:observation ?obs.
?slice sdmx-dimension:refPeriod ?year .
?obs prov:wasDerivedFrom ?raw_obs .
?obs prov:wasGeneratedBy ?activity .
?activity prov:used ?mapping .
FILTER (NOT EXISTS {?obs cedar:isTotal ?total }) .
FILTER (?year IN (1889)) .
FILTER (?municipality IN (gg:11433)) .
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment