Wiki source code of 11 ItemSchemeMap

Version 12.1 by Helena K. on 2026/04/16 16:03

Hide last authors
Helena K. 5.1 1 {{box title="**Contents**"}}
2 {{toc/}}
3 {{/box}}
Helena K. 1.1 4
Helena K. 5.1 5 == 11.1 Scope ==
6
Artur K. 10.1 7 An //ItemSchemeMap// is an abstract container to describe mapping rules between any [[item scheme>>doc:Glossary.Item scheme.WebHome]], with the exception of Codelists and ValueLists which are mapped using the RepresentationMap. A single source //ItemScheme// is mapped to a single target //ItemScheme//. The //ItemSchemeMap// then contains the rules for how the values from the source //ItemScheme// map to the values in the target //ItemScheme//. 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.
Helena K. 1.1 8
9 The absence of an output for an input is interpreted as ‘no output value for the given source value(s)’.
10
11 [[image:1749246645221-918.jpeg]]
12
Helena K. 11.1 13 [[image:image66.png]]
14
Helena K. 1.1 15 **Figure 40: Item Scheme Map**
16
Helena K. 5.1 17 === 11.1.1 Explanation of the Diagram ===
Helena K. 1.1 18
Helena K. 5.1 19 ==== 11.1.1.1 Narrative ====
Helena K. 1.1 20
21 An ItemSchemeMap is an abstract type which inherits from Maintainable. It is subclassed by the 4 concrete classes:
22
23 * OrganisationSchemeMap
24 * ConceptSchemeMap
25 * CategorySchemeMap
26 * ReportingTaxonomyMap
27
Elena Yasinovskaya 6.2 28 An OrganisationSchemeMap maps a source AgencyScheme, DataProviderScheme, DataConsumerScheme or OrganisationUnitScheme to a target AgencyScheme, DataProviderScheme, DataConsumerScheme or OrganisationUnitScheme. It is permissible to mix source and target types to define an equivalence between Organisations of different roles. The mapped items refer to the Organisations in the source/target schemes.
Helena K. 1.1 29
Elena Yasinovskaya 6.2 30 A ConceptSchemeMap maps a source ConceptScheme to a target ConceptScheme.
Helena K. 1.1 31
Artur K. 10.1 32 The [[mapped>>doc:Glossary.Map.WebHome]] items refer to the [[Concepts>>doc:Glossary.Concept.WebHome]] in the source/target schemes.
Helena K. 1.1 33
Artur K. 10.1 34 A CategorySchemeMap [[maps>>doc:Glossary.Map.WebHome]] a source CategoryScheme to a target CategoryScheme.
Helena K. 1.1 35
Artur K. 10.1 36 The mapped Items refer to the [[Categories>>doc:Glossary.Category.WebHome]] in the source/target schemes.
Elena Yasinovskaya 6.2 37
38 A ReportingTaxonomyMap maps a source ReportingTaxonomy to a target ReportingTaxonomy. The mapped Items refer to the ReportingCategory in the source/target schemes.
39
Helena K. 5.1 40 ==== 11.1.1.2 Definitions ====
Helena K. 1.1 41
Helena K. 5.1 42 (% style="width:949.835px" %)
43 |**Class**|**Feature**|(% style="width:542px" %)**Description**
Helena K. 1.1 44 |//ItemSchemeMap//|(((
45 Inherits from
Helena K. 5.1 46 //MaintainableArtefact//
47 )))|(% style="width:542px" %)Links source and target //ItemSchemes//
48 | |+source|(% style="width:542px" %)Association to a source //ItemScheme//
49 | |+target|(% style="width:542px" %)Association to a target //ItemScheme//
Helena K. 1.1 50 |ItemMap|(((
51 Inherits from
52 //AnnotableArtefact//
Elena Yasinovskaya 6.2 53 )))|(% style="width:542px" %)Describes how the source value maps to the target value
Helena K. 5.1 54 | |validFrom|(% style="width:542px" %)Optional period describing when the mapping is applicable
55 | |validTo|(% style="width:542px" %)Optional period describing which the mapping is no longer applicable.
56 | |sourceValue|(% style="width:542px" %)Input value for source
Elena Yasinovskaya 6.2 57 | |targetValue|(% style="width:542px" %)Output value for each mapped target
Helena K. 5.1 58 | |isRegEx|(% style="width:542px" %)If true, the sourceValue field should be treated as a regular expression when comparing with the source data
59 | |startIndex|(% style="width:542px" %)If provided, a substring of the source data should be taken, starting from this index (starting at zero) before comparing with the //value// field for matching
60 | |endIndex|(% style="width:542px" %)If provided, a substring of the source data should be taken, ending at this index (starting at zero) before comparing with the //value// field for matching
Helena K. 1.1 61 |OrganisationSchemeMap|(((
62 Inherits from
63 //ItemSchemeMap//
Helena K. 5.1 64 )))|(% style="width:542px" %)Concrete //Maintainable// subtype of //ItemSchemeMap//
Helena K. 1.1 65 |ConceptSchemeMap|(((
66 Inherits from
67 //ItemSchemeMap//
Helena K. 5.1 68 )))|(% style="width:542px" %)Concrete //Maintainable// subtype of //ItemSchemeMap//
Helena K. 1.1 69 |CategorySchemeMap|(((
70 Inherits from
71 //ItemSchemeMap//
Helena K. 5.1 72 )))|(% style="width:542px" %)Concrete //Maintainable// subtype of //ItemSchemeMap//
Helena K. 1.1 73 |ReportingTaxonomyMap|(((
74 Inherits from
75 //ItemSchemeMap//
Helena K. 5.1 76 )))|(% style="width:542px" %)Concrete //Maintainable// subtype of //ItemSchemeMap//
© Semantic R&D Group, 2026