Skip to content

Instantly share code, notes, and snippets.

@jindrichmynarz
Created June 5, 2015 20:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jindrichmynarz/34ec6e33becb3d7e166f to your computer and use it in GitHub Desktop.
Save jindrichmynarz/34ec6e33becb3d7e166f to your computer and use it in GitHub Desktop.
Aggregation in the Data Cube Vocabulary using hierarchical code lists
@prefix ex: <http://example.com/> .
@prefix qb: <http://purl.org/linked-data/cube#> .
@prefix sdmx-dimension: <http://purl.org/linked-data/sdmx/2009/dimension#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
# Individual observations
[] a qb:Observation;
sdmx-dimension:refPeriod <http://reference.data.gov.uk/id/gregorian-interval/2004-01-01T00:00:00/P1M> ;
ex:measure 101.1 .
[] a qb:Observation;
sdmx-dimension:refPeriod <http://reference.data.gov.uk/id/gregorian-interval/2004-02-01T00:00:00/P1M> ;
ex:measure 91.2 .
# Aggregated observation
[] a qb:Observation;
sdmx-dimension:refPeriod <http://reference.data.gov.uk/id/gregorian-interval/2004-01-01T00:00:00/P2M> ;
ex:measure 192.3 .
# Code lists
<http://reference.data.gov.uk/id/gregorian-interval/2004-01-01T00:00:00/P1M> a skos:Concept ;
skos:broader <http://reference.data.gov.uk/id/gregorian-interval/2004-01-01T00:00:00/P2M> .
<http://reference.data.gov.uk/id/gregorian-interval/2004-02-01T00:00:00/P1M> a skos:Concept ;
skos:broader <http://reference.data.gov.uk/id/gregorian-interval/2004-01-01T00:00:00/P2M> .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment