Changes for page 13 Structure Mapping
Last modified by Artur on 2025/09/10 11:19
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -501,49 +501,52 @@ 501 501 The following [[representation>>doc:sdmx:Glossary.Representation.WebHome]] (% style="color:#e74c3c" %)mapping(%%) can be used to explicitly (% style="color:#e74c3c" %)map(%%) each [[age>>doc:sdmx:Glossary.Age.WebHome]] to an output [[code>>doc:sdmx:Glossary.Code.WebHome]]. 502 502 503 503 (% style="width:402.294px" %) 504 -|(% style="width:1 88px" %)**Source Input Free Text**|(% style="width:211px" %)**Desired Output Code Id**505 -|(% style="width:1 88px" %)0|(% style="width:211px" %)A506 -|(% style="width:1 88px" %)1|(% style="width:211px" %)A507 -|(% style="width:1 88px" %)2|(% style="width:211px" %)A508 -|(% style="width:1 88px" %)3|(% style="width:211px" %)B509 -|(% style="width:1 88px" %)4|(% style="width:211px" %)B504 +|(% style="width:197px" %)**Source Input Free Text**|(% style="width:204px" %)**Desired Output Code Id** 505 +|(% style="width:197px" %)0|(% style="width:204px" %)A 506 +|(% style="width:197px" %)1|(% style="width:204px" %)A 507 +|(% style="width:197px" %)2|(% style="width:204px" %)A 508 +|(% style="width:197px" %)3|(% style="width:204px" %)B 509 +|(% style="width:197px" %)4|(% style="width:204px" %)B 510 510 511 511 If this mapping takes advantage of regular expressions it can be expressed in two rules: 512 512 513 +(% style="width:336.294px" %) 514 +|(% style="width:182px" %)**Regular Expression**|(% style="width:151px" %)**Desired Output** 515 +|(% style="width:182px" %)[0-2]|(% style="width:151px" %)A 516 +|(% style="width:182px" %)[3-4]|(% style="width:151px" %)B 513 513 514 - RegularExpressionDesiredOutput518 +=== 13.10.3 Observation Attributes for Time Period === 515 515 516 -|[0-2]|A 517 -|[3-4]|B 520 +This use case is where a specific observation for a specific [[time period>>doc:sdmx:Glossary.Time period.WebHome]] has an [[attribute>>doc:sdmx:Glossary.Attribute.WebHome]] value. 518 518 519 -=== 13. Observation Attributes for Time Period === 522 +(% style="width:621.294px" %) 523 +|(% style="width:201px" %)Input INDICATOR|(% style="width:192px" %)Input TIME_PERIOD|(% style="width:225px" %)Output OBS_CONF 524 +|(% style="width:201px" %)XULADS|(% style="width:192px" %)2008|(% style="width:225px" %)C 525 +|(% style="width:201px" %)XULADS|(% style="width:192px" %)2009|(% style="width:225px" %)C 526 +|(% style="width:201px" %)XULADS|(% style="width:192px" %)2010|(% style="width:225px" %)C 520 520 521 - Thisusecaseiswhereaspecificobservationfor a specific timeperiod hasanattributevalue.528 +Or using a validity period on the [[Representation>>doc:sdmx:Glossary.Representation.WebHome]] Mapping: 522 522 523 -|Input INDICATOR|Input TIME_PERIOD|Output OBS_CONF 524 -|XULADS|2008|C 525 -|XULADS|2009|C 526 -|XULADS|2010|C 530 +(% style="width:629.294px" %) 531 +|(% style="width:202px" %)Input INDICATOR|(% style="width:197px" %)Valid From/ Valid To|(% style="width:227px" %) Output OBS_CONF 532 +|(% style="width:202px" %)XULADS|(% style="width:197px" %) 2008/2010|(% style="width:227px" %)С 527 527 528 - Orusinga validity periodon the Representation Mapping:534 +=== 13.10.4 Time mapping === 529 529 530 - Input INDICATORValidFrom/ ValidToOutputOBS_CONF536 +This use case is to create a [[time period>>doc:sdmx:Glossary.Time period.WebHome]] from an input that does not respect [[SDMX>>doc:sdmx:Glossary.Statistical data and metadata exchange.WebHome]] Time Formats. 531 531 532 - XULADS2008/2010 C538 +The [[Component>>doc:sdmx:Glossary.Component.WebHome]] Mapping from SYS_TIME to TIME_PERIOD specifies itself as a time mapping with the following details: 533 533 534 -=== 13. Time mapping === 540 +(% style="width:652.294px" %) 541 +|(% style="width:139px" %)Source Value|(% style="width:165px" %)Source Mapping|(% style="width:182px" %)Target Frequency|(% style="width:163px" %)Output 542 +|(% style="width:139px" %)18/07/1981|(% style="width:165px" %)dd/MM/yyyy|(% style="width:182px" %)A|(% style="width:163px" %)1981 535 535 536 - Thisusecase istocreate atimeperiodfrom aninput that doesnot respect SDMX Time Formats.544 +When the target frequency is based on another target [[Dimension>>doc:sdmx:Glossary.Dimension.WebHome]] value, in this example the value of the FREQ [[Dimension>>doc:sdmx:Glossary.Dimension.WebHome]] in the target [[DSD>>doc:sdmx:Glossary.Data structure definition.WebHome]]. 537 537 538 - The ComponentMappingfromSYS_TIME toTIME_PERIOD specifiesitselfas a time mappingwith thefollowingdetails:546 +|Source Value| Source Mapping|Target|Frequency Output 539 539 540 -|Source Value|Source Mapping|Target Frequency|Output 541 -|18/07/1981|dd/MM/yyyy|A|1981 542 542 543 -When the target frequency is based on another target Dimension value, in this example the value of the FREQ Dimension in the target DSD. 544 544 545 -Source Value Source Mapping Target Frequency Output 546 - 547 547 Dimension 548 548 549 549 |18/07/1981 dd/MM/yyyy FREQ| |1981-07-18 (when FREQ=D)