Open Tzaphkiel opened 6 years ago
To comment on this, with the following notes from Xavier:
So to summarize, Dimension Group/Group duplication was introduced to support streaming in v2.1 whilst maintaining backwards compatibility with v2.0.
To tighten up the documentation, we need to decide what to do for the following use case:
User Creates a Schema in v2.0 - it should state the attribute value is reported against the Group
User Creates a Schema in v2.1 - currently this is ambiguous as to what the action is, as it is not documented what to do. The above bug is raised against an implementation that allows the user to choose whether to report against the Group of the Dimension Group.
Proposal is to either:
A statement needs to be added to section 6 technical notes
, at the end of section 9.2.1
.
This could be either:
When a Data Structure Definition defines an Attribute
which is both a member of a Group
and a Dimension Group
containing the same Dimensions
, the following rules apply for Schema Generation:
version 2.1
schema the Attribute
should be defined at the level of the Series
version 2.0
or version 1.0
schema the Attribute
should be defined at the level of the Group
The above rules has the implication that transformation of a version 2.0 dataset
into a version 2.1 dataset
may require movement of group level attributes to series level attributes.
OR (as we have currently implemented in the Fusion Registry)
When a Data Structure Definition defines an Attribute which is both a member of a Group
and a Dimension Group
containing the same Dimensions
, the following rules apply for Schema Generation:
version 2.1
schema the Attribute
should be defined at both the level of the Series
and the level of the Group
version 2.0
or version 1.0
schema the Attribute
should be defined at the level of the Group
The above rules has the implication that transformation of a version 2.0 dataset
into a version 2.1 dataset
group level attributes may remain as group level attributes or be transferred to the series level attributes. In addition data reporters have a choice of attachment level for the attribute.
We have noticed that in the registry, a schema has a duplication of attributes at sibling and series level even when the DSD (in 2.0 SDMX-ML format) actually mentions a group level attachment:
SDMX-ML 2.0 DSD
SDMX-2.1 schema
When generating the SDMX-ML 2.1 DSD and schema the attributes are at the same time attached to the series and the group... This apparently was done so in order to optimize for the streaming when exchanging data.
The problem is that it is subject to interpretation in the specification and should (/would need to) be clarified.