As indicated in the module introduction, there are many use cases for recoding data. This unit introduces what is possible using SDMX and what is needed to implement it.
Recoding data may be given different labels such as mapping data or transforming data but fundamentally it all refers to the same objective:
It is critical to note that recoding data in SDMX does not modify data or create new data and should not be thought of as a mechanism to aggregate or disaggregate data. Recoding of data re-organises and recodes it so that an observation is described according to a different structural model.
The differences in the structural model could be any or all of the following:
The mapping of concepts can range from the simple approach of a lookup table whereby concept A maps to concept B to complex pattern matching with regular expressions (regex).
Select each question to discover more.
Structure maps define the source and target DSD or the source and target dataflow. While representation maps are used to define mapping rules between source and target values.
Select each type of map to learn more.
The structure map defines:
The source DSD/dataflow is the one from which the data will be input into the mapping.
Although the mapping rules are bi-directional (data mapped one way can be mapped back again) for more complex mappings, which include regular expression matches or substring matches on the source, it is not always possible to map back again. Therefore, the source DSD or dataflow should be selected based on where the data are coming from, and the target is where the data are going to because of the mapping.
An SDMX v3.0 representation map defines:
When a source value is matched, the target value is output.
Representation maps can be used:
A representation map is more than a simple lookup table, as more complex rules can be introduced such as regular expression matches which can include capture groups to transfer patterns from source to target, substring matches, as well as rules which are only applicable for certain periods of time.
The transformation from one dataset/dataflow to another using structure maps may be actioned:
Now that you’ve completed our introduction, try this.
The SDMX method to recode data according to various structural model mappings in an automated way is by using structure maps and representation maps along with an SDMX transformation application.
Which of the following best describes the role of a structure map?
Select your answer and then select Submit.
The structure map defines the source and target DSD, or source and target dataflow if the mapping is dataflow specific.
The representation map defines the mapping rules between a source value (or combination of values) and a target value (or combination of targets).
Recoding data in SDMX does not modify data or create new data and should not be thought of as a mechanism to aggregate or disaggregate data.
The correct answer is option 2.
The structure map defines the source and target DSD, or source and target dataflow if the mapping is dataflow specific.
The representation map defines the mapping rules between a source value (or combination of values) and a target value (or combination of targets).
Recoding data in SDMX does not modify data or create new data and should not be thought of as a mechanism to aggregate or disaggregate data.