Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dealing with attachmentLevel Series #11

Closed
csarven opened this issue Jan 4, 2013 · 3 comments
Closed

Dealing with attachmentLevel Series #11

csarven opened this issue Jan 4, 2013 · 3 comments
Labels

Comments

@csarven
Copy link
Owner

csarven commented Jan 4, 2013

If @attachmentLevel='Series' for a Component, does it correspond to <qb:componentAttachment rdf:resource="{$qb}Dimension"/>?

@cygri
Copy link

cygri commented Jan 17, 2013

Do you have an example SDMX file for this? (I believe the answer is yes, but would like to double-check)

@csarven
Copy link
Owner Author

csarven commented Jan 21, 2013

Examples in repo:
data/BIS.WEBSTATS_CIBL_UR_DATAFLOW-1351443106306.xml
data/ECB.KeyFamily.xml
data/IMF.BOPDSD.xml
data/OECD.HEALTH_STAT.xml
data/SDMX.StructureSample.xml

See also cube.ttl:

<http://purl.org/linked-data/cube#componentAttachment> <http://www.w3.org/2000/01/rdf-schema#range <http://www.w3.org/2000/01/rdf-schema#Class> .
<http://purl.org/linked-data/cube#componentAttachment> <http://www.w3.org/2000/01/rdf-schema#comment> "Indicates the level at which the component property should be attached, this might an qb:DataSet, qb:Slice or qb:Observation, or a qb:MeasureProperty."@en .

The range is flexible but the comment is a bit restrictive.

If I'm not mistaken, QB is missing an attachment level at the Series level. It would be similar to qb:Slice level but definitely at a higher level than qb:Observation.

@cygri
Copy link

cygri commented Jan 21, 2013

Reading the relevant parts of QB and SDMX again, there are two ways of handling this.

First, you can always “flatten” the dataset, and attach everything to the observations. The attachment level of the component would be set to qb:Observation. The triple with the value has to be repeated on every applicable observation.

The other option is to define a qb:SliceKey that covers the time dimension, and then set the attachment level to qb:Slice. That's because slices in data cube are a mechanism that unifies groups and series. You would then actually have to define qb:Slice instances for each series, and attach the attribute triple there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants