Changes for page 5 Data Structure Definition and Dataset
Last modified by Helena K. on 2026/06/08 16:58
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -4,20 +4,21 @@ 4 4 5 5 == 5.1 Introduction == 6 6 7 -The DataStructureDefiniton is the class name for a structure definition for data. Some organisations know this type of definition as a “Key Family” and so the two names are synonymous. The term [[Data Structure Definition>>doc:sdmx:Glossary2\.1.Data structure definition.WebHome]](also referred to as[[DSD>>doc:sdmx:Glossary 2\.1.Data structure definition.WebHome]]) is used in this specification.7 +The DataStructureDefiniton is the class name for a structure definition for data. Some organisations know this type of definition as a “Key Family” and so the two names are synonymous. The term Data Structure Definition (also referred to as DSD) is used in this specification. 8 8 9 -Many of the constructs in this layer of the model inherit from the [[SDMX>>doc:sdmx:Glossary2\.1.Statistical data and metadata exchange.WebHome]]Base Layer. Therefore, it is necessary to study both the inheritance and the relationship diagrams to understand the functionality of individual packages. In simple sub models these are shown in the same diagram but are omitted from the more complex sub models for the sake of clarity. In these cases, the inheritance diagram below shows the full inheritance tree for the classes concerned with[[data structure definitions>>doc:sdmx:Glossary 2\.1.Data structure definition.WebHome]].9 +Many of the constructs in this layer of the model inherit from the SDMX Base Layer. Therefore, it is necessary to study both the inheritance and the relationship diagrams to understand the functionality of individual packages. In simple sub models these are shown in the same diagram but are omitted from the more complex sub models for the sake of clarity. In these cases, the inheritance diagram below shows the full inheritance tree for the classes concerned with data structure definitions. 10 10 11 -There are very few additional classes in this sub model other than those shown in the inheritance diagram below. In other words, the [[SDMX>>doc:sdmx:Glossary2\.1.Statistical data and metadata exchange.WebHome]]Base gives most of the structure of this sub model both in terms of associations and in terms of[[attributes>>doc:sdmx:Glossary 2\.1.Attribute.WebHome]].The relationship diagrams shown in this section show clearly when these associations are inherited from the[[SDMX>>doc:sdmx:Glossary2\.1.Statistical data and metadata exchange.WebHome]]Base (see the Appendix “A Short Guide to UML in the[[SDMX Information Model>>doc:sdmx:Glossary 2\.1.SDMX Information Model.WebHome]]” to see the diagrammatic notation used to depict this).11 +There are very few additional classes in this sub model other than those shown in the inheritance diagram below. In other words, the SDMX Base gives most of the structure of this sub model both in terms of associations and in terms of attributes. The relationship diagrams shown in this section show clearly when these associations are inherited from the SDMX Base (see the Appendix “A Short Guide to UML in the SDMX Information Model” to see the diagrammatic notation used to depict this). 12 12 13 -The actual [[SDMX>>doc:sdmx:Glossary2\.1.Statistical data and metadata exchange.WebHome]]Base construct from which the concrete classes inherit depends upon the requirements of the class for:13 +The actual SDMX Base construct from which the concrete classes inherit depends upon the requirements of the class for: 14 14 15 - [[Annotation>>doc:sdmx:Glossary2\.1.Annotation.WebHome]]– //AnnotableArtefact//15 +Annotation – //AnnotableArtefact// 16 16 Identification – //IdentifiableArtefact// 17 17 Naming – //NameableArtefact// 18 18 Versioning – //VersionableArtefact// 19 19 Maintenance – //MaintainableArtefact// 20 20 21 + 21 21 == 5.2 Inheritance View == 22 22 23 23 === 5.2.1 Class Diagram === ... ... @@ -30,29 +30,29 @@ 30 30 31 31 ==== 5.2.2.1 Narrative ==== 32 32 33 -Those classes in the [[SDMX>>doc:sdmx:Glossary2\.1.Statistical data andmetadata exchange.WebHome]] metamodel which require[[annotations>>doc:sdmx:Glossary2\.1.Annotation.WebHome]] inherit from //AnnotableArtefact//. These are:34 +Those classes in the SDMX metamodel which require annotations inherit from //AnnotableArtefact//. These are: 34 34 35 35 //IdentifiableArtefact 36 - [[DataSet>>doc:sdmx:Glossary 2\.1.Data set.WebHome]]37 +DataSet 37 37 Key// (and therefore //SeriesKey// and //GroupKey//) 38 38 //Observation// 39 39 40 -Those classes in the [[SDMX>>doc:sdmx:Glossary2\.1.Statistical data andmetadata exchange.WebHome]] metamodel which require[[annotations>>doc:sdmx:Glossary2\.1.Annotation.WebHome]] and global identity are derived from //IdentifiableArtefact//. These are:41 +Those classes in the SDMX metamodel which require annotations and global identity are derived from //IdentifiableArtefact//. These are: 41 41 42 42 //NameableArtefact 43 43 ComponentList 44 - [[Component>>doc:sdmx:Glossary 2\.1.Component.WebHome]]//45 +Component// 45 45 46 -Those classes in the [[SDMX>>doc:sdmx:Glossary2\.1.Statistical data andmetadata exchange.WebHome]] metamodel which require[[annotations>>doc:sdmx:Glossary 2\.1.Annotation.WebHome]], global identity, multilingual name and multilingual description are derived from //NameableArtefact//. These are:47 +Those classes in the SDMX metamodel which require annotations, global identity, multilingual name and multilingual description are derived from //NameableArtefact//. These are: 47 47 48 48 //VersionableArtefact 49 49 Item// 50 50 51 -The classes in the [[SDMX>>doc:sdmx:Glossary2\.1.Statistical data andmetadata exchange.WebHome]] metamodel which require[[annotations>>doc:sdmx:Glossary 2\.1.Annotation.WebHome]], global identity, multilingual name and multilingual description, and versioning are derived from //VersionableArtefact//. These are:52 +The classes in the SDMX metamodel which require annotations, global identity, multilingual name and multilingual description, and versioning are derived from //VersionableArtefact//. These are: 52 52 53 53 //MaintainableArtefact// 54 54 55 -Abstract classes which represent information that is maintained by [[Maintenance Agencies>>doc:sdmx:Glossary2\.1.Maintenance agency.WebHome]] all inherit from //MaintainableArtefact//, they also inherit all the features of a //VersionableArtefact//, and are:56 +Abstract classes which represent information that is maintained by Maintenance Agencies all inherit from //MaintainableArtefact//, they also inherit all the features of a //VersionableArtefact//, and are: 56 56 57 57 //StructureUsage 58 58 Structure ... ... @@ -60,27 +60,27 @@ 60 60 61 61 All the above classes are abstract. The key to understanding the class diagrams presented in this section are the concrete classes that inherit from these abstract classes. 62 62 63 -Those concrete classes in the [[SDMX>>doc:sdmx:Glossary2\.1.Statistical data and metadata exchange.WebHome]] [[Data Structure Definition>>doc:sdmx:Glossary2\.1.Data structure definition.WebHome]] and[[Dataset>>doc:sdmx:Glossary2\.1.Data set.WebHome]]packages of the metamodel which require to be maintained by Agencies all inherit (via other abstract classes) from //MaintainableArtefact//, these are:64 +Those concrete classes in the SDMX Data Structure Definition and Dataset packages of the metamodel which require to be maintained by Agencies all inherit (via other abstract classes) from //MaintainableArtefact//, these are: 64 64 65 - [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]]66 +Dataflow 66 66 DataStructureDefinition 67 -The [[component>>doc:sdmx:Glossary2\.1.Component.WebHome]]structures that are lists of lists, inherit directly from //Structure//. A //Structure// contains several lists of[[components>>doc:sdmx:Glossary 2\.1.Component.WebHome]].The concrete class that inherits from //Structure// is:68 +The component structures that are lists of lists, inherit directly from //Structure//. A //Structure// contains several lists of components. The concrete class that inherits from //Structure// is: 68 68 DataStructureDefinition 69 69 70 -A DataStructureDefinition contains a list of [[dimensions>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]], a list of[[measures>>doc:sdmx:Glossary2\.1.Measure.WebHome]] and a list of[[attributes>>doc:sdmx:Glossary 2\.1.Attribute.WebHome]].71 +A DataStructureDefinition contains a list of dimensions, a list of measures and a list of attributes. 71 71 72 72 The concrete classes which inherit from //ComponentList// and are subcomponents of the DataStructureDefinition are: 73 73 74 -DimensionDescriptor – content is [[Dimension>>doc:sdmx:Glossary2\.1.Dimension.WebHome]]and TimeDimension75 -DimensionGroupDescriptor – content is an association to [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]], TimeDimension76 -MeasureDescriptor – content is [[Measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]]75 +DimensionDescriptor – content is Dimension and TimeDimension 76 +DimensionGroupDescriptor – content is an association to Dimension, TimeDimension 77 +MeasureDescriptor – content is Measure 77 77 AttributeDescriptor – content is DataAttribute and an association to MetadataAttribute 78 78 79 -The classes that inherit from // [[Component>>doc:sdmx:Glossary 2\.1.Component.WebHome]]// are:80 +The classes that inherit from //Component// are: 80 80 81 - [[Measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]]82 -//DimensionComponent// and thereby its sub classes of [[Dimension>>doc:sdmx:Glossary2\.1.Dimension.WebHome]]and TimeDimension83 -// [[Attribute>>doc:sdmx:Glossary 2\.1.Attribute.WebHome]]// and thereby its sub classes of DataAttribute and MetadataAttribute82 +Measure 83 +//DimensionComponent// and thereby its sub classes of Dimension and TimeDimension 84 +//Attribute// and thereby its sub classes of DataAttribute and MetadataAttribute 84 84 85 85 The concrete classes identified above are the majority of the classes required to define the metamodel for the DataStructureDefinition. The diagrams and explanations in the rest of this section show how these concrete classes are related in order to support the functionality required. 86 86 ... ... @@ -96,42 +96,42 @@ 96 96 97 97 ==== 5.3.2.1 Narrative ==== 98 98 99 -A DataStructureDefinition defines the [[Dimensions>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]], TimeDimension, DataAttributes, and[[Measures>>doc:sdmx:Glossary 2\.1.Measure.WebHome]], and associated[[Representations>>doc:sdmx:Glossary 2\.1.Representation.WebHome]], that comprise the valid structure of data and related[[attributes>>doc:sdmx:Glossary2\.1.Attribute.WebHome]] that are contained in a[[DataSet>>doc:sdmx:Glossary 2\.1.Data set.WebHome]], which is defined by a[[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]].In addition, a DataStructureDefinition may be related to one MetadataStructureDefinition, in order to use the latter’s MetadataAttributes, by relating them to other //[[Components>>doc:sdmx:Glossary 2\.1.Component.WebHome]]// within the[[DSD>>doc:sdmx:Glossary 2\.1.Data structure definition.WebHome]], as explained below.100 +A DataStructureDefinition defines the Dimensions, TimeDimension, DataAttributes, and Measures, and associated Representations, that comprise the valid structure of data and related attributes that are contained in a DataSet, which is defined by a Dataflow. In addition, a DataStructureDefinition may be related to one MetadataStructureDefinition, in order to use the latter’s MetadataAttributes, by relating them to other //Components// within the DSD, as explained below. 100 100 101 -The [[Dataflow>>doc:sdmx:Glossary2\.1.Dataflow.WebHome]] may also have additional metadata attached that define qualitative information and[[Constraints>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]onthe use of the DataStructureDefinition such as the subset of[[Codes>>doc:sdmx:Glossary2\.1.Code.WebHome]]used in a[[Dimension>>doc:sdmx:Glossary2\.1.Dimension.WebHome]](this is covered later in this document – see sections “[[Constraints>>doc:sdmx:Glossary 2\.1.Constraint.WebHome]]” and “Data Provisioning”). Each[[Dataflow>>doc:sdmx:Glossary2\.1.Dataflow.WebHome]]has a maximum of one DataStructureDefinition specified which defines the structure of any[[DataSets>>doc:sdmx:Glossary2\.1.Data set.WebHome]]tobe reported/disseminated. A[[Dataflow>>doc:sdmx:Glossary2\.1.Dataflow.WebHome]] may optionally define which[[Dimensions>>doc:sdmx:Glossary2\.1.Dimension.WebHome]] it uses, by defining a DimensionConstraint (this is a mandatory requirement if the DataStructureDefinition sets its’ evolvingStructure property to ‘true’ and is sematically referenced by the[[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]]).102 +The Dataflow may also have additional metadata attached that define qualitative information and Constraints on the use of the DataStructureDefinition such as the subset of Codes used in a Dimension (this is covered later in this document – see sections “Constraints” and “Data Provisioning”). Each Dataflow has a maximum of one DataStructureDefinition specified which defines the structure of any DataSets to be reported/disseminated. A Dataflow may optionally define which Dimensions it uses, by defining a DimensionConstraint (this is a mandatory requirement if the DataStructureDefinition sets its’ evolvingStructure property to ‘true’ and is sematically referenced by the Dataflow). 102 102 103 -There are two types of [[dimensions>>doc:sdmx:Glossary2\.1.Dimension.WebHome]] each having a common association to[[Concept>>doc:sdmx:Glossary 2\.1.Concept.WebHome]]:104 +There are two types of dimensions each having a common association to Concept: 104 104 105 -* [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]]106 +* Dimension 106 106 * TimeDimension 107 107 108 -Note that DimensionComponent can be any or all its sub classes i.e., [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]], TimeDimension.109 +Note that DimensionComponent can be any or all its sub classes i.e., Dimension, TimeDimension. 109 109 110 -The //DimensionComponent//, DataAttribute, MetadataAttribute and [[Measure>>doc:sdmx:Glossary2\.1.Measure.WebHome]]link to the[[Concept>>doc:sdmx:Glossary2\.1.Concept.WebHome]] that defines its name and semantic (/conceptIdentity association to[[Concept>>doc:sdmx:Glossary 2\.1.Concept.WebHome]]). The DataAttribute,[[Dimension>>doc:sdmx:Glossary2\.1.Dimension.WebHome]](but not TimeDimension) and[[Measure>>doc:sdmx:Glossary2\.1.Measure.WebHome]]can optionally have a +conceptRole association with a[[Concept>>doc:sdmx:Glossary2\.1.Concept.WebHome]] that identifies its role in the DataStructureDefinition, or one of the standard pre-defined roles, i.e., those published in "GUIDELINES FOR[[SDMX>>doc:sdmx:Glossary2\.1.Statistical data and metadata exchange.WebHome]] [[CONCEPT>>doc:sdmx:Glossary2\.1.Concept.WebHome]]ROLES" by the[[SDMX>>doc:sdmx:Glossary2\.1.Statistical data and metadata exchange.WebHome]] SWG. The use of these roles is to enable applications to process the data in a meaningful way (e.g., relating a[[dimension>>doc:sdmx:Glossary2\.1.Dimension.WebHome]]value to a mapping vector). It is expected, beyond the standard roles published by the SWG, that communities (such as the official statistics community) will harmonise such roles within their community so that data can be exchanged and shared in a meaningful way within that community.111 +The //DimensionComponent//, DataAttribute, MetadataAttribute and Measure link to the Concept that defines its name and semantic (/conceptIdentity association to Concept). The DataAttribute, Dimension (but not TimeDimension) and Measure can optionally have a +conceptRole association with a Concept that identifies its role in the DataStructureDefinition, or one of the standard pre-defined roles, i.e., those published in "GUIDELINES FOR SDMX CONCEPT ROLES" by the SDMX SWG. The use of these roles is to enable applications to process the data in a meaningful way (e.g., relating a dimension value to a mapping vector). It is expected, beyond the standard roles published by the SWG, that communities (such as the official statistics community) will harmonise such roles within their community so that data can be exchanged and shared in a meaningful way within that community. 111 111 112 -The valid values for a //DimensionComponent//, [[Measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]], DataAttribute or MetadataAttribute, when used in this DataStructureDefinition, are defined by the[[Representation>>doc:sdmx:Glossary 2\.1.Representation.WebHome]].This[[Representation>>doc:sdmx:Glossary2\.1.Representation.WebHome]] is taken from the[[Concept>>doc:sdmx:Glossary2\.1.Concept.WebHome]]definition (coreRepresentation) unless it is overridden in this DataStructureDefinition (localRepresentation) – see Figure 28. Note also that TimeDimension is constrained to specific FacetValueTypes. Moreover, the[[Representations>>doc:sdmx:Glossary2\.1.Representation.WebHome]] of MetadataAttributes are specified in the corresponding MetadataStructureDefinition, linked by the DataStructureDefinition.113 +The valid values for a //DimensionComponent//, Measure, DataAttribute or MetadataAttribute, when used in this DataStructureDefinition, are defined by the Representation. This Representation is taken from the Concept definition (coreRepresentation) unless it is overridden in this DataStructureDefinition (localRepresentation) – see Figure 28. Note also that TimeDimension is constrained to specific FacetValueTypes. Moreover, the Representations of MetadataAttributes are specified in the corresponding MetadataStructureDefinition, linked by the DataStructureDefinition. 113 113 114 -There will always be a DimensionDescriptor grouping that identifies all of the [[Dimension>>doc:sdmx:Glossary2\.1.Dimension.WebHome]]comprising the full key. Together the[[Dimensions>>doc:sdmx:Glossary2\.1.Dimension.WebHome]] specify the key of an Observation.115 +There will always be a DimensionDescriptor grouping that identifies all of the Dimension comprising the full key. Together the Dimensions specify the key of an Observation. 115 115 116 -The //DimensionComponent// can optionally be grouped by multiple GroupDimensionDescriptors each of which identifies the group of [[Dimensions>>doc:sdmx:Glossary2\.1.Dimension.WebHome]]that can form a partial key. The GroupDimensionDescriptor must be identified (GroupDimensionDescriptor.id) and this is used in the GroupKey of the[[DataSet>>doc:sdmx:Glossary2\.1.Data set.WebHome]]todeclare which DataAttributes or MetadataAttributes are reported at this group level in the[[DataSet>>doc:sdmx:Glossary 2\.1.Data set.WebHome]].117 +The //DimensionComponent// can optionally be grouped by multiple GroupDimensionDescriptors each of which identifies the group of Dimensions that can form a partial key. The GroupDimensionDescriptor must be identified (GroupDimensionDescriptor.id) and this is used in the GroupKey of the DataSet to declare which DataAttributes or MetadataAttributes are reported at this group level in the DataSet. 117 117 118 -There can be a maximum of one TimeDimension specified in the DimensionDescriptor. The TimeDimension is used to specify the [[Concept>>doc:sdmx:Glossary2\.1.Concept.WebHome]]used to convey the[[time period>>doc:sdmx:Glossary2\.1.Time period.WebHome]] of the observation in a[[data set>>doc:sdmx:Glossary 2\.1.Dataset.WebHome]].The TimeDimension must contain a valid[[representation>>doc:sdmx:Glossary2\.1.Representation.WebHome]] of time and cannot be coded.119 +There can be a maximum of one TimeDimension specified in the DimensionDescriptor. The TimeDimension is used to specify the Concept used to convey the time period of the observation in a data set. The TimeDimension must contain a valid representation of time and cannot be coded. 119 119 120 -There can be one or more [[Measures>>doc:sdmx:Glossary2\.1.Measure.WebHome]] under the MeasureDescriptor.[[Measures>>doc:sdmx:Glossary2\.1.Measure.WebHome]] represent the observable phenomena. Each[[Measure>>doc:sdmx:Glossary2\.1.Measure.WebHome]] may have a valid[[representation>>doc:sdmx:Glossary 2\.1.Representation.WebHome]], a maxOccurs[[attribute>>doc:sdmx:Glossary2\.1.Attribute.WebHome]]limiting the maximum number of values per[[Measure>>doc:sdmx:Glossary2\.1.Measure.WebHome]](which may be set to 'unbounded' for unlimited occurrences), as well as a minOccurs[[attribute>>doc:sdmx:Glossary 2\.1.Attribute.WebHome]], indicating the minimum required number of values, when the[[Measure>>doc:sdmx:Glossary2\.1.Measure.WebHome]]is reported. If minOccurs or maxOccurs are omitted (they both default to ‘1’), the[[Measure>>doc:sdmx:Glossary2\.1.Measure.WebHome]]is considered to take a single value; otherwise, it is an array. Moreover, the usage[[attribute>>doc:sdmx:Glossary2\.1.Attribute.WebHome]] indicates whether a[[Measure>>doc:sdmx:Glossary2\.1.Measure.WebHome]] must be reported or not, by the corresponding values: mandatory or optional.121 +There can be one or more Measures under the MeasureDescriptor. Measures represent the observable phenomena. Each Measure may have a valid representation, a maxOccurs attribute limiting the maximum number of values per Measure (which may be set to 'unbounded' for unlimited occurrences), as well as a minOccurs attribute, indicating the minimum required number of values, when the Measure is reported. If minOccurs or maxOccurs are omitted (they both default to ‘1’), the Measure is considered to take a single value; otherwise, it is an array. Moreover, the usage attribute indicates whether a Measure must be reported or not, by the corresponding values: mandatory or optional. 121 121 122 -The AttributeDescriptor may contain one or more // [[Attribute>>doc:sdmx:Glossary 2\.1.Attribute.WebHome]]//s, i.e., at least one DataAttribute definition or one MetadataAttribute reference.123 +The AttributeDescriptor may contain one or more //Attribute//s, i.e., at least one DataAttribute definition or one MetadataAttribute reference. 123 123 124 -The DataAttribute defines a characteristic of data that are collected or disseminated and is grouped in the DataStructureDefinition by a single AttributeDescriptor. The DataAttribute can be indicated if it must be reported or not, by the corresponding value of the usage [[attribute>>doc:sdmx:Glossary2\.1.Attribute.WebHome]]: i.e., mandatory or optional. The property minOccurs specifies the minimum number of array values to be included when the DataAttribute is reported. Moreover, a maxOccurs[[attribute>>doc:sdmx:Glossary2\.1.Attribute.WebHome]] indicates whether the DataAttribute may need to report more than one values, i.e., an array of values. The DataAttribute may play a specific role in the structure and this is specified by the +role association to the[[Concept>>doc:sdmx:Glossary2\.1.Concept.WebHome]] that identifies its role.125 +The DataAttribute defines a characteristic of data that are collected or disseminated and is grouped in the DataStructureDefinition by a single AttributeDescriptor. The DataAttribute can be indicated if it must be reported or not, by the corresponding value of the usage attribute: i.e., mandatory or optional. The property minOccurs specifies the minimum number of array values to be included when the DataAttribute is reported. Moreover, a maxOccurs attribute indicates whether the DataAttribute may need to report more than one values, i.e., an array of values. The DataAttribute may play a specific role in the structure and this is specified by the +role association to the Concept that identifies its role. 125 125 126 -The MetadataAttribute defines [[reference metadata>>doc:sdmx:Glossary2\.1.Reference metadata.WebHome]] that may be collected or disseminated and is grouped together with DataAttribute under the AttributeDescriptor.127 +The MetadataAttribute defines reference metadata that may be collected or disseminated and is grouped together with DataAttribute under the AttributeDescriptor. 127 127 128 -A DataAttribute or a MetadataAttribute (i.e., an //AttributeComponent//) is specified as being +relatedTo an AttributeRelationship, which defines the constructs to which the //AttributeComponent// is to be reported within a // [[DataSet>>doc:sdmx:Glossary 2\.1.Data set.WebHome]]//. An //AttributeComponent// can be specified as being related to one of the following[[artefacts>>doc:sdmx:Glossary 2\.1.Artefact.WebHome]]:129 +A DataAttribute or a MetadataAttribute (i.e., an //AttributeComponent//) is specified as being +relatedTo an AttributeRelationship, which defines the constructs to which the //AttributeComponent// is to be reported within a //DataSet//. An //AttributeComponent// can be specified as being related to one of the following artefacts: 129 129 130 -* All data within the [[dataset>>doc:sdmx:Glossary2\.1.Data set.WebHome]](DataflowRelationship) – this is equivalent to attaching an[[Attribute>>doc:sdmx:Glossary2\.1.Attribute.WebHome]]toall data within the[[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]].131 -* [[Dimension>>doc:sdmx:Glossary2\.1.Dimension.WebHome]] or set of[[Dimensions>>doc:sdmx:Glossary2\.1.Dimension.WebHome]](DimensionRelationship)132 -* Set of [[Dimensions>>doc:sdmx:Glossary2\.1.Dimension.WebHome]] specified by a GroupKey (GroupRelationship – this is retained for compatibility reasons – or +groupKey of the DimensionRelationship)131 +* All data within the dataset (DataflowRelationship) – this is equivalent to attaching an Attribute to all data within the Dataflow. 132 +* Dimension or set of Dimensions (DimensionRelationship) 133 +* Set of Dimensions specified by a GroupKey (GroupRelationship – this is retained for compatibility reasons – or +groupKey of the DimensionRelationship) 133 133 * Observation (ObservationRelationship) 134 -* In addition to the positioning of an //AttributeComponent// within a // [[DataSet>>doc:sdmx:Glossary 2\.1.Data set.WebHome]]//, another relationship indicates the[[Measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]](s) for which the //AttributeComponent// is reported. Regardless of the position of the //AttributeComponent// within the //[[DataSet>>doc:sdmx:Glossary 2\.1.Data set.WebHome]]//, the //AttributeComponent// may concern one, more than one, or all[[Measures>>doc:sdmx:Glossary2\.1.Measure.WebHome]]included in the[[DSD>>doc:sdmx:Glossary 2\.1.Datastructure definition.WebHome]].This is expressed using the MeasureRelationship class, which relates a DataAttribute to one or more[[Measures>>doc:sdmx:Glossary 2\.1.Measure.WebHome]].Lack of the MeasureRelationship defaults to a relationship to all[[Measures>>doc:sdmx:Glossary 2\.1.Measure.WebHome]].135 +* In addition to the positioning of an //AttributeComponent// within a //DataSet//, another relationship indicates the Measure(s) for which the //AttributeComponent// is reported. Regardless of the position of the //AttributeComponent// within the //DataSet//, the //AttributeComponent// may concern one, more than one, or all Measures included in the DSD. This is expressed using the MeasureRelationship class, which relates a DataAttribute to one or more Measures. Lack of the MeasureRelationship defaults to a relationship to all Measures. 135 135 136 136 [[image:image55.png]] 137 137 ... ... @@ -141,10 +141,10 @@ 141 141 142 142 (% style="width:1142.83px" %) 143 143 |**Relationship**|(% style="width:537px" %)**Meaning**|(% style="width:434px" %)**Location in Data Set at which the Attribute is reported** 144 -|DataflowRelationship|(% style="width:537px" %)The value of the [[attribute>>doc:sdmx:Glossary2\.1.Attribute.WebHome]] is fixed for all data contained in the[[dataset>>doc:sdmx:Glossary 2\.1.Dataset.WebHome]].The[[Attribute>>doc:sdmx:Glossary2\.1.Attribute.WebHome]]value applies to all data defined by the underlying[[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]].|(% style="width:434px" %)The[[attribute>>doc:sdmx:Glossary2\.1.Attribute.WebHome]] is reported at the[[Dataset>>doc:sdmx:Glossary2\.1.Data set.WebHome]]level.145 -| [[Dimension>>doc:sdmx:Glossary2\.1.Dimension.WebHome]](1..n)|(% style="width:537px" %)The value of the[[attribute>>doc:sdmx:Glossary2\.1.Attribute.WebHome]]will vary with the value(s) of the referenced[[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]](s). In this case, Group(s) to which the[[attribute>>doc:sdmx:Glossary2\.1.Attribute.WebHome]]should be attached may optionally be specified.|(% style="width:434px" %)The[[attribute>>doc:sdmx:Glossary2\.1.Attribute.WebHome]] is reported at the lowest(% style="color:#e74c3c" %)l(%%)evel of the[[Dimension>>doc:sdmx:Glossary2\.1.Dimension.WebHome]]to which the[[Attribute>>doc:sdmx:Glossary2\.1.Attribute.WebHome]] is related, otherwise at the level of the Group if Attachment Group(s) is specified.146 -|Group|(% style="width:537px" %)The value of the [[Attribute>>doc:sdmx:Glossary2\.1.Attribute.WebHome]]varies with combination of values for all of the[[Dimensions>>doc:sdmx:Glossary2\.1.Dimension.WebHome]]contained in the Group. This is added as a convenience to listing all[[Dimensions>>doc:sdmx:Glossary2\.1.Dimension.WebHome]]and the attachment Group, but should only be used when the[[Attribute>>doc:sdmx:Glossary2\.1.Attribute.WebHome]]value varies based on all Group[[Dimension>>doc:sdmx:Glossary2\.1.Dimension.WebHome]]values.|(% style="width:434px" %)The[[attribute>>doc:sdmx:Glossary2\.1.Attribute.WebHome]] is reported at the level of Group.147 -|Observation|(% style="width:537px" %)The value of the [[Attribute>>doc:sdmx:Glossary2\.1.Attribute.WebHome]]varies with the observed value.|(% style="width:434px" %)The[[attribute>>doc:sdmx:Glossary2\.1.Attribute.WebHome]] is reported at the level of Observation.145 +|DataflowRelationship|(% style="width:537px" %)The value of the attribute is fixed for all data contained in the dataset. The Attribute value applies to all data defined by the underlying Dataflow.|(% style="width:434px" %)The attribute is reported at the Dataset level. 146 +|Dimension (1..n)|(% style="width:537px" %)The value of the attribute will vary with the value(s) of the referenced Dimension(s). In this case, Group(s) to which the attribute should be attached may optionally be specified.|(% style="width:434px" %)The attribute is reported at the lowest level of the Dimension to which the Attribute is related, otherwise at the level of the Group if Attachment Group(s) is specified. 147 +|Group|(% style="width:537px" %)The value of the Attribute varies with combination of values for all of the Dimensions contained in the Group. This is added as a convenience to listing all Dimensions and the attachment Group, but should only be used when the Attribute value varies based on all Group Dimension values.|(% style="width:434px" %)The attribute is reported at the level of Group. 148 +|Observation|(% style="width:537px" %)The value of the Attribute varies with the observed value.|(% style="width:434px" %)The attribute is reported at the level of Observation. 148 148 149 149 [[image:image56.png]] 150 150