Changes for page 5 Data Structure Definition and Dataset
Last modified by Elena on 2025/09/10 11:19
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -30,9 +30,9 @@ 30 30 31 31 **Figure 27 Class inheritance in the Data Structure Definition and Data Set Packages** 32 32 33 -=== 5.2.2 Explanation of the Diagram === 33 +===== 5.2.2 Explanation of the Diagram ===== 34 34 35 -==== 5.2.2.1 Narrative ==== 35 +====== 5.2.2.1 Narrative ====== 36 36 37 37 Those classes in the SDMX metamodel which require annotations inherit from //AnnotableArtefact//. These are: 38 38 ... ... @@ -75,8 +75,11 @@ 75 75 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: 76 76 77 77 Dataflow 78 + 78 78 DataStructureDefinition 80 + 79 79 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: 82 + 80 80 DataStructureDefinition 81 81 82 82 A DataStructureDefinition contains a list of dimensions, a list of measures and a list of attributes. ... ... @@ -84,29 +84,34 @@ 84 84 The concrete classes which inherit from //ComponentList// and are subcomponents of the DataStructureDefinition are: 85 85 86 86 DimensionDescriptor – content is Dimension and TimeDimension 90 + 87 87 DimensionGroupDescriptor – content is an association to Dimension, TimeDimension 92 + 88 88 MeasureDescriptor – content is Measure 94 + 89 89 AttributeDescriptor – content is DataAttribute and an association to MetadataAttribute 90 90 91 91 The classes that inherit from //Component// are: 92 92 93 93 Measure 100 + 94 94 //DimensionComponent// and thereby its sub classes of Dimension and TimeDimension 102 + 95 95 //Attribute// and thereby its sub classes of DataAttribute and MetadataAttribute 96 96 97 97 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. 98 98 99 -== 5.3 Data Structure Definition – Relationship View == 107 +==== //5.3 Data Structure Definition – Relationship View// ==== 100 100 101 -=== 5.3.1 Class Diagram === 109 +===== 5.3.1 Class Diagram ===== 102 102 103 103 [[image:1749246368782-690.jpeg]] 104 104 105 105 **Figure 28 Relationship class diagram of the Data Structure Definition excluding representation** 106 106 107 -=== 5.3.2 Explanation of the Diagrams === 115 +===== 5.3.2 Explanation of the Diagrams ===== 108 108 109 -==== 5.3.2.1 Narrative ==== 117 +====== 5.3.2.1 Narrative ====== 110 110 111 111 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. 112 112 ... ... @@ -151,12 +151,11 @@ 151 151 152 152 The following table details the possible relationships a DataAttribute may specify. Note that these relationships are mutually exclusive, and therefore only one of the following is possible. 153 153 154 -(% style="width:1142.83px" %) 155 -|**Relationship**|(% style="width:537px" %)**Meaning**|(% style="width:434px" %)**Location in Data Set at which the Attribute is reported** 156 -|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. 157 -|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. 158 -|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. 159 -|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. 162 +|**Relationship**|**Meaning**|**Location in Data Set at which the Attribute is reported** 163 +|DataflowRelationship|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.|The attribute is reported at the Dataset level. 164 +|Dimension (1..n)|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.|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. 165 +|Group|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.|The attribute is reported at the level of Group. 166 +|Observation|The value of the Attribute varies with the observed value.|The attribute is reported at the level of Observation. 160 160 161 161 [[image:1749246368790-555.jpeg]] 162 162 ... ... @@ -166,7 +166,7 @@ 166 166 167 167 A DataStructureDefinition can be extended to form a derived DataStructureDefinition. This is supported in the StructureMap. 168 168 169 - ====5.3.2.2 Definitions====176 +**5.3.2.2 Definitions** 170 170 171 171 |**Class**|**Feature**|**Description** 172 172 |StructureUsage| |See “SDMX Base”. ... ... @@ -176,7 +176,7 @@ 176 176 //StructureUsage// 177 177 )))|Abstract concept (i.e., the structure without any data) of a flow of data that providers will provide for different reference periods. 178 178 | |/structure|Associates a Dataflow to the Data Structure Definition. 179 -| |dimensionConstraint|A list of Dimensions which the Dataflow uses. This is only required when the referenced DataStructureDefinition has the evolvingStructure property set to true and when the association to the DataStructureDefinition in on the latest minor version {{footnote}}Referencingthelatest minor version of the Data Structureis achieved bythereference including the plus operator on the minorversion toindicate it linksto thelatest stable version, for example 2.0+.0 will resolve to the highest version2.x.y.{{/footnote}}.186 +| |dimensionConstraint|A list of Dimensions which the Dataflow uses. This is only required when the referenced DataStructureDefinition has the evolvingStructure property set to true and when the association to the DataStructureDefinition in on the latest minor version[[(% class="wikiinternallink wikiinternallink" %)^^~[1~]^^>>path:#_ftn1]](%%). 180 180 |DataStructureDefiniti on| |A collection of metadata concepts, their structure and usage when used to collect or disseminate data. 181 181 | |/grouping|An association to a set of metadata concepts that have an identified structural role in a Data Structure Definition. 182 182 | |evolvingStructure|An optional boolean property, defaulting to false. When true the DataStructureDefinition may have new Dimensions added without having to change its major version number. ... ... @@ -216,6 +216,9 @@ 216 216 TimeDimension 217 217 )))|An abstract class representing any Component that can be used for identifying observations. 218 218 226 + 227 + 228 + 219 219 |**Class**|**Feature**|**Description** 220 220 | |Order|Specifies the order of the Dimension Components within the DSD. The property is used to indicate the position of the Dimension Component and determines the Key for identifying observations, or series. The Time Dimension, when specified, must be the last within the Dimension Descriptor. 221 221 |Dimension|((( ... ... @@ -288,9 +288,9 @@ 288 288 289 289 **Figure 31: Class Diagram of the Data Set** 290 290 291 -=== 5.4.3 Explanation of the Diagram === 301 +====== 5.4.3 Explanation of the Diagram ====== 292 292 293 - ====5.4.3.1 Narrative – Data Set====303 +5.4.3.1 Narrative – Data Set 294 294 295 295 Note that the //DataSet// must conform to the DataStructureDefinition associated to the Dataflow for which this DataSet is an “instance of data”. Whilst the model shows the association to the classes of the DataStructureDefinition, this is for conceptual purposes to show the link to the DataStructureDefinition. In the actual //DataSet// as exchanged there must, of course, be a reference to the DataStructureDefinition and optionally a Dataflow or a ProvisionAgreement, but the DataStructureDefinition is not necessarily exchanged with the data. Therefore, the DataStructureDefinition classes are shown in the grey areas, as these are not a part of the //DataSet// when the //DataSet// is exchanged. However, the structural metadata in the DataStructureDefinition can be used by an application to validate the contents of the //DataSet// in terms of the valid content of a //KeyValue// as defined by the Representation in the DataStructureDefinition. 296 296 ... ... @@ -308,11 +308,11 @@ 308 308 309 309 The GroupKey is a subunit of the //Key// that has the same dimensionality as the SeriesKey but defines a subset of the KeyValues of the SeriesKey. Its sub dimension structure is defined in the GroupDimensionDescriptor of the DataStructureDefinition identified by the same id as the GroupKey. The id identifies a “type” of group and the purpose of the GroupKey is to report one or more //AttributeValue// that are contained at this group level. The GroupKey is present when the GroupDimensionDescriptor is related to the GroupRelationship in the DataStructureDefinition. There can be many types of groups in a //DataSet//. If the Group is related to the DimensionRelationship in the DataStructureDefinition then the //AttributeValue// will be reported with the appropriate dimension in the SeriesKey or Observation. 310 310 311 -In this way each of SeriesKey, GroupKey, and Observation can have zero or more //AttributeValue//s that define some metadata about the object to which it is associated. The //AttributeValue// may be either a //DataAttributeValue// or a //MetadataAttributeValue//, representing values of DataAttributes defined in the DSD or MetadataAttributes of the linked MSD, respectively. The allowable Concepts and the objects to which these metadata can be associated (attached) are defined in the DataStructureDefinition and the linked MetadataStructureDefinition.321 +In this way each of SeriesKey, GroupKey, and Observation can have zero or more //AttributeValue//s that define some metadata about the object to which it is associated. The //AttributeValue// may be either a //DataAttributeValue// or a //MetadataAttributeValue//, representing values of DataAttributes defined in the DSD or MetadataAttributes of the linked MSD, respectively. The allowable Concepts and the objects to which these metadata can be associated (attached) are defined in the DataStructureDefinition and the linked MetadataStructureDefinition. 312 312 313 313 The //AttributeValue// links to the object type (SeriesKey, GroupKey, Observation) to which it is associated. 314 314 315 - ====5.4.3.2 Definitions====325 +5.4.3.2 Definitions 316 316 317 317 |**Class**|**Feature**|**Description** 318 318 |//DataSet//|((( ... ... @@ -514,6 +514,8 @@ 514 514 )))|An attribute that takes it value from a Code in Code list. 515 515 | |+valueOf|Association to the Code that is the value of the Attribute Value. Note that this is a conceptual association showing that the Code must exist in the Code list associated with the Data Attribute in the Data Structure Definition. In the actual Data Set the value of the Code is placed in the Attribute Value. 516 516 527 + 528 + 517 517 ---- 518 518 519 - {{putFootnotes/}}531 +[[~[1~]>>path:#_ftnref1]] Referencing the latest minor version of the Data Structure is achieved by the reference including the plus operator on the minor version to indicate it links to the latest stable version, for example 2.0+.0 will resolve to the highest version 2.x.y.