Changes for page 12 Validation and Transformation Language (VTL)
Last modified by Helena K. on 2026/06/10 10:09
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -182,17 +182,17 @@ 182 182 183 183 === 12.3.1. When the mapping occurs === 184 184 185 -The mapping methods between the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] and [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] object classes allow transforming a [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] definition in a [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] one and vice-versa for the [[artefacts>>doc:sdmx:Glossary 2\.1.Artefact.WebHome]] to be manipulated. It should be remembered that [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] programs (i.e. Transformation Schemes) are represented in [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] through the TransformationScheme maintainable class which is composed of Transformations ([[nameable artefacts>>doc:sdmx:Glossary 2\.1.Nameable artefact.WebHome]]). Each Transformation assigns the outcome of the evaluation of a [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] expression to a result: the input operands of the expression and the result can be [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[artefacts>>doc:sdmx:Glossary 2\.1.Artefact.WebHome]]. Every time a [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] object is referenced in a [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] Transformation as an input operand, there is the need to generate a [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] definition of the object, so that the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] operations can take place. This can be made starting from the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] definition and applying a [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]]-[[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] mapping method in the direction from [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] to [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]]. The possible mapping methods from [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] to [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] are described in the following paragraphs and are conceived to allow the automatic deduction of the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] definition of the object from the knowledge of the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] definition. 185 +The (% style="color:#e74c3c" %)mapping(%%) methods between the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] and [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] object classes allow transforming a [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] definition in a [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] one and vice-versa for the [[artefacts>>doc:sdmx:Glossary 2\.1.Artefact.WebHome]] to be manipulated. It should be remembered that [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] programs (i.e. Transformation Schemes) are represented in [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] through the TransformationScheme maintainable class which is composed of Transformations ([[nameable artefacts>>doc:sdmx:Glossary 2\.1.Nameable artefact.WebHome]]). Each Transformation assigns the outcome of the evaluation of a [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] expression to a result: the input operands of the expression and the result can be [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[artefacts>>doc:sdmx:Glossary 2\.1.Artefact.WebHome]]. Every time a [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] object is referenced in a [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] Transformation as an input operand, there is the need to generate a [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] definition of the object, so that the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] operations can take place. This can be made starting from the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] definition and applying a [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]]-[[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] (% style="color:#e74c3c" %)mapping(%%) method in the direction from [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] to [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]]. The possible (% style="color:#e74c3c" %)mapping(%%) methods from [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] to [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] are described in the following paragraphs and are conceived to allow the automatic deduction of the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] definition of the object from the knowledge of the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] definition. 186 186 187 187 In the opposite direction, every time an object calculated by means of [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] must be treated as a [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] object (for example for exchanging it through [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]]), there is the need of a [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] definition of the object, so that the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] operations can take place. The [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] definition is needed for the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] objects for which a [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] use is envisaged{{footnote}}If a calculated artefact is persistent, it needs a persistent definition, i.e. a SDMX definition in a SDMX environment. In addition, possible calculated artefact that are not persistent may require a SDMX definition, for example when the result of a nonpersistent calculation is disseminated through SDMX tools (like an inquiry tool).{{/footnote}}. 188 188 189 -The mapping methods from [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] to [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] are described in the following paragraphs as well, however they do not allow the complete [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] definition to be automatically deduced from the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] definition, more than all because the former typically contains additional information in respect to the latter. For example, the definition of a [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[DSD>>doc:sdmx:Glossary 2\.1.Data structure definition.WebHome]] includes also some mandatory information not available in [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] (like the [[concept scheme>>doc:sdmx:Glossary 2\.1.Concept scheme.WebHome]] to which the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[components>>doc:sdmx:Glossary 2\.1.Component.WebHome]] refer, the ‘usage’ and ‘attributeRelationship’ for the DataAttributes and so on). Therefore the mapping methods from [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] to [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] provide only a general guidance for generating [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] definitions properly starting from the information available in [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]], independently of how the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] definition it is actually generated (manually, automatically or part and part). 189 +The (% style="color:#e74c3c" %)mapping(%%) methods from [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] to [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] are described in the following paragraphs as well, however they do not allow the complete [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] definition to be automatically deduced from the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] definition, more than all because the former typically contains additional information in respect to the latter. For example, the definition of a [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[DSD>>doc:sdmx:Glossary 2\.1.Data structure definition.WebHome]] includes also some mandatory information not available in [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] (like the [[concept scheme>>doc:sdmx:Glossary 2\.1.Concept scheme.WebHome]] to which the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[components>>doc:sdmx:Glossary 2\.1.Component.WebHome]] refer, the ‘usage’ and ‘attributeRelationship’ for the DataAttributes and so on). Therefore the (% style="color:#e74c3c" %)mapping(%%) methods from [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] to [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] provide only a general guidance for generating [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] definitions properly starting from the information available in [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]], independently of how the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] definition it is actually generated (manually, automatically or part and part). 190 190 191 191 === 12.3.2 General mapping of VTL and SDMX data structures === 192 192 193 193 This section makes reference to the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] "Model for data and their structure"{{footnote}}See the VTL 2.0 User Manual{{/footnote}} and the correspondent [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] "[[Data Structure Definition>>doc:sdmx:Glossary 2\.1.Data structure definition.WebHome]]"{{footnote}}See the SDMX Standards Section 2 – Information Model{{/footnote}}. 194 194 195 -The main type of [[artefact>>doc:sdmx:Glossary 2\.1.Artefact.WebHome]] that the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] can manipulate is the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Data Set>>doc:sdmx:Glossary 2\.1.Data set.WebHome]], which in general is mapped to the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]]. This means that a [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] Transformation, in the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] context, expresses the algorithm for calculating a derived [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] starting from some already existing [[Dataflows>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] (either collected or derived).{{footnote}}Besides the mapping between one SDMX Dataflow and one VTL Data Set, it is also possible to map distinct parts of a SDMX Dataflow to different VTL Data Set, as explained in a following paragraph.{{/footnote}} 195 +The main type of [[artefact>>doc:sdmx:Glossary 2\.1.Artefact.WebHome]] that the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] can manipulate is the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Data Set>>doc:sdmx:Glossary 2\.1.Data set.WebHome]], which in general is (% style="color:#e74c3c" %)mapped(%%) to the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]]. This means that a [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] Transformation, in the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] context, expresses the algorithm for calculating a derived [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] starting from some already existing [[Dataflows>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] (either collected or derived).{{footnote}}Besides the mapping between one SDMX Dataflow and one VTL Data Set, it is also possible to map distinct parts of a SDMX Dataflow to different VTL Data Set, as explained in a following paragraph.{{/footnote}} 196 196 197 197 While the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] Transformations are defined in term of [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] definitions, they are assumed to be executed on instances of such [[Dataflows>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]], provided at runtime to the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] engine (the mechanism for identifying the instances to be processed are not part of the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] specifications and depend on the implementation of the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]]-based systems). As already said, the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Datasets>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] are instances of [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Dataflows>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]], therefore a [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] Transformation defined on some [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Dataflows>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] can be applied on some corresponding [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Datasets>>doc:sdmx:Glossary 2\.1.Data set.WebHome]]. 198 198 ... ... @@ -202,18 +202,18 @@ 202 202 203 203 Correspondingly, in the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] implementation of the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]], the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] Identifiers can be (optionally) distinguished in similar sub-classes (Simple Identifier, Time Identifier) even if such a distinction is not evidenced in the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] IM. 204 204 205 -The possible mapping options are described in more detail in the following sections. 205 +The possible (% style="color:#e74c3c" %)mapping(%%) options are described in more detail in the following sections. 206 206 207 207 === 12.3.3 Mapping from SDMX to VTL data structures === 208 208 209 209 ==== 12.3.3.1 Basic Mapping ==== 210 210 211 -The main mapping method from [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] to [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] is called **Basic **mapping. This is considered as the default mapping method and is applied unless a different method is specified through the VtlMappingScheme and VtlDataflowMapping classes. 211 +The main (% style="color:#e74c3c" %)mapping(%%) method from [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] to [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] is called **Basic **(% style="color:#e74c3c" %)mapping(%%). This is considered as the default (% style="color:#e74c3c" %)mapping(%%) method and is applied unless a different method is specified through the VtlMappingScheme and VtlDataflowMapping classes. 212 212 213 213 When transforming **from [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] to [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]]**, this method consists in leaving the [[components>>doc:sdmx:Glossary 2\.1.Component.WebHome]] unchanged and maintaining their names and roles, according to the following table: 214 214 215 215 (% style="width:468.294px" %) 216 -|(% style="width:196px" %)**SDMX**|(% style="width:269px" %)**VTL** 216 +|(% style="width:196px" %)**[[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]]**|(% style="width:269px" %)**[[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]]** 217 217 |(% style="width:196px" %)[[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]]|(% style="width:269px" %)(Simple) Identifier 218 218 |(% style="width:196px" %)TimeDimension|(% style="width:269px" %)(Time) Identifier 219 219 |(% style="width:196px" %)[[Measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]]|(% style="width:269px" %)[[Measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] ... ... @@ -221,33 +221,33 @@ 221 221 222 222 The [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] DataAttributes, in [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] they are all considered "at data point / observation (% style="color:#e74c3c" %)level(%%)" (i.e. dependent on all the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] Identifiers), because [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] does not have the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] AttributeRelationships, which defines the construct to which the DataAttribute is related (e.g. observation, [[dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] or set or group of [[dimensions>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]], whole [[data set>>doc:sdmx:Glossary 2\.1.Data set.WebHome]]). 223 223 224 -With the Basic mapping, one [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] observation^^27^^ generates one [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] data point. 224 +With the Basic (% style="color:#e74c3c" %)mapping(%%), one [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] observation^^27^^ generates one [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] data point. 225 225 226 226 ==== 12.3.3.2 Pivot Mapping ==== 227 227 228 -An alternative mapping method from [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] to [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] is the **Pivot **mapping, which makes sense and is different from the Basic method only for the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] data structures that contain a [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] that plays the role of [[measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] [[dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] (like in [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] 2.1) and just one [[Measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]]. Through this method, these structures can be mapped to multimeasure [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] data structures. Besides that, a user may choose to use any [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] acting as a list of [[Measures>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] (e.g., a [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] with [[indicators>>doc:sdmx:Glossary 2\.1.Statistical indicator.WebHome]]), either by considering the “[[Measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]]” role of a [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]], or at will using any coded [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]]. Of course, in [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] 3.0, this can only work when only one [[Measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] is defined in the [[DSD>>doc:sdmx:Glossary 2\.1.Data structure definition.WebHome]]. 228 +An alternative (% style="color:#e74c3c" %)mapping(%%) method from [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] to [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] is the **Pivot **(% style="color:#e74c3c" %)mapping(%%), which makes sense and is different from the Basic method only for the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] data structures that contain a [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] that plays the role of [[measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] [[dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] (like in [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] 2.1) and just one [[Measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]]. Through this method, these structures can be (% style="color:#e74c3c" %)mapped(%%) to multimeasure [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] data structures. Besides that, a user may choose to use any [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] acting as a list of [[Measures>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] (e.g., a [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] with [[indicators>>doc:sdmx:Glossary 2\.1.Statistical indicator.WebHome]]), either by considering the “[[Measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]]” role of a [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]], or at will using any coded [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]]. Of course, in [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] 3.0, this can only work when only one [[Measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] is defined in the [[DSD>>doc:sdmx:Glossary 2\.1.Data structure definition.WebHome]]. 229 229 230 -In [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] 2.1 the MeasureDimension was a subclass of DimensionComponent like [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] and TimeDimension. In the current [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] version, this subclass does not exist anymore, however a [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] can have the role of [[measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] [[dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] (i.e. a [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] that contributes to the identification of the [[measures>>doc:sdmx:Glossary 2\.1.Measure.WebHome]]). In [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] 2.1 a DataStructure could have zero or one MeasureDimensions, in the current version of the standard, from zero to many [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] may have the role of [[measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] [[dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]]. Hereinafter a [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] that plays the role of [[measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] [[dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] is referenced for simplicity as “MeasureDimension“, i.e. maintaining the capital letters and the courier font even if the MeasureDimension is not anymore a class in the [[SDMX Information Model>>doc:sdmx:Glossary 2\.1.SDMX Information Model.WebHome]] of the current [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] version. For the sake of simplicity, the description below considers just one [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] having the role of MeasureDimension (i.e., the more simple and common case). Nevertheless, it maintains its validity also if in the DataStructure there are more [[dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] with the role of MeasureDimensions: in this case what is said about the MeasureDimension must be applied to the combination of all the MeasureDimensions considered as a joint [[variable>>doc:sdmx:Glossary 2\.1.Statistical variable.WebHome]]{{footnote}}E.g., if in the data structure there exist 3 Dimensions C,D,E having the role of MeasureDimension, they should be considered as a joint MeasureDimension Z=(C,D,E); therefore when the description says “each possible value Cj of the MeasureDimension …” it means “each possible combination of values (Cj, Dk, Ew) of the joint MeasureDimension Z=(C,D,E)”.{{/footnote}}. 230 +In [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] 2.1 the MeasureDimension was a subclass of DimensionComponent like [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] and TimeDimension. In the current [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] (% style="color:#e74c3c" %)version(%%), this subclass does not exist anymore, however a [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] can have the role of [[measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] [[dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] (i.e. a [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] that contributes to the identification of the [[measures>>doc:sdmx:Glossary 2\.1.Measure.WebHome]]). In [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] 2.1 a DataStructure could have zero or one MeasureDimensions, in the current (% style="color:#e74c3c" %)version(%%) of the standard, from zero to many [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] may have the role of [[measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] [[dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]]. Hereinafter a [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] that plays the role of [[measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] [[dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] is referenced for simplicity as “MeasureDimension“, i.e. maintaining the capital letters and the courier font even if the MeasureDimension is not anymore a class in the [[SDMX Information Model>>doc:sdmx:Glossary 2\.1.SDMX Information Model.WebHome]] of the current [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] (% style="color:#e74c3c" %)version(%%). For the sake of simplicity, the description below considers just one [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] having the role of MeasureDimension (i.e., the more simple and common case). Nevertheless, it maintains its validity also if in the DataStructure there are more [[dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] with the role of MeasureDimensions: in this case what is said about the MeasureDimension must be applied to the combination of all the MeasureDimensions considered as a joint [[variable>>doc:sdmx:Glossary 2\.1.Statistical variable.WebHome]]{{footnote}}E.g., if in the data structure there exist 3 Dimensions C,D,E having the role of MeasureDimension, they should be considered as a joint MeasureDimension Z=(C,D,E); therefore when the description says “each possible value Cj of the MeasureDimension …” it means “each possible combination of values (Cj, Dk, Ew) of the joint MeasureDimension Z=(C,D,E)”.{{/footnote}}. 231 231 232 232 Among other things, the Pivot method provides also backward compatibility with the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] 2.1 data structures that contained a MeasureDimension. 233 233 234 -If applied to [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] structures that do not contain any MeasureDimension, this method behaves like the Basic mapping (see the previous paragraph). 234 +If applied to [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] structures that do not contain any MeasureDimension, this method behaves like the Basic (% style="color:#e74c3c" %)mapping(%%) (see the previous paragraph). 235 235 236 -The [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] structures that contain a MeasureDimension are mapped as described below (this mapping is equivalent to a pivoting operation): 236 +The [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] structures that contain a MeasureDimension are (% style="color:#e74c3c" %)mapped(%%) as described below (this (% style="color:#e74c3c" %)mapping(%%) is equivalent to a pivoting operation): 237 237 238 238 * A [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] simple [[dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] becomes a [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] (simple) identifier and a [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] TimeDimension becomes a [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] (time) identifier; 239 -* Each possible [[Code>>doc:sdmx:Glossary 2\.1.Code.WebHome]] Cj of the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] MeasureDimension is mapped to a [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]], having the same name as the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Code>>doc:sdmx:Glossary 2\.1.Code.WebHome]] (i.e. Cj); the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] Cj is a new [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[component>>doc:sdmx:Glossary 2\.1.Component.WebHome]] even if the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] data structure has not such a [[Component>>doc:sdmx:Glossary 2\.1.Component.WebHome]]; 240 -* The [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] MeasureDimension is not mapped to [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] (it disappears in the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] Data Structure); 241 -* The [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] is not mapped to [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] as well (it disappears in the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] Data Structure); 242 -* An [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] DataAttribute is mapped in different ways according to its AttributeRelationship: 243 -** If, according to the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] AttributeRelationship, the values of the DataAttribute do not depend on the values of the MeasureDimension, the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] DataAttribute becomes a [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Attribute>>doc:sdmx:Glossary 2\.1.Attribute.WebHome]] having the same name. This happens if the AttributeRelationship is not specified (i.e. the DataAttribute does not depend on any DimensionComponent and therefore is at [[data set>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] level), or if it refers to a set (or a group) of [[dimensions>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] which does not include the MeasureDimension; 244 -** Otherwise, if, according to the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] AttributeRelationship, the values of the DataAttribute depend on the MeasureDimension, the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] DataAttribute is mapped to one [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Attribute>>doc:sdmx:Glossary 2\.1.Attribute.WebHome]] for each possible [[Code>>doc:sdmx:Glossary 2\.1.Code.WebHome]] of the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] MeasureDimension. By default, the names of the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Attributes>>doc:sdmx:Glossary 2\.1.Attribute.WebHome]] are obtained by concatenating the name of the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] DataAttribute and the names of the correspondent [[Code>>doc:sdmx:Glossary 2\.1.Code.WebHome]] of the MeasureDimension separated by underscore. For example, if the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] DataAttribute is named DA and the possible [[Codes>>doc:sdmx:Glossary 2\.1.Code.WebHome]] of the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] MeasureDimension are named C1, C2, …, Cn, then the corresponding [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Attributes>>doc:sdmx:Glossary 2\.1.Attribute.WebHome]] will be named DA_C1, DA_C2, …, DA_Cn (if different names are desired, they can be achieved afterwards by renaming the [[Attributes>>doc:sdmx:Glossary 2\.1.Attribute.WebHome]] through [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] operators). 245 -** Like in the Basic mapping, the resulting [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Attributes>>doc:sdmx:Glossary 2\.1.Attribute.WebHome]] are considered as dependent on all the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] identifiers (i.e. "at data point / observation level"), because [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] does not have the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] notion of [[Attribute Relationship>>doc:sdmx:Glossary 2\.1.Attribute relationship.WebHome]]. 239 +* Each possible [[Code>>doc:sdmx:Glossary 2\.1.Code.WebHome]] Cj of the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] MeasureDimension is (% style="color:#e74c3c" %)mapped(%%) to a [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]], having the same name as the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Code>>doc:sdmx:Glossary 2\.1.Code.WebHome]] (i.e. Cj); the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] Cj is a new [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[component>>doc:sdmx:Glossary 2\.1.Component.WebHome]] even if the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] data structure has not such a [[Component>>doc:sdmx:Glossary 2\.1.Component.WebHome]]; 240 +* The [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] MeasureDimension is not (% style="color:#e74c3c" %)mapped(%%) to [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] (it disappears in the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] Data Structure); 241 +* The [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] is not (% style="color:#e74c3c" %)mapped(%%) to [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] as well (it disappears in the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] Data Structure); 242 +* An [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] DataAttribute is (% style="color:#e74c3c" %)mapped(%%) in different ways according to its AttributeRelationship: 243 +** If, according to the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] AttributeRelationship, the values of the DataAttribute do not depend on the values of the MeasureDimension, the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] DataAttribute becomes a [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Attribute>>doc:sdmx:Glossary 2\.1.Attribute.WebHome]] having the same name. This happens if the AttributeRelationship is not specified (i.e. the DataAttribute does not depend on any DimensionComponent and therefore is at [[data set>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] (% style="color:#e74c3c" %)level(%%)), or if it refers to a set (or a group) of [[dimensions>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] which does not include the MeasureDimension; 244 +** Otherwise, if, according to the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] AttributeRelationship, the values of the DataAttribute depend on the MeasureDimension, the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] DataAttribute is (% style="color:#e74c3c" %)mapped(%%) to one [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Attribute>>doc:sdmx:Glossary 2\.1.Attribute.WebHome]] for each possible [[Code>>doc:sdmx:Glossary 2\.1.Code.WebHome]] of the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] MeasureDimension. By default, the names of the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Attributes>>doc:sdmx:Glossary 2\.1.Attribute.WebHome]] are obtained by concatenating the name of the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] DataAttribute and the names of the correspondent [[Code>>doc:sdmx:Glossary 2\.1.Code.WebHome]] of the MeasureDimension separated by underscore. For example, if the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] DataAttribute is named DA and the possible [[Codes>>doc:sdmx:Glossary 2\.1.Code.WebHome]] of the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] MeasureDimension are named C1, C2, …, Cn, then the corresponding [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Attributes>>doc:sdmx:Glossary 2\.1.Attribute.WebHome]] will be named DA_C1, DA_C2, …, DA_Cn (if different names are desired, they can be achieved afterwards by renaming the [[Attributes>>doc:sdmx:Glossary 2\.1.Attribute.WebHome]] through [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] operators). 245 +** Like in the Basic (% style="color:#e74c3c" %)mapping(%%), the resulting [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Attributes>>doc:sdmx:Glossary 2\.1.Attribute.WebHome]] are considered as dependent on all the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] identifiers (i.e. "at data point / observation (% style="color:#e74c3c" %)level(%%)"), because [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] does not have the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] notion of [[Attribute Relationship>>doc:sdmx:Glossary 2\.1.Attribute relationship.WebHome]]. 246 246 247 -The summary mapping table of the "pivot" mapping from [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] to [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] for the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] data structures that contain a MeasureDimension is the following: 247 +The summary (% style="color:#e74c3c" %)mapping(%%) table of the "pivot" (% style="color:#e74c3c" %)mapping(%%) from [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] to [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] for the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] data structures that contain a MeasureDimension is the following: 248 248 249 249 (% style="width:739.294px" %) 250 -|(% style="width:335px" %)**SDMX**|(% style="width:400px" %)**VTL** 250 +|(% style="width:335px" %)**[[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]]**|(% style="width:400px" %)**[[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]]** 251 251 |(% style="width:335px" %)[[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]]|(% style="width:400px" %)(Simple) Identifier 252 252 |(% style="width:335px" %)TimeDimension|(% style="width:400px" %)(Time) Identifier 253 253 |(% style="width:335px" %)MeasureDimension & one [[Measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]]|(% style="width:400px" %)One [[Measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] for each [[Code>>doc:sdmx:Glossary 2\.1.Code.WebHome]] of the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] MeasureDimension ... ... @@ -257,9 +257,9 @@ 257 257 [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] MeasureDimension 258 258 ))) 259 259 260 -Using this mapping method, the [[components>>doc:sdmx:Glossary 2\.1.Component.WebHome]] of the data structure can change in the conversion from [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] to [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] and it must be taken into account that the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] statements can reference only the [[components>>doc:sdmx:Glossary 2\.1.Component.WebHome]] of the resulting [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] data structure. 260 +Using this (% style="color:#e74c3c" %)mapping(%%) method, the [[components>>doc:sdmx:Glossary 2\.1.Component.WebHome]] of the data structure can change in the conversion from [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] to [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] and it must be taken into account that the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] statements can reference only the [[components>>doc:sdmx:Glossary 2\.1.Component.WebHome]] of the resulting [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] data structure. 261 261 262 -At observation / data point level, calling Cj (j=1, … n) the j^^th^^ [[Code>>doc:sdmx:Glossary 2\.1.Code.WebHome]] of the MeasureDimension: 262 +At observation / data point (% style="color:#e74c3c" %)level(%%), calling Cj (j=1, … n) the j^^th^^ [[Code>>doc:sdmx:Glossary 2\.1.Code.WebHome]] of the MeasureDimension: 263 263 264 264 * The set of [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] observations having the same values for all the [[Dimensions>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] except than the MeasureDimension become one multi-[[measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] Data Point, having one [[Measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] for each [[Code>>doc:sdmx:Glossary 2\.1.Code.WebHome]] Cj of the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] MeasureDimension; 265 265 * The values of the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] simple [[Dimensions>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]], TimeDimension and DataAttributes not depending on the MeasureDimension (these [[components>>doc:sdmx:Glossary 2\.1.Component.WebHome]] by definition have always the same values for all the observations of the set above) become the values of the corresponding [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] (simple) Identifiers, (time) Identifier and [[Attributes>>doc:sdmx:Glossary 2\.1.Attribute.WebHome]]. ... ... @@ -272,22 +272,22 @@ 272 272 273 273 The Basic_A2M and Pivot_A2M behaves respectively like the Basic and Pivot methods, except that the final [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[components>>doc:sdmx:Glossary 2\.1.Component.WebHome]], which according to the Basic and Pivot methods would have had the role of [[Attribute>>doc:sdmx:Glossary 2\.1.Attribute.WebHome]], assume instead the role of [[Measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]]. 274 274 275 -Proper [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] features allow changing the role of specific [[attributes>>doc:sdmx:Glossary 2\.1.Attribute.WebHome]] even after the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] to [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] mapping: they can be useful when only some of the DataAttributes need to be managed as [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Measures>>doc:sdmx:Glossary 2\.1.Measure.WebHome]]. 275 +Proper [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] features allow changing the role of specific [[attributes>>doc:sdmx:Glossary 2\.1.Attribute.WebHome]] even after the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] to [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] (% style="color:#e74c3c" %)mapping(%%): they can be useful when only some of the DataAttributes need to be managed as [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Measures>>doc:sdmx:Glossary 2\.1.Measure.WebHome]]. 276 276 277 277 === 12.3.4 Mapping from VTL to SDMX data structures === 278 278 279 279 ==== 12.3.4.1 Basic Mapping ==== 280 280 281 -The main mapping method **from [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] to [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]]** is called **Basic **mapping as well. 281 +The main (% style="color:#e74c3c" %)mapping(%%) method **from [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] to [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]]** is called **Basic **(% style="color:#e74c3c" %)mapping(%%) as well. 282 282 283 283 This is considered as the default (% style="color:#e74c3c" %)mapping(%%) method and is applied unless a different method is specified through the VtlMappingScheme and VtlDataflowMapping classes. 284 284 285 -The method consists in leaving the [[components>>doc:sdmx:Glossary 2\.1.Component.WebHome]] unchanged and maintaining their names and roles in [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]], according to the following mapping table, which is the same as the basic mapping from [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] to [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]], only seen in the opposite direction. 285 +The method consists in leaving the [[components>>doc:sdmx:Glossary 2\.1.Component.WebHome]] unchanged and maintaining their names and roles in [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]], according to the following (% style="color:#e74c3c" %)mapping(%%) table, which is the same as the basic (% style="color:#e74c3c" %)mapping(%%) from [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] to [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]], only seen in the opposite direction. 286 286 287 -Mapping table: 287 +(% style="color:#e74c3c" %)Mapping(%%) table: 288 288 289 289 (% style="width:470.294px" %) 290 -|(% style="width:262px" %)**VTL**|(% style="width:205px" %)**SDMX** 290 +|(% style="width:262px" %)**[[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]]**|(% style="width:205px" %)**[[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]]** 291 291 |(% style="width:262px" %)(Simple) Identifier|(% style="width:205px" %)[[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] 292 292 |(% style="width:262px" %)(Time) Identifier|(% style="width:205px" %)TimeDimension 293 293 |(% style="width:262px" %)[[Measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]]|(% style="width:205px" %)[[Measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] ... ... @@ -295,38 +295,38 @@ 295 295 296 296 If the distinction between simple identifier and time identifier is not maintained in the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] environment, the [[classification>>doc:sdmx:Glossary 2\.1.Statistical Classification.WebHome]] between [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] and TimeDimension exists only in [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]], as declared in the relevant DataStructureDefinition. 297 297 298 -Regarding the [[Attributes>>doc:sdmx:Glossary 2\.1.Attribute.WebHome]], because [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] considers all of them "at observation level", the corresponding [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] DataAttributes should be put "at observation level" as well, unless some different information about their AttributeRelationship is otherwise available. 298 +Regarding the [[Attributes>>doc:sdmx:Glossary 2\.1.Attribute.WebHome]], because [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] considers all of them "at observation (% style="color:#e74c3c" %)level(%%)", the corresponding [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] DataAttributes should be put "at observation (% style="color:#e74c3c" %)level(%%)" as well, unless some different information about their AttributeRelationship is otherwise available. 299 299 300 -Note that the basic mappings in the two directions (from [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] to [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] and vice-versa) are (almost completely) reversible. In fact, if a [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] structure is mapped to a [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] structure and then the latter is mapped back to [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]], the resulting data structure is like the original one (apart for the AttributeRelationship, that can be different if the original [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] structure contains DataAttributes that are not at observation level). In reverse order, if a [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] structure is mapped to [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] and then the latter is mapped back to [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]], the original data structure is obtained. 300 +Note that the basic mappings in the two directions (from [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] to [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] and vice-versa) are (almost completely) reversible. In fact, if a [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] structure is (% style="color:#e74c3c" %)mapped(%%) to a [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] structure and then the latter is (% style="color:#e74c3c" %)mapped(%%) back to [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]], the resulting data structure is like the original one (apart for the AttributeRelationship, that can be different if the original [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] structure contains DataAttributes that are not at observation (% style="color:#e74c3c" %)level(%%)). In reverse order, if a [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] structure is (% style="color:#e74c3c" %)mapped(%%) to [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] and then the latter is (% style="color:#e74c3c" %)mapped(%%) back to [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]], the original data structure is obtained. 301 301 302 302 As said, the resulting [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] definitions must be compliant with the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] consistency rules. For example, the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[DSD>>doc:sdmx:Glossary 2\.1.Data structure definition.WebHome]] must have the AttributeRelationship for the DataAttributes, which does not exist in [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]]. 303 303 304 304 ==== 12.3.4.2 Unpivot Mapping ==== 305 305 306 -An alternative mapping method from [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] to [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] is the **Unpivot **mapping. 306 +An alternative (% style="color:#e74c3c" %)mapping(%%) method from [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] to [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] is the **Unpivot **(% style="color:#e74c3c" %)mapping(%%). 307 307 308 -Although this mapping method can be used in any case, it makes major sense in case the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] data structure has more than one [[measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] [[component>>doc:sdmx:Glossary 2\.1.Component.WebHome]] (multi-[[measures>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] structure). This is used to support the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] 2.1 case of a MeasureDimension or any other [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] acting as a list of [[Measures>>doc:sdmx:Glossary 2\.1.Measure.WebHome]], under the assumptions explained in section “Pivot Mapping”. 308 +Although this (% style="color:#e74c3c" %)mapping(%%) method can be used in any case, it makes major sense in case the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] data structure has more than one [[measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] [[component>>doc:sdmx:Glossary 2\.1.Component.WebHome]] (multi-[[measures>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] structure). This is used to support the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] 2.1 case of a MeasureDimension or any other [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] acting as a list of [[Measures>>doc:sdmx:Glossary 2\.1.Measure.WebHome]], under the assumptions explained in section “Pivot (% style="color:#e74c3c" %)Mapping(%%)”. 309 309 310 310 The multi-[[measures>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] structures are converted to [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Dataflows>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] having an added MeasureDimension, which disambiguates the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] multiple [[Measures>>doc:sdmx:Glossary 2\.1.Measure.WebHome]], and a new [[Measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] in place of the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] ones, containing the values of the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Measures>>doc:sdmx:Glossary 2\.1.Measure.WebHome]]. 311 311 312 -The **unpivot** mapping behaves like follows: 312 +The **unpivot** (% style="color:#e74c3c" %)mapping(%%) behaves like follows: 313 313 314 -* like in the basic mapping, a [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] (simple) identifier becomes a [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] and a [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] (time) identifier becomes a [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] TimeDimension (as said, a [[measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] identifier cannot exist in multi-[[measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] structures); 314 +* like in the basic (% style="color:#e74c3c" %)mapping(%%), a [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] (simple) identifier becomes a [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] and a [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] (time) identifier becomes a [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] TimeDimension (as said, a [[measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] identifier cannot exist in multi-[[measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] structures); 315 315 * a MeasureDimension [[component>>doc:sdmx:Glossary 2\.1.Component.WebHome]] called "measure_name" is added to the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] DataStructure; 316 316 * a [[Measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] [[component>>doc:sdmx:Glossary 2\.1.Component.WebHome]] called "obs_value" is added to the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] DataStructure; 317 -* each [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] is mapped to a [[Code>>doc:sdmx:Glossary 2\.1.Code.WebHome]] of the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] MeasureDimension having the same name as the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] (therefore all the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] [[Components>>doc:sdmx:Glossary 2\.1.Component.WebHome]] do not originate [[Components>>doc:sdmx:Glossary 2\.1.Component.WebHome]] in the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] DataStructure); 317 +* each [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] is (% style="color:#e74c3c" %)mapped(%%) to a [[Code>>doc:sdmx:Glossary 2\.1.Code.WebHome]] of the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] MeasureDimension having the same name as the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] (therefore all the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] [[Components>>doc:sdmx:Glossary 2\.1.Component.WebHome]] do not originate [[Components>>doc:sdmx:Glossary 2\.1.Component.WebHome]] in the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] DataStructure); 318 318 * a [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Attribute>>doc:sdmx:Glossary 2\.1.Attribute.WebHome]] becomes a [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] DataAttribute having AttributeRelationship referred to all the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] DimensionComponents including the TimeDimension and except the MeasureDimension. 319 319 320 -The summary mapping table of the **unpivot** mapping method is the following: 320 +The summary (% style="color:#e74c3c" %)mapping(%%) table of the **unpivot** (% style="color:#e74c3c" %)mapping(%%) method is the following: 321 321 322 322 (% style="width:638.294px" %) 323 -|(% style="width:200px" %)**VTL**|(% style="width:435px" %)**SDMX** 323 +|(% style="width:200px" %)**[[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]]**|(% style="width:435px" %)**[[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]]** 324 324 |(% style="width:200px" %)(Simple) Identifier|(% style="width:435px" %)[[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] 325 325 |(% style="width:200px" %)(Time) Identifier|(% style="width:435px" %)TimeDimension 326 326 |(% style="width:200px" %)All [[Measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] [[Components>>doc:sdmx:Glossary 2\.1.Component.WebHome]]|(% style="width:435px" %)MeasureDimension (having one [[Code>>doc:sdmx:Glossary 2\.1.Code.WebHome]] for each [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] [[component>>doc:sdmx:Glossary 2\.1.Component.WebHome]]) & one [[Measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] 327 327 |(% style="width:200px" %)[[Attribute>>doc:sdmx:Glossary 2\.1.Attribute.WebHome]]|(% style="width:435px" %)DataAttribute depending on all [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Dimensions>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] including the TimeDimension and except the MeasureDimension 328 328 329 -At observation / data point level: 329 +At observation / data point (% style="color:#e74c3c" %)level(%%): 330 330 331 331 * a multi-[[measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] Data Point becomes a set of [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] observations, one for each [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]]; 332 332 * the values of the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] Identifiers become the values of the corresponding [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] DimensionComponents, for all the observations of the set above; ... ... @@ -336,18 +336,18 @@ 336 336 337 337 If desired, this method can be applied also to mono-[[measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] structures, provided that none of the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Components>>doc:sdmx:Glossary 2\.1.Component.WebHome]] has already the role of [[Measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] Identifier. Like in the general case, a MeasureDimension [[component>>doc:sdmx:Glossary 2\.1.Component.WebHome]] called “measure_name” is added to the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] DataStructure, in this case it has just one possible [[Code>>doc:sdmx:Glossary 2\.1.Code.WebHome]], corresponding to the name of the unique [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]]. The original [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] would not become a [[Component>>doc:sdmx:Glossary 2\.1.Component.WebHome]] in the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] data structure. The value of the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] would be assigned to the unique [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] called “obs_value”. 338 338 339 -In any case, the resulting [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] definitions must be compliant with the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] consistency rules. For example, the possible [[Codes>>doc:sdmx:Glossary 2\.1.Code.WebHome]] of the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] MeasureDimension need to be listed in a [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Codelist>>doc:sdmx:Glossary 2\.1.Code list.WebHome]], with proper id, agency and [[version>>doc:sdmx:Glossary2\.1.Version.WebHome]]; moreover, the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[DSD>>doc:sdmx:Glossary 2\.1.Data structure definition.WebHome]] must have the AttributeRelationship for the DataAttributes, which does not exist in [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]].339 +In any case, the resulting [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] definitions must be compliant with the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] consistency rules. For example, the possible [[Codes>>doc:sdmx:Glossary 2\.1.Code.WebHome]] of the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] MeasureDimension need to be listed in a [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Codelist>>doc:sdmx:Glossary 2\.1.Code list.WebHome]], with proper id, agency and (% style="color:#e74c3c" %)version(%%); moreover, the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[DSD>>doc:sdmx:Glossary 2\.1.Data structure definition.WebHome]] must have the AttributeRelationship for the DataAttributes, which does not exist in [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]]. 340 340 341 341 ==== 12.3.4.3 From VTL Measures to SDMX Data Attributes ==== 342 342 343 -More than all for the multi-[[measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] structures (having more than one [[Measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] [[Component>>doc:sdmx:Glossary 2\.1.Component.WebHome]]), it may happen that the [[Measures>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] of the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] Data Structure need to be managed as DataAttributes in [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]]. Therefore, a third mapping method consists in transforming some [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[measures>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] in a corresponding [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Measures>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] and all the other [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Measures>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] in [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] DataAttributes. This method is called M2A (“M2A” stands for “[[Measures>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] to DataAttributes”). 343 +More than all for the multi-[[measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] structures (having more than one [[Measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] [[Component>>doc:sdmx:Glossary 2\.1.Component.WebHome]]), it may happen that the [[Measures>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] of the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] Data Structure need to be managed as DataAttributes in [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]]. Therefore, a third (% style="color:#e74c3c" %)mapping(%%) method consists in transforming some [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[measures>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] in a corresponding [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Measures>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] and all the other [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Measures>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] in [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] DataAttributes. This method is called M2A (“M2A” stands for “[[Measures>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] to DataAttributes”). 344 344 345 345 All [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Measures>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] maintain their names in [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]]. The [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] [[Components>>doc:sdmx:Glossary 2\.1.Component.WebHome]] that become [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] DataAttributes are the ones declared as DataAttributes in the target [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[data structure definition>>doc:sdmx:Glossary 2\.1.Data structure definition.WebHome]]. 346 346 347 -The mapping table is the following: 347 +The (% style="color:#e74c3c" %)mapping(%%) table is the following: 348 348 349 349 (% style="width:467.294px" %) 350 -|(% style="width:214px" %)VTL|(% style="width:250px" %)SDMX 350 +|(% style="width:214px" %)[[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]]|(% style="width:250px" %)[[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] 351 351 |(% style="width:214px" %)(Simple) Identifier|(% style="width:250px" %)[[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] 352 352 |(% style="width:214px" %)(Time) Identifier|(% style="width:250px" %)TimeDimension 353 353 |(% style="width:214px" %)Some [[Measures>>doc:sdmx:Glossary 2\.1.Measure.WebHome]]|(% style="width:250px" %)[[Measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] ... ... @@ -358,33 +358,33 @@ 358 358 359 359 === 12.3.5 Declaration of the mapping methods between data structures === 360 360 361 -In order to define and understand properly [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] Transformations, the applied mapping methods must be specified in the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[structural metadata>>doc:sdmx:Glossary 2\.1.Structural metadata.WebHome]]. If the default mapping method (Basic) is applied, no specification is needed. 361 +In order to define and understand properly [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] Transformations, the applied (% style="color:#e74c3c" %)mapping(%%) methods must be specified in the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[structural metadata>>doc:sdmx:Glossary 2\.1.Structural metadata.WebHome]]. If the default (% style="color:#e74c3c" %)mapping(%%) method (Basic) is applied, no specification is needed. 362 362 363 -A customized mapping can be defined through the VtlMappingScheme and VtlDataflowMapping classes (see the section of the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] IM relevant to the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]]). A VtlDataflowMapping allows specifying the mapping methods to be used for a specific [[dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]], both in the direction from [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] to [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] (toVtlMappingMethod) and from [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] to [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] (fromVtlMappingMethod); in fact a VtlDataflowMapping associates the structured URN that identifies a [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] to its [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] alias and its mapping methods. 363 +A customized (% style="color:#e74c3c" %)mapping(%%) can be defined through the VtlMappingScheme and VtlDataflowMapping classes (see the section of the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] IM relevant to the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]]). A VtlDataflowMapping allows specifying the (% style="color:#e74c3c" %)mapping(%%) methods to be used for a specific [[dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]], both in the direction from [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] to [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] (toVtlMappingMethod) and from [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] to [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] (fromVtlMappingMethod); in fact a VtlDataflowMapping associates the structured URN that identifies a [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] to its [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] alias and its (% style="color:#e74c3c" %)mapping(%%) methods. 364 364 365 -It is possible to specify the toVtlMappingMethod and fromVtlMappingMethod also for the conventional [[dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] called "generic_dataflow": in this case the specified mapping methods are intended to become the default ones, overriding the "Basic" methods. In turn, the toVtlMappingMethod and fromVtlMappingMethod declared for a specific [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] are intended to override the default ones for such a [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]]. 365 +It is possible to specify the toVtlMappingMethod and fromVtlMappingMethod also for the conventional [[dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] called "generic_dataflow": in this case the specified (% style="color:#e74c3c" %)mapping(%%) methods are intended to become the default ones, overriding the "Basic" methods. In turn, the toVtlMappingMethod and fromVtlMappingMethod declared for a specific [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] are intended to override the default ones for such a [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]]. 366 366 367 367 The VtlMappingScheme is a container for zero or more VtlDataflowMapping (it may contain also mappings towards [[artefacts>>doc:sdmx:Glossary 2\.1.Artefact.WebHome]] other than [[dataflows>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]]). 368 368 369 369 === 12.3.6 Mapping dataflow subsets to distinct VTL Data Sets === 370 370 371 -Until now it has been assumed to map one SMDX [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] to one [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Data Set>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] and vice-versa. This mapping one-to-one is not mandatory according to [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] because a [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Data Set>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] is meant to be a set of observations (data points) on a logical plane, having the same logical data structure and the same general meaning, independently of the possible physical [[representation>>doc:sdmx:Glossary 2\.1.Representation.WebHome]] or storage (see [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] 2.0 User Manual page 24), therefore a [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] can be seen either as a unique set of data observations (corresponding to one [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Data Set>>doc:sdmx:Glossary 2\.1.Data set.WebHome]]) or as the union of many sets of data observations (each one corresponding to a distinct [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Data Set>>doc:sdmx:Glossary 2\.1.Data set.WebHome]]). 371 +Until now it has been assumed to (% style="color:#e74c3c" %)map(%%) one SMDX [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] to one [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Data Set>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] and vice-versa. This (% style="color:#e74c3c" %)mapping(%%) one-to-one is not mandatory according to [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] because a [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Data Set>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] is meant to be a set of observations (data points) on a logical plane, having the same logical data structure and the same general meaning, independently of the possible physical [[representation>>doc:sdmx:Glossary 2\.1.Representation.WebHome]] or storage (see [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] 2.0 User Manual page 24), therefore a [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] can be seen either as a unique set of data observations (corresponding to one [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Data Set>>doc:sdmx:Glossary 2\.1.Data set.WebHome]]) or as the union of many sets of data observations (each one corresponding to a distinct [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Data Set>>doc:sdmx:Glossary 2\.1.Data set.WebHome]]). 372 372 373 373 As a matter of fact, in some cases it can be useful to define [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] operations involving definite parts of a [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] instead than the whole.{{footnote}}A typical example of this kind is the validation, and more in general the manipulation, of individual time series belonging to the same Dataflow, identifiable through the DimensionComponents of the Dataflow except the TimeDimension. The coding of these kind of operations might be simplified by mapping distinct time series (i.e. different parts of a SDMX Dataflow) to distinct VTL Data Sets.{{/footnote}} 374 374 375 -Therefore, in order to make the coding of [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] operations simpler when applied on parts of [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Dataflows>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]], it is allowed to map distinct parts of a [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] to distinct [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Data Sets>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] according to the following rules and conventions. This kind of mapping is possible both from [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] to [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] and from [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] to [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]], as better explained below.{{footnote}}Please note that this kind of mapping is only an option at disposal of the definer of VTL Transformations; in fact it remains always possible to manipulate the needed parts of SDMX Dataflows by means of VTL operators (e.g. “sub”, “filter”, “calc”, “union” …), maintaining a mapping one-to-one between SDMX Dataflows and VTL Data Sets.{{/footnote}} 375 +Therefore, in order to make the coding of [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] operations simpler when applied on parts of [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Dataflows>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]], it is allowed to (% style="color:#e74c3c" %)map(%%) distinct parts of a [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] to distinct [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Data Sets>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] according to the following rules and conventions. This kind of (% style="color:#e74c3c" %)mapping(%%) is possible both from [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] to [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] and from [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] to [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]], as better explained below.{{footnote}}Please note that this kind of mapping is only an option at disposal of the definer of VTL Transformations; in fact it remains always possible to manipulate the needed parts of SDMX Dataflows by means of VTL operators (e.g. “sub”, “filter”, “calc”, “union” …), maintaining a mapping one-to-one between SDMX Dataflows and VTL Data Sets.{{/footnote}} 376 376 377 -Given a [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] and some predefined [[Dimensions>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] of its DataStructure, it is allowed to map the subsets of observations that have the same combination of values for such [[Dimensions>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] to correspondent [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[datasets>>doc:sdmx:Glossary 2\.1.Data set.WebHome]]. 377 +Given a [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] and some predefined [[Dimensions>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] of its DataStructure, it is allowed to (% style="color:#e74c3c" %)map(%%) the subsets of observations that have the same combination of values for such [[Dimensions>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] to correspondent [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[datasets>>doc:sdmx:Glossary 2\.1.Data set.WebHome]]. 378 378 379 -For example, assuming that the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] DF1(1.0.0) has the [[Dimensions>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] [[INDICATOR>>doc:sdmx:Glossary 2\.1.Statistical indicator.WebHome]], TIME_PERIOD and COUNTRY, and that the user declares the [[Dimensions>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] [[INDICATOR>>doc:sdmx:Glossary 2\.1.Statistical indicator.WebHome]] and COUNTRY as basis for the mapping (i.e. the mapping [[dimensions>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]]): the observations that have the same values for [[INDICATOR>>doc:sdmx:Glossary 2\.1.Statistical indicator.WebHome]] and COUNTRY would be mapped to the same [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[dataset>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] (and vice-versa). In practice, this kind mapping is obtained like follows: 379 +For example, assuming that the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] DF1(1.0.0) has the [[Dimensions>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] [[INDICATOR>>doc:sdmx:Glossary 2\.1.Statistical indicator.WebHome]], TIME_PERIOD and COUNTRY, and that the user declares the [[Dimensions>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] [[INDICATOR>>doc:sdmx:Glossary 2\.1.Statistical indicator.WebHome]] and COUNTRY as basis for the (% style="color:#e74c3c" %)mapping(%%) (i.e. the (% style="color:#e74c3c" %)mapping(%%) [[dimensions>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]]): the observations that have the same values for [[INDICATOR>>doc:sdmx:Glossary 2\.1.Statistical indicator.WebHome]] and COUNTRY would be (% style="color:#e74c3c" %)mapped(%%) to the same [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[dataset>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] (and vice-versa). In practice, this kind (% style="color:#e74c3c" %)mapping(%%) is obtained like follows: 380 380 381 -* For a given [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]], the user ([[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] definer) declares the DimensionComponents on which the mapping will be based, in a given order.{{footnote}}This definition is made through the ToVtlSubspace and ToVtlSpaceKey classes and/or the FromVtlSuperspace and FromVtlSpaceKey classes, depending on the direction of the mapping (“key” means “dimension”). The mapping of Dataflow subsets can be applied independently in the two directions, also according to different Dimensions. When no Dimension is declared for a given direction, it is assumed that the option of mapping different parts of a SDMX Dataflow to different VTL Data Sets is not used.{{/footnote}} Following the example above, imagine that the user declares the [[Dimensions>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] [[INDICATOR>>doc:sdmx:Glossary 2\.1.Statistical indicator.WebHome]] and COUNTRY. 381 +* For a given [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]], the user ([[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] definer) declares the DimensionComponents on which the (% style="color:#e74c3c" %)mapping(%%) will be based, in a given order.{{footnote}}This definition is made through the ToVtlSubspace and ToVtlSpaceKey classes and/or the FromVtlSuperspace and FromVtlSpaceKey classes, depending on the direction of the mapping (“key” means “dimension”). The mapping of Dataflow subsets can be applied independently in the two directions, also according to different Dimensions. When no Dimension is declared for a given direction, it is assumed that the option of mapping different parts of a SDMX Dataflow to different VTL Data Sets is not used.{{/footnote}} Following the example above, imagine that the user declares the [[Dimensions>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] [[INDICATOR>>doc:sdmx:Glossary 2\.1.Statistical indicator.WebHome]] and COUNTRY. 382 382 * The [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Data Set>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] is given a name using a special notation also called “ordered concatenation” and composed of the following parts: 383 383 ** The reference to the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] (expressed according to the rules described in the previous paragraphs, i.e. URN, abbreviated URN or another alias); for example DF(1.0.0); 384 384 ** a slash (“/”) as a separator;{{footnote}}As a consequence of this formalism, a slash in the name of the VTL Data Set assumes the specific meaning of separator between the name of the Dataflow and the values of some of its Dimensions.{{/footnote}} 385 385 ** The reference to a specific part of the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] above, expressed as the concatenation of the values that the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] DimensionComponents declared above must have, separated by dots (“.”) and written in the order in which these DimensionComponents are defined{{footnote}}This is the order in which the dimensions are defined in the ToVtlSpaceKey class or in the FromVtlSpaceKey class, depending on the direction of the mapping.{{/footnote}}. For example 386 386 387 -POPULATION.USA would mean that such a [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Data Set>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] is mapped to the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] observations for which the [[dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] //[[INDICATOR>>doc:sdmx:Glossary 2\.1.Statistical indicator.WebHome]]// is equal to POPULATION and the [[dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] //COUNTRY// is equal to USA. 387 +POPULATION.USA would mean that such a [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Data Set>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] is (% style="color:#e74c3c" %)mapped(%%) to the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] observations for which the [[dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] //[[INDICATOR>>doc:sdmx:Glossary 2\.1.Statistical indicator.WebHome]]// is equal to POPULATION and the [[dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] //COUNTRY// is equal to USA. 388 388 389 389 In the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] Transformations, this kind of [[dataset>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] name must be referenced between single quotes because the slash (“/”) is not a regular character according to the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] rules. 390 390 ... ... @@ -398,17 +398,17 @@ 398 398 399 399 In particular, this is the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[dataset>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] that contains all the observations of the [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] DF(1.0.0) for which //[[INDICATOR>>doc:sdmx:Glossary 2\.1.Statistical indicator.WebHome]]// = POPULATION and //COUNTRY// = USA. 400 400 401 -Let us now analyse the different meaning of this kind of mapping in the two mapping directions, i.e. from [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] to [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] and from [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] to [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]]. 401 +Let us now analyse the different meaning of this kind of (% style="color:#e74c3c" %)mapping(%%) in the two (% style="color:#e74c3c" %)mapping(%%) directions, i.e. from [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] to [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] and from [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] to [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]]. 402 402 403 -As already said, the mapping from [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] to [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] happens when the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[dataflows>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] are operand of [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] Transformations, instead the mapping from [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] to [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] happens when the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Data Sets>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] that is result of Transformations{{footnote}}It should be remembered that, according to the VTL consistency rules, a given VTL dataset cannot be the result of more than one VTL Transformation.{{/footnote}} need to be treated as [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] objects. This kind of mapping can be applied independently in the two directions and the [[Dimensions>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] on which the mapping is based can be different in the two directions: these [[Dimensions>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] are defined in the ToVtlSpaceKey and in the FromVtlSpaceKey classes respectively. 403 +As already said, the (% style="color:#e74c3c" %)mapping(%%) from [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] to [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] happens when the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[dataflows>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] are operand of [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] Transformations, instead the (% style="color:#e74c3c" %)mapping(%%) from [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] to [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] happens when the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Data Sets>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] that is result of Transformations{{footnote}}It should be remembered that, according to the VTL consistency rules, a given VTL dataset cannot be the result of more than one VTL Transformation.{{/footnote}} need to be treated as [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] objects. This kind of (% style="color:#e74c3c" %)mapping(%%) can be applied independently in the two directions and the [[Dimensions>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] on which the (% style="color:#e74c3c" %)mapping(%%) is based can be different in the two directions: these [[Dimensions>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] are defined in the ToVtlSpaceKey and in the FromVtlSpaceKey classes respectively. 404 404 405 -First, let us see what happens in the mapping direction from [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] to [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]], i.e. when parts of a [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] (e.g. DF1(1.0.0)) need to be mapped to distinct [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Data Sets>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] that are operand of some [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] Transformations. 405 +First, let us see what happens in the (% style="color:#e74c3c" %)mapping(%%) direction from [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] to [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]], i.e. when parts of a [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] (e.g. DF1(1.0.0)) need to be (% style="color:#e74c3c" %)mapped(%%) to distinct [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Data Sets>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] that are operand of some [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] Transformations. 406 406 407 407 As already said, each [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Data Set>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] is assumed to contain all the observations of the 408 408 409 409 [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] having [[INDICATOR>>doc:sdmx:Glossary 2\.1.Statistical indicator.WebHome]]=//INDICATORvalue //and COUNTRY=// COUNTRYvalue//. For example, the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[dataset>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] ‘DF1(1.0.0)/POPULATION.USA’ would contain all the observations of DF1(1.0.0) having [[INDICATOR>>doc:sdmx:Glossary 2\.1.Statistical indicator.WebHome]] = POPULATION and COUNTRY = USA. 410 410 411 -In order to obtain the data structure of these [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Data Sets>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] from the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] one, it is assumed that the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] DimensionComponents on which the mapping is based are dropped, i.e. not maintained in the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] data structure; this is possible because their values are fixed for each one of the invoked [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Data Sets>>doc:sdmx:Glossary 2\.1.Data set.WebHome]]{{footnote}}If these DimensionComponents would not be dropped, the various VTL Data Sets resulting from this kind of mapping would have non-matching values for the Identifiers corresponding to the mapping Dimensions (e.g. POPULATION and COUNTRY). As a consequence, taking into account that the typical binary VTL operations at dataset level (+, -, *, / and so on) are executed on the observations having matching values for the identifiers, it would not be possible to compose the resulting VTL datasets one another (e.g. it would not be possible to calculate the population ratio between USA and CANADA).{{/footnote}}. After that, the mapping method from [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] to [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] specified for the [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] DF1(1.0.0) is applied (i.e. basic, pivot …). 411 +In order to obtain the data structure of these [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Data Sets>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] from the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] one, it is assumed that the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] DimensionComponents on which the (% style="color:#e74c3c" %)mapping(%%) is based are dropped, i.e. not maintained in the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] data structure; this is possible because their values are fixed for each one of the invoked [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Data Sets>>doc:sdmx:Glossary 2\.1.Data set.WebHome]]{{footnote}}If these DimensionComponents would not be dropped, the various VTL Data Sets resulting from this kind of mapping would have non-matching values for the Identifiers corresponding to the mapping Dimensions (e.g. POPULATION and COUNTRY). As a consequence, taking into account that the typical binary VTL operations at dataset level (+, -, *, / and so on) are executed on the observations having matching values for the identifiers, it would not be possible to compose the resulting VTL datasets one another (e.g. it would not be possible to calculate the population ratio between USA and CANADA).{{/footnote}}. After that, the (% style="color:#e74c3c" %)mapping(%%) method from [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] to [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] specified for the [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] DF1(1.0.0) is applied (i.e. basic, pivot …). 412 412 413 413 In the example above, for all the [[datasets>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] of the kind 414 414 ... ... @@ -424,9 +424,9 @@ 424 424 > 425 425 > … … … 426 426 427 -In fact the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] operator “sub” has exactly the same behaviour. Therefore, mapping different parts of a [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] to different [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Data Sets>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] in the direction from [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] to [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] through the ordered concatenation notation is equivalent to a proper use of the operator “**sub**” on such a [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]].{{footnote}}In case the ordered concatenation notation is used, the VTL Transformation described above, e.g. ‘DF1(1.0)/POPULATION.USA’ := DF1(1.0) [ sub INDICATOR=“POPULATION”, COUNTRY=“USA”], is implicitly executed. In order to test the overall compliance of the VTL program to the VTL consistency rules, it has to be considered as part of the VTL program even if it is not explicitly coded.{{/footnote}} 427 +In fact the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] operator “sub” has exactly the same behaviour. Therefore, (% style="color:#e74c3c" %)mapping(%%) different parts of a [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] to different [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Data Sets>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] in the direction from [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] to [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] through the ordered concatenation notation is equivalent to a proper use of the operator “**sub**” on such a [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]].{{footnote}}In case the ordered concatenation notation is used, the VTL Transformation described above, e.g. ‘DF1(1.0)/POPULATION.USA’ := DF1(1.0) [ sub INDICATOR=“POPULATION”, COUNTRY=“USA”], is implicitly executed. In order to test the overall compliance of the VTL program to the VTL consistency rules, it has to be considered as part of the VTL program even if it is not explicitly coded.{{/footnote}} 428 428 429 -In the direction from [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] to [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] it is allowed to omit the value of one or more DimensionComponents on which the mapping is based, but maintaining all the separating dots (therefore it may happen to find two or more consecutive dots and dots in the beginning or in the end). The absence of value means that for the corresponding [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] all the values are kept and the [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] is not dropped. 429 +In the direction from [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] to [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] it is allowed to omit the value of one or more DimensionComponents on which the (% style="color:#e74c3c" %)mapping(%%) is based, but maintaining all the separating dots (therefore it may happen to find two or more consecutive dots and dots in the beginning or in the end). The absence of value means that for the corresponding [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] all the values are kept and the [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] is not dropped. 430 430 431 431 For example, ‘DF(1.0.0)/POPULATION.’ (note the dot in the end of the name) is the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[dataset>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] that contains all the observations of the [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] DF(1.0.0) for which //[[INDICATOR>>doc:sdmx:Glossary 2\.1.Statistical indicator.WebHome]]// = POPULATION and COUNTRY = any value. 432 432 ... ... @@ -439,9 +439,9 @@ 439 439 440 440 Heterogeneous invocations of the same [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] are allowed, i.e. omitting different [[Dimensions>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] in different invocations. 441 441 442 -Let us now analyse the mapping direction from [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] to [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]]. 442 +Let us now analyse the (% style="color:#e74c3c" %)mapping(%%) direction from [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] to [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]]. 443 443 444 -In this situation, distinct parts of a [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] are calculated as distinct [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[datasets>>doc:sdmx:Glossary 2\.1.Data set.WebHome]], under the [[constraint>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]that they must have the same [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] data structure.444 +In this situation, distinct parts of a [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] are calculated as distinct [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[datasets>>doc:sdmx:Glossary 2\.1.Data set.WebHome]], under the (% style="color:#e74c3c" %)constraint(%%) that they must have the same [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] data structure. 445 445 446 446 For example, let us assume that the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] programmer wants to calculate the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] DF2(1.0.0) having the [[Dimensions>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] TIME_PERIOD, [[INDICATOR>>doc:sdmx:Glossary 2\.1.Statistical indicator.WebHome]], and COUNTRY and that such a programmer finds it convenient to calculate separately the parts of DF2(1.0.0) that have different combinations of values for [[INDICATOR>>doc:sdmx:Glossary 2\.1.Statistical indicator.WebHome]] and COUNTRY: 447 447 ... ... @@ -448,7 +448,7 @@ 448 448 * each part is calculated as a [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] derived [[Data Set>>doc:sdmx:Glossary 2\.1.Data set.WebHome]], result of a dedicated [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] Transformation;{{footnote}}If the whole DF2(1.0) is calculated by means of just one VTL Transformation, then the mapping between the SDMX Dataflow and the corresponding VTL dataset is one-to-one and this kind of mapping (one SDMX Dataflow to many VTL datasets) does not apply.{{/footnote}} 449 449 * the data structure of all these [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Data Sets>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] has the TIME_PERIOD identifier and does not have the [[INDICATOR>>doc:sdmx:Glossary 2\.1.Statistical indicator.WebHome]] and COUNTRY identifiers.{{footnote}}This is possible as each VTL dataset corresponds to one particular combination of values of INDICATOR and COUNTRY.{{/footnote}} 450 450 451 -Under these hypothesis, such derived [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Data Sets>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] can be mapped to DF2(1.0.0) by declaring the DimensionComponents [[INDICATOR>>doc:sdmx:Glossary 2\.1.Statistical indicator.WebHome]] and COUNTRY as (% style="color:#e74c3c" %)mapping(%%) [[dimensions>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]]{{footnote}}The mapping dimensions are defined as FromVtlSpaceKeys of the FromVtlSuperSpace of the VtlDataflowMapping relevant to DF2(1.0).{{/footnote}}. 451 +Under these hypothesis, such derived [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Data Sets>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] can be (% style="color:#e74c3c" %)mapped(%%) to DF2(1.0.0) by declaring the DimensionComponents [[INDICATOR>>doc:sdmx:Glossary 2\.1.Statistical indicator.WebHome]] and COUNTRY as (% style="color:#e74c3c" %)mapping(%%) [[dimensions>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]]{{footnote}}The mapping dimensions are defined as FromVtlSpaceKeys of the FromVtlSuperSpace of the VtlDataflowMapping relevant to DF2(1.0).{{/footnote}}. 452 452 453 453 The corresponding [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] Transformations, assuming that the result needs to be persistent, would be of this kind:{{footnote}}the symbol of the VTL persistent assignment is used (<-){{/footnote}} 454 454 ... ... @@ -462,7 +462,7 @@ 462 462 > ‘DF2(1.0.0)/POPGROWTH.CANADA’ <- expression22; 463 463 > … … … 464 464 465 -As said, it is assumed that these [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] derived [[Data Sets>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] have the TIME_PERIOD as the only identifier. In the mapping from [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] to SMDX, the [[Dimensions>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] [[INDICATOR>>doc:sdmx:Glossary 2\.1.Statistical indicator.WebHome]] and COUNTRY are added to the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] data structure on order to obtain the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] one, with the following values respectively: 465 +As said, it is assumed that these [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] derived [[Data Sets>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] have the TIME_PERIOD as the only identifier. In the (% style="color:#e74c3c" %)mapping(%%) from [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] to SMDX, the [[Dimensions>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] [[INDICATOR>>doc:sdmx:Glossary 2\.1.Statistical indicator.WebHome]] and COUNTRY are added to the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] data structure on order to obtain the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] one, with the following values respectively: 466 466 467 467 > VTL dataset INDICATOR value COUNTRY value 468 468 > ... ... @@ -473,7 +473,7 @@ 473 473 > ‘DF2(1.0.0)/POPGROWTH.CANADA’ POPGROWTH CANADA 474 474 > … … … 475 475 476 -It should be noted that the application of this many-to-one mapping from [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] to [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] is equivalent to an appropriate sequence of [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] Transformations. These use the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] operator “calc” to add the proper [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] identifiers (in the example, [[INDICATOR>>doc:sdmx:Glossary 2\.1.Statistical indicator.WebHome]] and COUNTRY) and to assign to them the proper values and the operator “union” in order to obtain the final [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[dataset>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] (in the example DF2(1.0.0)), that can be mapped oneto-one to the homonymous [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]]. Following the same example, these [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] Transformations would be: 476 +It should be noted that the application of this many-to-one (% style="color:#e74c3c" %)mapping(%%) from [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] to [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] is equivalent to an appropriate sequence of [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] Transformations. These use the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] operator “calc” to add the proper [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] identifiers (in the example, [[INDICATOR>>doc:sdmx:Glossary 2\.1.Statistical indicator.WebHome]] and COUNTRY) and to assign to them the proper values and the operator “union” in order to obtain the final [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[dataset>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] (in the example DF2(1.0.0)), that can be (% style="color:#e74c3c" %)mapped(%%) oneto-one to the homonymous [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]]. Following the same example, these [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] Transformations would be: 477 477 478 478 > DF2bis_GDPPERCAPITA_USA := ‘DF2(1.0.0)/GDPPERCAPITA.USA’ [calc identifier INDICATOR := ”GDPPERCAPITA”, identifier COUNTRY := ”USA”]; DF2bis_GDPPERCAPITA_CANADA := ‘DF2(1.0.0)/GDPPERCAPITA.CANADA’ [calc identifier INDICATOR:=”GDPPERCAPITA”, identifier COUNTRY:=”CANADA”];… … … DF2bis_POPGROWTH_USA := ‘DF2(1.0.0)/POPGROWTH.USA’ [calc identifier INDICATOR := ”POPGROWTH”, identifier COUNTRY := ”USA”]; DF2bis_POPGROWTH_CANADA’ := ‘DF2(1.0.0)/POPGROWTH.CANADA’ [calc identifier INDICATOR := ”POPGROWTH”, identifier COUNTRY := ”CANADA”];… … … DF2(1.0) <- UNION (DF2bis_GDPPERCAPITA_USA’, DF2bis_GDPPERCAPITA_CANADA’, 479 479 > … , ... ... @@ -480,11 +480,11 @@ 480 480 > DF2bis_POPGROWTH_USA’, DF2bis_POPGROWTH_CANADA’ 481 481 > …); 482 482 483 -In other words, starting from the [[datasets>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] explicitly calculated through [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] (in the example ‘DF2(1.0)/GDPPERCAPITA.USA’ and so on), the first step consists in calculating other (non-persistent) [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[datasets>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] (in the example DF2bis_GDPPERCAPITA_USA and so on) by adding the identifiers [[INDICATOR>>doc:sdmx:Glossary 2\.1.Statistical indicator.WebHome]] and COUNTRY with the desired values (//INDICATORvalue// and //COUNTRYvalue)//. Finally, all these non-persistent [[Data Sets>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] are united and give the final result DF2(1.0){{footnote}}The result is persistent in this example but it can be also non persistent if needed.{{/footnote}}, which can be mapped one-to-one to the homonymous [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] having the [[dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] [[components>>doc:sdmx:Glossary 2\.1.Component.WebHome]] TIME_PERIOD, [[INDICATOR>>doc:sdmx:Glossary 2\.1.Statistical indicator.WebHome]] and COUNTRY. 483 +In other words, starting from the [[datasets>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] explicitly calculated through [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] (in the example ‘DF2(1.0)/GDPPERCAPITA.USA’ and so on), the first step consists in calculating other (non-persistent) [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[datasets>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] (in the example DF2bis_GDPPERCAPITA_USA and so on) by adding the identifiers [[INDICATOR>>doc:sdmx:Glossary 2\.1.Statistical indicator.WebHome]] and COUNTRY with the desired values (//INDICATORvalue// and //COUNTRYvalue)//. Finally, all these non-persistent [[Data Sets>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] are united and give the final result DF2(1.0){{footnote}}The result is persistent in this example but it can be also non persistent if needed.{{/footnote}}, which can be (% style="color:#e74c3c" %)mapped(%%) one-to-one to the homonymous [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] having the [[dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] [[components>>doc:sdmx:Glossary 2\.1.Component.WebHome]] TIME_PERIOD, [[INDICATOR>>doc:sdmx:Glossary 2\.1.Statistical indicator.WebHome]] and COUNTRY. 484 484 485 -Therefore, mapping different [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[datasets>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] having the same data structure to different parts of a [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]], i.e. in the direction from [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] to [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]], through the ordered concatenation notation is equivalent to a proper use of the operators “calc” and “union” on such [[datasets>>doc:sdmx:Glossary 2\.1.Data set.WebHome]].{{footnote}}In case the ordered concatenation notation from VTL to SDMX is used, the set of Transformations described above is implicitly performed; therefore, in order to test the overall compliance of the VTL program to the VTL consistency rules, these implicit Transformations have to be considered as part of the VTL program even if they are not explicitly coded.{{/footnote}}{{footnote}}Through SDMX Constraints, it is possible to specify the values that a Component of a Dataflow can assume.{{/footnote}} 485 +Therefore, (% style="color:#e74c3c" %)mapping(%%) different [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[datasets>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] having the same data structure to different parts of a [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]], i.e. in the direction from [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] to [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]], through the ordered concatenation notation is equivalent to a proper use of the operators “calc” and “union” on such [[datasets>>doc:sdmx:Glossary 2\.1.Data set.WebHome]].{{footnote}}In case the ordered concatenation notation from VTL to SDMX is used, the set of Transformations described above is implicitly performed; therefore, in order to test the overall compliance of the VTL program to the VTL consistency rules, these implicit Transformations have to be considered as part of the VTL program even if they are not explicitly coded.{{/footnote}}{{footnote}}Through SDMX Constraints, it is possible to specify the values that a Component of a Dataflow can assume.{{/footnote}} 486 486 487 -It is worth noting that in the direction from [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] to [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] it is mandatory to specify the value for every [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] on which the mapping is based (in other word, in the name of the calculated [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[dataset>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] is not possible to omit the value of some of the [[Dimensions>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]]). 487 +It is worth noting that in the direction from [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] to [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] it is mandatory to specify the value for every [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] on which the (% style="color:#e74c3c" %)mapping(%%) is based (in other word, in the name of the calculated [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[dataset>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] is not possible to omit the value of some of the [[Dimensions>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]]). 488 488 489 489 === 12.3.7 Mapping variables and value domains between VTL and SDMX === 490 490 ... ... @@ -491,9 +491,9 @@ 491 491 With reference to the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] “model for [[Variables>>doc:sdmx:Glossary 2\.1.Statistical variable.WebHome]] and Value domains”, the following additional mappings have to be considered: 492 492 493 493 (% style="width:706.294px" %) 494 -|(% style="width:257px" %)VTL|(% style="width:446px" %)SDMX 494 +|(% style="width:257px" %)[[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]]|(% style="width:446px" %)[[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] 495 495 |(% style="width:257px" %)**[[Data Set>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] [[Component>>doc:sdmx:Glossary 2\.1.Component.WebHome]]**|(% style="width:446px" %)Although this abstraction exists in [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]], it does not have an explicit definition and correspond to a [[Component>>doc:sdmx:Glossary 2\.1.Component.WebHome]] (either a DimensionComponent or a [[Measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] or a DataAttribute) belonging to one specific [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]]^^43^^ 496 -|(% style="width:257px" %)**Represented [[Variable>>doc:sdmx:Glossary 2\.1.Statistical variable.WebHome]]**|(% style="width:446px" %) **[[Concept>>doc:sdmx:Glossary2\.1.Concept.WebHome]]** with a definite [[Representation>>doc:sdmx:Glossary 2\.1.Representation.WebHome]]496 +|(% style="width:257px" %)**Represented [[Variable>>doc:sdmx:Glossary 2\.1.Statistical variable.WebHome]]**|(% style="width:446px" %)(% style="color:#e74c3c" %)**Concept**(%%) with a definite [[Representation>>doc:sdmx:Glossary 2\.1.Representation.WebHome]] 497 497 |(% style="width:257px" %)**Value Domain**|(% style="width:446px" %)((( 498 498 **[[Representation>>doc:sdmx:Glossary 2\.1.Representation.WebHome]]** (see the Structure 499 499 Pattern in the Base Package) ... ... @@ -513,19 +513,19 @@ 513 513 514 514 The main difference between [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] and [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] relies on the fact that the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[artefacts>>doc:sdmx:Glossary 2\.1.Artefact.WebHome]] for defining subsets of Value Domains do not exist in [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]], therefore the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] features for referring to predefined subsets are not available in [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]]. These [[artefacts>>doc:sdmx:Glossary 2\.1.Artefact.WebHome]] are the Value Domain Subset (or Set), either enumerated or described, the Set List (list of values belonging to enumerated subsets) and the [[Data Set>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] [[Component>>doc:sdmx:Glossary 2\.1.Component.WebHome]] (aimed at defining the set of values that the [[Component>>doc:sdmx:Glossary 2\.1.Component.WebHome]] of a [[Data Set>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] can take, possibly a subset of the [[codes>>doc:sdmx:Glossary 2\.1.Code.WebHome]] of Value Domain). 515 515 516 -Another difference consists in the fact that all Value Domains are considered as identifiable objects in [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] either if enumerated or not, while in [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] the [[Codelist>>doc:sdmx:Glossary 2\.1.Code list.WebHome]] (corresponding to a [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] enumerated Value Domain) is identifiable, while the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] non-enumerated [[Representation>>doc:sdmx:Glossary 2\.1.Representation.WebHome]] (corresponding to a [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] non-enumerated Value Domain) is not identifiable. As a consequence, the definition of the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] Rulesets, which in [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] can refer either to enumerated or non-enumerated value domains, in [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] can refer only to enumerated Value Domains (i.e. to [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Codelists>>doc:sdmx:Glossary 2\.1.Code list.WebHome]]). As for the mapping between [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[variables>>doc:sdmx:Glossary 2\.1.Statistical variable.WebHome]] and [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Concepts>>doc:sdmx:Glossary2\.1.Concept.WebHome]], it should be noted that these [[artefacts>>doc:sdmx:Glossary 2\.1.Artefact.WebHome]] do not coincide perfectly. In fact, the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[variables>>doc:sdmx:Glossary 2\.1.Statistical variable.WebHome]] are represented [[variables>>doc:sdmx:Glossary 2\.1.Statistical variable.WebHome]], defined always on the same Value Domain (“[[Representation>>doc:sdmx:Glossary 2\.1.Representation.WebHome]]” in [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]]) independently of the [[data set>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] / data structure in which they appear{{footnote}}By using represented variables, VTL can assume that data structures having the same variables as identifiers can be composed one another because the correspondent values can match.{{/footnote}}, while the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]][[Concepts>>doc:sdmx:Glossary2\.1.Concept.WebHome]]can have different [[Representations>>doc:sdmx:Glossary 2\.1.Representation.WebHome]] in different DataStructures.{{footnote}}A Concept becomes a Component in a DataStructureDefinition, and Components can have different LocalRepresentations in different DataStructureDefinitions, also overriding the (possible) base representation of the Concept.{{/footnote}} This means that one [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]][[Concept>>doc:sdmx:Glossary2\.1.Concept.WebHome]]can correspond to many [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Variables>>doc:sdmx:Glossary 2\.1.Statistical variable.WebHome]], one for each [[representation>>doc:sdmx:Glossary 2\.1.Representation.WebHome]] the[[Concept>>doc:sdmx:Glossary2\.1.Concept.WebHome]]has.516 +Another difference consists in the fact that all Value Domains are considered as identifiable objects in [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] either if enumerated or not, while in [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] the [[Codelist>>doc:sdmx:Glossary 2\.1.Code list.WebHome]] (corresponding to a [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] enumerated Value Domain) is identifiable, while the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] non-enumerated [[Representation>>doc:sdmx:Glossary 2\.1.Representation.WebHome]] (corresponding to a [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] non-enumerated Value Domain) is not identifiable. As a consequence, the definition of the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] Rulesets, which in [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] can refer either to enumerated or non-enumerated value domains, in [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] can refer only to enumerated Value Domains (i.e. to [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Codelists>>doc:sdmx:Glossary 2\.1.Code list.WebHome]]). As for the (% style="color:#e74c3c" %)mapping(%%) between [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[variables>>doc:sdmx:Glossary 2\.1.Statistical variable.WebHome]] and [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] (% style="color:#e74c3c" %)Concepts(%%), it should be noted that these [[artefacts>>doc:sdmx:Glossary 2\.1.Artefact.WebHome]] do not coincide perfectly. In fact, the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[variables>>doc:sdmx:Glossary 2\.1.Statistical variable.WebHome]] are represented [[variables>>doc:sdmx:Glossary 2\.1.Statistical variable.WebHome]], defined always on the same Value Domain (“[[Representation>>doc:sdmx:Glossary 2\.1.Representation.WebHome]]” in [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]]) independently of the [[data set>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] / data structure in which they appear{{footnote}}By using represented variables, VTL can assume that data structures having the same variables as identifiers can be composed one another because the correspondent values can match.{{/footnote}}, while the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] (% style="color:#e74c3c" %)Concepts(%%) can have different [[Representations>>doc:sdmx:Glossary 2\.1.Representation.WebHome]] in different DataStructures.{{footnote}}A Concept becomes a Component in a DataStructureDefinition, and Components can have different LocalRepresentations in different DataStructureDefinitions, also overriding the (possible) base representation of the Concept.{{/footnote}} This means that one [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] (% style="color:#e74c3c" %)Concept(%%) can correspond to many [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Variables>>doc:sdmx:Glossary 2\.1.Statistical variable.WebHome]], one for each [[representation>>doc:sdmx:Glossary 2\.1.Representation.WebHome]] the (% style="color:#e74c3c" %)Concept(%%) has. 517 517 518 -Therefore, it is important to be aware that some [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] operations (for example the binary operations at [[data set>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] level) are consistent only if the [[components>>doc:sdmx:Glossary 2\.1.Component.WebHome]] having the same names in the operated [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Data Sets>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] have also the same [[representation>>doc:sdmx:Glossary 2\.1.Representation.WebHome]] (i.e. the same Value Domain as for [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]]). For example, it is possible to obtain correct results from the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] expression 518 +Therefore, it is important to be aware that some [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] operations (for example the binary operations at [[data set>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] (% style="color:#e74c3c" %)level(%%)) are consistent only if the [[components>>doc:sdmx:Glossary 2\.1.Component.WebHome]] having the same names in the operated [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] [[Data Sets>>doc:sdmx:Glossary 2\.1.Data set.WebHome]] have also the same [[representation>>doc:sdmx:Glossary 2\.1.Representation.WebHome]] (i.e. the same Value Domain as for [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]]). For example, it is possible to obtain correct results from the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] expression 519 519 520 520 > DS_c := DS_a + DS_b (where DS_a, DS_b, DS_c are VTL Data Sets) 521 521 522 522 if the matching [[components>>doc:sdmx:Glossary 2\.1.Component.WebHome]] in DS_a and DS_b (e.g. ref_date, geo_area, [[sector>>doc:sdmx:Glossary 2\.1.Sector.WebHome]] …) refer to the same general [[representation>>doc:sdmx:Glossary 2\.1.Representation.WebHome]]. In simpler words, DS_a and DS_b must use the same values/[[codes>>doc:sdmx:Glossary 2\.1.Code.WebHome]] (for ref_date, geo_area, [[sector>>doc:sdmx:Glossary 2\.1.Sector.WebHome]] … ), otherwise the relevant values would not match and the result of the operation would be wrong. 523 523 524 -As mentioned, the property above is not enforced by construction in [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]], and different [[representations>>doc:sdmx:Glossary 2\.1.Representation.WebHome]] of the same [[Concept>>doc:sdmx:Glossary2\.1.Concept.WebHome]]can be not compatible one another (for example, it may happen that geo_area is represented by ISO-alpha-3 [[codes>>doc:sdmx:Glossary 2\.1.Code.WebHome]] in DS_a and by ISO alpha-2 [[codes>>doc:sdmx:Glossary 2\.1.Code.WebHome]] in DS_b). Therefore, it will be up to the definer of [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]]524 +As mentioned, the property above is not enforced by construction in [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]], and different [[representations>>doc:sdmx:Glossary 2\.1.Representation.WebHome]] of the same (% style="color:#e74c3c" %)Concept(%%) can be not compatible one another (for example, it may happen that geo_area is represented by ISO-alpha-3 [[codes>>doc:sdmx:Glossary 2\.1.Code.WebHome]] in DS_a and by ISO alpha-2 [[codes>>doc:sdmx:Glossary 2\.1.Code.WebHome]] in DS_b). Therefore, it will be up to the definer of [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] 525 525 526 -Transformations to ensure that the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] expressions are consistent with the actual [[representations>>doc:sdmx:Glossary 2\.1.Representation.WebHome]] of the correspondent [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Concepts>>doc:sdmx:Glossary2\.1.Concept.WebHome]].526 +Transformations to ensure that the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] expressions are consistent with the actual [[representations>>doc:sdmx:Glossary 2\.1.Representation.WebHome]] of the correspondent [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] (% style="color:#e74c3c" %)Concepts(%%). 527 527 528 -It remains up to the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]]-[[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] definer also the assurance of the consistency between a [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] Ruleset defined on [[Variables>>doc:sdmx:Glossary 2\.1.Statistical variable.WebHome]] and the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Components>>doc:sdmx:Glossary 2\.1.Component.WebHome]] on which the Ruleset is applied. In fact, a [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] Ruleset is expressed by means of the values of the [[Variables>>doc:sdmx:Glossary 2\.1.Statistical variable.WebHome]] (i.e. [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Concepts>>doc:sdmx:Glossary2\.1.Concept.WebHome]]), i.e. assuming definite [[representations>>doc:sdmx:Glossary 2\.1.Representation.WebHome]] for them (e.g. ISOalpha-3 for country). If the Ruleset is applied to [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Components>>doc:sdmx:Glossary 2\.1.Component.WebHome]] that have the same name of the[[Concept>>doc:sdmx:Glossary2\.1.Concept.WebHome]]they refer to but different [[representations>>doc:sdmx:Glossary 2\.1.Representation.WebHome]] (e.g. ISO-alpha-2 for country), the Ruleset cannot work properly.528 +It remains up to the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]]-[[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] definer also the assurance of the consistency between a [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] Ruleset defined on [[Variables>>doc:sdmx:Glossary 2\.1.Statistical variable.WebHome]] and the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Components>>doc:sdmx:Glossary 2\.1.Component.WebHome]] on which the Ruleset is applied. In fact, a [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] Ruleset is expressed by means of the values of the [[Variables>>doc:sdmx:Glossary 2\.1.Statistical variable.WebHome]] (i.e. [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] (% style="color:#e74c3c" %)Concepts(%%)), i.e. assuming definite [[representations>>doc:sdmx:Glossary 2\.1.Representation.WebHome]] for them (e.g. ISOalpha-3 for country). If the Ruleset is applied to [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[Components>>doc:sdmx:Glossary 2\.1.Component.WebHome]] that have the same name of the (% style="color:#e74c3c" %)Concept(%%) they refer to but different [[representations>>doc:sdmx:Glossary 2\.1.Representation.WebHome]] (e.g. ISO-alpha-2 for country), the Ruleset cannot work properly. 529 529 530 530 == 12.4 Mapping between SDMX and VTL Data Types == 531 531 ... ... @@ -537,7 +537,7 @@ 537 537 538 538 [[image:1750070288958-132.png]] 539 539 540 -**Figure 22 – VTL Data Types** 540 +**Figure 22 – [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] Data Types** 541 541 542 542 The [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] scalar types are in turn subdivided in basic scalar types, which are elementary (not defined in term of other data types) and Value Domain and Set scalar types, which are defined in terms of the basic scalar types. 543 543 ... ... @@ -545,7 +545,7 @@ 545 545 546 546 [[image:1750070310572-584.png]] 547 547 548 -**Figure 23 – VTL Basic Scalar Types** 548 +**Figure 23 – [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] Basic Scalar Types** 549 549 550 550 === 12.4.2 VTL basic scalar types and SDMX data types === 551 551 ... ... @@ -559,7 +559,7 @@ 559 559 560 560 [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] data types are conceived instead to support the [[data exchange>>doc:sdmx:Glossary 2\.1.Data exchange.WebHome]], therefore they do have a format, which is known by the users and correspond, in [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] terms, to external [[representations>>doc:sdmx:Glossary 2\.1.Representation.WebHome]]. Therefore, for each [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] basic scalar type there can be more [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] data types (the latter are explained in the section "General Notes for Implementers" of this document and are actually much more numerous than the former). 561 561 562 -The following paragraphs describe the mapping between the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] data types and the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] basic scalar types. This mapping shall be presented in the two directions of possible conversion, i.e. from [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] to [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] and vice-versa. 562 +The following paragraphs describe the (% style="color:#e74c3c" %)mapping(%%) between the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] data types and the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] basic scalar types. This (% style="color:#e74c3c" %)mapping(%%) shall be presented in the two directions of possible conversion, i.e. from [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] to [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] and vice-versa. 563 563 564 564 The conversion from [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] to [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] happens when an [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[artefact>>doc:sdmx:Glossary 2\.1.Artefact.WebHome]] acts as inputs of a [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] Transformation. As already said, in fact, at compile time the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] needs to know the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] type of the operands in order to check their compliance with the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] operators and at runtime it must convert the values from their external ([[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]]) [[representations>>doc:sdmx:Glossary 2\.1.Representation.WebHome]] to the corresponding internal ([[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]]) ones. 565 565 ... ... @@ -567,11 +567,11 @@ 567 567 568 568 === 12.4.3 Mapping SDMX data types to VTL basic scalar types === 569 569 570 -The following table describes the default mapping for converting from the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] data types to the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] basic scalar types. 570 +The following table describes the default (% style="color:#e74c3c" %)mapping(%%) for converting from the [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] data types to the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] basic scalar types. 571 571 572 572 (% style="width:583.294px" %) 573 -|(% style="width:360px" %)SDMX data type 574 -(BasicComponentDataType)|(% style="width:221px" %)Default VTL basic scalar type 573 +|(% style="width:360px" %)[[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] data type 574 +(BasicComponentDataType)|(% style="width:221px" %)Default [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] basic scalar type 575 575 |(% style="width:360px" %)((( 576 576 String 577 577 (string allowing any character) ... ... @@ -618,7 +618,7 @@ 618 618 )))|(% style="width:221px" %)number 619 619 |(% style="width:360px" %)((( 620 620 Boolean 621 -(corresponds to the XML Schema xs:boolean datatype; support the mathematical concept of 621 +(corresponds to the XML Schema xs:boolean datatype; support the mathematical (% style="color:#e74c3c" %)concept(%%) of 622 622 binary-valued logic: {true, false}) 623 623 )))|(% style="width:221px" %)boolean 624 624 |(% style="width:360px" %)((( ... ... @@ -723,7 +723,7 @@ 723 723 |(% style="width:360px" %)IdentifiableReference|(% style="width:221px" %)Metadata type – not applicable 724 724 |(% style="width:360px" %)DataSetReference|(% style="width:221px" %)Metadata type – not applicable 725 725 726 -**Figure 14 – Mappings from SDMX data types to VTL Basic Scalar Types** 726 +**Figure 14 – Mappings from [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] data types to [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] Basic Scalar Types** 727 727 728 728 When [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] takes in input [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] [[artefacts>>doc:sdmx:Glossary 2\.1.Artefact.WebHome]], it is assumed that a type conversion according to the table above always happens. In case a different [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] basic scalar type is desired, it can be achieved in the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] program taking in input the default [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] basic scalar type above and applying to it the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] type conversion features (see the implicit and explicit type conversion and the "cast" operator in the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] Reference Manual). 729 729 ... ... @@ -733,9 +733,9 @@ 733 733 734 734 (% style="width:748.294px" %) 735 735 |(% style="width:164px" %)((( 736 -VTL basic scalar type 736 +[[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] basic scalar type 737 737 )))|(% style="width:304px" %)((( 738 -Default SDMX data type 738 +Default [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] data type 739 739 (BasicComponentDataType) 740 740 )))|(% style="width:277px" %)Default output format 741 741 |(% style="width:164px" %)String|(% style="width:304px" %)String|(% style="width:277px" %)Like XML (xs:string) ... ... @@ -753,7 +753,7 @@ 753 753 |(% style="width:164px" %)Duration|(% style="width:304px" %)Duration|(% style="width:277px" %)Like XML (xs:duration) PnYnMnDTnHnMnS 754 754 |(% style="width:164px" %)Boolean|(% style="width:304px" %)Boolean|(% style="width:277px" %)Like XML (xs:boolean) with the values "true" or "false" 755 755 756 -**Figure 14 – Mappings from SDMX data types to VTL Basic Scalar Types** 756 +**Figure 14 – Mappings from [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] data types to [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] Basic Scalar Types** 757 757 758 758 In case a different default conversion is desired, it can be achieved through the CustomTypeScheme and CustomType [[artefacts>>doc:sdmx:Glossary 2\.1.Artefact.WebHome]] (see also the section Transformations and Expressions of the [[SDMX information model>>doc:sdmx:Glossary 2\.1.SDMX Information Model.WebHome]]). 759 759 ... ... @@ -760,7 +760,7 @@ 760 760 The custom output formats can be specified by means of the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] formatting mask described in the section "Type Conversion and Formatting Mask" of the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] Reference Manual. Such a section describes the masks for the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] basic scalar types "number", "integer", "date", "time", "time_period" and "duration" and gives examples. As for the types "string" and "boolean" the [[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] conventions are extended with some other special characters as described in the following table. 761 761 762 762 (% style="width:717.294px" %) 763 -|(% colspan="2" style="width:714px" %)VTL special characters for the formatting masks 763 +|(% colspan="2" style="width:714px" %)[[VTL>>doc:sdmx:Glossary 2\.1.Validation and transformation language.WebHome]] special characters for the formatting masks 764 764 |(% colspan="2" style="width:714px" %) 765 765 |(% colspan="2" style="width:714px" %)Number 766 766 |(% style="width:122px" %)D|(% style="width:591px" %)one numeric digit (if the scientific notation is adopted, D is only for the mantissa)