Changes for page 10 RepresentationMap

Last modified by Artur on 2025/09/10 11:19

From version 10.1
edited by Artur
on 2025/05/22 14:56
Change comment: There is no comment for this version
To version 6.5
edited by Helena
on 2025/05/19 14:26
Change comment: Update document after refactoring.

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -xwiki:XWiki.arturkryazhev
1 +xwiki:XWiki.helena
Content
... ... @@ -6,7 +6,7 @@
6 6  
7 7  A RepresentationMap describes a mapping between source value(s) and target value(s) where the values are restricted to those in a Codelist, ValueList or be of a certain data type, e.g., Integer.
8 8  
9 -The RepresentationMap (% style="color:#e74c3c" %)maps(%%) information from one or more sources, where the values for each source are used in combination to derive the output value for one or more targets. Each source value may match a substring of the original data (using startIndex and/or endIndex) or define a pattern matching rule described by a regular expression. The target value is provided as an absolute string, although it can make use of regular expression groups to carry across values from the source string to the target string without having to explicitly state the value to carry. An example is a regular expression which states ‘match a value starting with AB followed by anything, where the anything is marked a capture group’, the target can state ‘take the anything value and postfix it with AB’ thus enabling the mapping of ABX to XAB and ABY to YAB.
9 +The RepresentationMap (% style="color:#2ecc71" %)maps(%%) information from one or more sources, where the values for each source are used in combination to derive the output value for one or more targets. Each source value may match a substring of the original data (using startIndex and/or endIndex) or define a pattern matching rule described by a regular expression. The target value is provided as an absolute string, although it can make use of regular expression groups to carry across values from the source string to the target string without having to explicitly state the value to carry. An example is a regular expression which states ‘match a value starting with AB followed by anything, where the anything is marked a capture group’, the target can state ‘take the anything value and postfix it with AB’ thus enabling the mapping of ABX to XAB and ABY to YAB.
10 10  
11 11  The absence of an output for an input is interpreted as ‘no output value for the given source value(s)’.
12 12  
... ... @@ -20,7 +20,7 @@
20 20  
21 21  ==== 10.1.2.1 Narrative ====
22 22  
23 -The RepresentationMap is a //MaintainableArtefact//. It (% style="color:#e74c3c" %)maps(%%) one or more source values to one or more target values, where values that are being (% style="color:#e74c3c" %)mapped(%%) are defined by the //ValueRepresentation//. A //ValueRepresentation// is an abstract container which is either a Codelist, ValueList or a FacetValueType. Source and target values are in a list where the list order is important as the RepresentationMapping sourceValues and targetValues must match the order. It is permissible to mix types for both source and target values, allowing for example a Codelist to (% style="color:#e74c3c" %)map(%%) to an Integer (which is a FacetValueType). The list of source or targets can also be mixed, for example a Codelist in conjunction with a FacetValueType and ValueList and can be defined as the source of a mapping, thus allowing rules such as ‘When CL_AREA=UK AND AGE=26 CURRENCY=$’.
23 +The RepresentationMap is a //MaintainableArtefact//. It (% style="color:#2ecc71" %)maps(%%) one or more source values to one or more target values, where values that are being (% style="color:#2ecc71" %)mapped(%%) are defined by the //ValueRepresentation//. A //ValueRepresentation// is an abstract container which is either a Codelist, ValueList or a FacetValueType. Source and target values are in a list where the list order is important as the RepresentationMapping sourceValues and targetValues must match the order. It is permissible to mix types for both source and target values, allowing for example a Codelist to (% style="color:#2ecc71" %)map(%%) to an Integer (which is a FacetValueType). The list of source or targets can also be mixed, for example a Codelist in conjunction with a FacetValueType and ValueList and can be defined as the source of a mapping, thus allowing rules such as ‘When CL_AREA=UK AND AGE=26 CURRENCY=$’.
24 24  
25 25  ==== 10.1.2.2 Definitions ====
26 26  
... ... @@ -30,17 +30,17 @@
30 30  |(% style="width:218px" %)RepresentationMap|(% style="width:200px" %)(((
31 31  Inherits from
32 32  //MaintainableArtefact//
33 -)))|(% style="width:440px" %)Links source and target [[representations>>doc:Glossary.Representation.WebHome]], whose values may conform to a linked Codelist, ValueList or enumerated type such as Integer.
33 +)))|(% style="width:440px" %)Links source and target [[representations>>doc:xwiki:Glossary.Representation.WebHome]], whose values may conform to a linked Codelist, ValueList or enumerated type such as Integer.
34 34  |(% style="width:218px" %) |(% style="width:200px" %)source|(% style="width:440px" %)Association to one or more Codelist, ValueList, or FacetValue – mixed types are permissible
35 35  |(% style="width:218px" %) |(% style="width:200px" %)target|(% style="width:440px" %)Association to one or more Codelist, ValueList, or FacetValue – mixed types are permissible
36 36  |(% style="width:218px" %)RepresentationMapping|(% style="width:200px" %)(((
37 37  Inherits from
38 38  //AnnotableArtefact//
39 -)))|(% style="width:440px" %)Describes how the source value(s) (% style="color:#e74c3c" %)map(%%) to the target value(s)
39 +)))|(% style="width:440px" %)Describes how the source value(s) (% style="color:#2ecc71" %)map(%%) to the target value(s)
40 40  |(% style="width:218px" %) |(% style="width:200px" %)validFrom|(% style="width:440px" %)Optional period describing when the mapping is applicable
41 41  |(% style="width:218px" %) |(% style="width:200px" %)validTo|(% style="width:440px" %)Optional period describing which the mapping is no longer applicable.
42 42  |(% style="width:218px" %) |(% style="width:200px" %)sourceValues|(% style="width:440px" %)Input value for source in the RepresentationMap
43 -|(% style="width:218px" %) |(% style="width:200px" %)targetValues|(% style="width:440px" %)Output value for each (% style="color:#e74c3c" %)mapped(%%) target in the RepresentationMap
43 +|(% style="width:218px" %) |(% style="width:200px" %)targetValues|(% style="width:440px" %)Output value for each (% style="color:#2ecc71" %)mapped(%%) target in the RepresentationMap
44 44  |(% style="width:218px" %)MappedValue|(% style="width:200px" %) |(% style="width:440px" %)Describes an input value that is part of the sourceValues in a RepresentationMapping
45 45  |(% style="width:218px" %) |(% style="width:200px" %)value|(% style="width:440px" %)The value to compare the source data with
46 46  |(% style="width:218px" %) |(% style="width:200px" %)isRegEx|(% style="width:440px" %)If true, the value field should be treated as a regular expression when comparing with the source data
SUZ.Methodology.Code.MethodologyClass[0]
index
... ... @@ -1,1 +1,0 @@
1 -11