Wiki source code of 11 ItemSchemeMap
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
| |
5.1 | 1 | {{box title="**Contents**"}} |
| 2 | {{toc/}} | ||
| 3 | {{/box}} | ||
| |
1.1 | 4 | |
| |
5.1 | 5 | == 11.1 Scope == |
| 6 | |||
| |
1.1 | 7 | An //ItemSchemeMap// is an abstract container to describe mapping rules between any item scheme, 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. |
| 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 | |||
| 13 | **Figure 40: Item Scheme Map** | ||
| 14 | |||
| |
5.1 | 15 | === 11.1.1 Explanation of the Diagram === |
| |
1.1 | 16 | |
| |
5.1 | 17 | ==== 11.1.1.1 Narrative ==== |
| |
1.1 | 18 | |
| 19 | An ItemSchemeMap is an abstract type which inherits from Maintainable. It is subclassed by the 4 concrete classes: | ||
| 20 | |||
| 21 | * OrganisationSchemeMap | ||
| 22 | * ConceptSchemeMap | ||
| 23 | * CategorySchemeMap | ||
| 24 | * ReportingTaxonomyMap | ||
| 25 | |||
| |
5.1 | 26 | 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. |
| |
1.1 | 27 | |
| 28 | A ConceptSchemeMap maps a source ConceptScheme to a target ConceptScheme. The mapped items refer to the Concepts in the source/target schemes. | ||
| 29 | |||
| 30 | A CategorySchemeMap maps a source CategoryScheme to a target CategoryScheme. The mapped Items refer to the Categories in the source/target schemes. | ||
| 31 | |||
| 32 | A ReportingTaxonomyMap maps a source ReportingTaxonomy to a target ReportingTaxonomy. The mapped Items refer to the ReportingCategory in the source/target schemes. | ||
| 33 | |||
| |
5.1 | 34 | ==== 11.1.1.2 Definitions ==== |
| |
1.1 | 35 | |
| |
5.1 | 36 | (% style="width:949.835px" %) |
| 37 | |**Class**|**Feature**|(% style="width:542px" %)**Description** | ||
| |
1.1 | 38 | |//ItemSchemeMap//|((( |
| 39 | Inherits from | ||
| |
5.1 | 40 | //MaintainableArtefact// |
| 41 | )))|(% style="width:542px" %)Links source and target //ItemSchemes// | ||
| 42 | | |+source|(% style="width:542px" %)Association to a source //ItemScheme// | ||
| 43 | | |+target|(% style="width:542px" %)Association to a target //ItemScheme// | ||
| |
1.1 | 44 | |ItemMap|((( |
| 45 | Inherits from | ||
| 46 | //AnnotableArtefact// | ||
| |
5.1 | 47 | )))|(% style="width:542px" %)Describes how the source value maps to the target value |
| 48 | | |validFrom|(% style="width:542px" %)Optional period describing when the mapping is applicable | ||
| 49 | | |validTo|(% style="width:542px" %)Optional period describing which the mapping is no longer applicable. | ||
| 50 | | |sourceValue|(% style="width:542px" %)Input value for source | ||
| 51 | | |targetValue|(% style="width:542px" %)Output value for each mapped target | ||
| 52 | | |isRegEx|(% style="width:542px" %)If true, the sourceValue field should be treated as a regular expression when comparing with the source data | ||
| 53 | | |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 | ||
| 54 | | |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 | ||
| |
1.1 | 55 | |OrganisationSchemeMap|((( |
| 56 | Inherits from | ||
| 57 | //ItemSchemeMap// | ||
| |
5.1 | 58 | )))|(% style="width:542px" %)Concrete //Maintainable// subtype of //ItemSchemeMap// |
| |
1.1 | 59 | |ConceptSchemeMap|((( |
| 60 | Inherits from | ||
| 61 | //ItemSchemeMap// | ||
| |
5.1 | 62 | )))|(% style="width:542px" %)Concrete //Maintainable// subtype of //ItemSchemeMap// |
| |
1.1 | 63 | |CategorySchemeMap|((( |
| 64 | Inherits from | ||
| 65 | //ItemSchemeMap// | ||
| |
5.1 | 66 | )))|(% style="width:542px" %)Concrete //Maintainable// subtype of //ItemSchemeMap// |
| |
1.1 | 67 | |ReportingTaxonomyMap|((( |
| 68 | Inherits from | ||
| 69 | |||
| 70 | //ItemSchemeMap// | ||
| |
5.1 | 71 | )))|(% style="width:542px" %)Concrete //Maintainable// subtype of //ItemSchemeMap// |