Changes for page 12 Validation and Transformation Language (VTL)
Last modified by Artur on 2025/09/10 11:19
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -313,12 +313,11 @@ 313 313 314 314 The summary mapping table of the **unpivot** mapping method is the following: 315 315 316 -(% style="width:638.294px" %) 317 -|(% style="width:200px" %)**VTL**|(% style="width:435px" %)**SDMX** 318 -|(% style="width:200px" %)(Simple) Identifier|(% style="width:435px" %)Dimension 319 -|(% style="width:200px" %)(Time) Identifier|(% style="width:435px" %)TimeDimension 320 -|(% style="width:200px" %)All Measure Components|(% style="width:435px" %)MeasureDimension (having one Code for each VTL measure component) & one Measure 321 -|(% style="width:200px" %)Attribute|(% style="width:435px" %)DataAttribute depending on all SDMX Dimensions including the TimeDimension and except the MeasureDimension 316 +|**VTL**|**SDMX** 317 +|(Simple) Identifier|Dimension 318 +|(Time) Identifier|TimeDimension 319 +|All Measure Components|MeasureDimension (having one Code for each VTL measure component) & one Measure 320 +|Attribute|DataAttribute depending on all SDMX Dimensions including the TimeDimension and except the MeasureDimension 322 322 323 323 At observation / data point level: 324 324 ... ... @@ -340,13 +340,12 @@ 340 340 341 341 The mapping table is the following: 342 342 343 -(% style="width:467.294px" %) 344 -|(% style="width:214px" %)VTL|(% style="width:250px" %)SDMX 345 -|(% style="width:214px" %)(Simple) Identifier|(% style="width:250px" %)Dimension 346 -|(% style="width:214px" %)(Time) Identifier|(% style="width:250px" %)TimeDimension 347 -|(% style="width:214px" %)Some Measures|(% style="width:250px" %)Measure 348 -|(% style="width:214px" %)Other Measures|(% style="width:250px" %)DataAttribute 349 -|(% style="width:214px" %)Attribute|(% style="width:250px" %)DataAttribute 342 +|VTL|SDMX 343 +|(Simple) Identifier|Dimension 344 +|(Time) Identifier|TimeDimension 345 +|Some Measures|Measure 346 +|Other Measures|DataAttribute 347 +|Attribute|DataAttribute 350 350 351 351 Even in this case, the resulting SDMX definitions must be compliant with the SDMX consistency rules. For example, the SDMX DSD must have the attributeRelationship for the DataAttributes, which does not exist in VTL. 352 352 ... ... @@ -384,11 +384,11 @@ 384 384 385 385 Therefore, the generic name of this kind of VTL datasets would be: 386 386 387 - >'DF(1.0.0)/INDICATORvalue.COUNTRYvalue'385 +'DF(1.0.0)/INDICATORvalue.COUNTRYvalue' 388 388 389 389 Where DF(1.0.0) is the Dataflow and //INDICATORvalue// and //COUNTRYvalue //are placeholders for one value of the INDICATOR and COUNTRY dimensions. Instead the specific name of one of these VTL datasets would be: 390 390 391 - >‘DF(1.0.0)/POPULATION.USA’389 +‘DF(1.0.0)/POPULATION.USA’ 392 392 393 393 In particular, this is the VTL dataset that contains all the observations of the Dataflow DF(1.0.0) for which //INDICATOR// = POPULATION and //COUNTRY// = USA. 394 394 ... ... @@ -402,11 +402,13 @@ 402 402 403 403 SDMX Dataflow having INDICATOR=//INDICATORvalue //and COUNTRY=// COUNTRYvalue//. For example, the VTL dataset ‘DF1(1.0.0)/POPULATION.USA’ would contain all the observations of DF1(1.0.0) having INDICATOR = POPULATION and COUNTRY = USA. 404 404 405 -In order to obtain the data structure of these VTL Data Sets from the SDMX one, it is assumed that the SDMX DimensionComponents on which the mapping is based are dropped, i.e. not maintained in the VTL data structure; this is possible because their values are fixed for each one of the invoked VTL Data Sets{{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 to VTL specified for the Dataflow DF1(1.0.0) is applied (i.e. basic, pivot …).403 +In order to obtain the data structure of these VTL Data Sets from the SDMX one, it is assumed that the SDMX DimensionComponents on which the mapping is based are dropped, i.e. not maintained in the VTL data structure; this is possible because their values are fixed for each one of the invoked VTL Data Sets{{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 to VTL specified for the Dataflow DF1(1.0.0) is applied (i.e. 406 406 405 +basic, pivot …). 406 + 407 407 In the example above, for all the datasets of the kind 408 408 409 - >‘DF1(1.0.0)///INDICATORvalue//.//COUNTRYvalue//’, the dimensions INDICATOR and COUNTRY would be dropped so that the data structure of all the resulting VTL Data Sets would have the identifier TIME_PERIOD only.409 +‘DF1(1.0.0)///INDICATORvalue//.//COUNTRYvalue//’, the dimensions INDICATOR and COUNTRY would be dropped so that the data structure of all the resulting VTL Data Sets would have the identifier TIME_PERIOD only. 410 410 411 411 It should be noted that the desired VTL Data Sets (i.e. of the kind ‘DF1(1.0.0)/// INDICATORvalue//.//COUNTRYvalue//’) can be obtained also by applying the VTL operator “**sub**” (subspace) to the Dataflow DF1(1.0.0), like in the following VTL expression: 412 412