TextMapping#
Fully qualified class name of the UML model DDI-CDI 1.1beta: DDICDIModels::DDICDILibrary::Classes::FormatDescription::TextMapping
Definition#
The physical characteristics of an instance variable which appears in a data set using a text-based encoding and having a tabular structure (a tabular text data set).
Diagram#
Diagram
Inheritance#
Inheritance
Attributes#
Attributes
Name |
Inherited from |
Description |
Data Type |
Multiplicity |
Default value |
|---|---|---|---|---|---|
defaultDecimalSeparator |
- own class - |
Default value is “.” (period). The character separating the integer part from the fractional part of a decimal or real number. From the W3C Recommendation “Metadata Vocabulary for Tabular Data” (https://www.w3.org/TR/tabular-metadata/) 6.4.2: “decimalChar: A string whose value is used to represent a decimal point within the number. If the supplied value is not a string, implementations MUST issue a warning and proceed as if the property had not been specified.” |
String |
0..1 |
|
defaultDigitGroupSeparator |
- own class - |
Default value is null. A character separating groups of digits (for readability). In W3C part of the datatype format From https://www.w3.org/TR/tabular-metadata/ tabular 6.4.2 groupChar: “A string whose value is used to group digits within the number. If the supplied value is not a string, implementations MUST issue a warning and proceed as if the property had not been specified.” |
String |
0..1 |
|
length |
- own class - |
Length in characters of the physical representation of the value. From the W3C Recommendation “Metadata Vocabulary for Tabular Data” (https://www.w3.org/TR/tabular-metadata/) 5.11.2 “length: A numeric atomic property that contains a single integer that is the exact length of the value. The value of this property becomes the length annotation for the described datatype. See Length Constraints in [tabular-data-model] for details.” Corresponds to DDI2.5 var/location/width and DDI 3.2 PhysicalLocation/Width. |
Integer |
0..1 |
|
mappingLabel |
- own class - |
A human-readable display label for the associated instance variable as it appears in the tabular text data set. Supports the use of multiple languages. Repeat for labels with different content, for example, labels with differing length limitations. |
0..* |
||
decimalPositions |
The number of decimal positions expressed as an integer. Used when the decimal position is implied (no decimal separator is present) See DDI 3.2 ManagedNumericRepresentation_decimalPositions |
Integer |
0..1 |
||
defaultValue |
A default string indicating the value to substitute for an empty string. From https://www.w3.org/TR/tabular-metadata/ Inherited 5.7 “default - An atomic property holding a single string that is used to create a default value for the cell in cases where the original string value is an empty string. See Parsing Cells in [tabular-data-model] for more details. If not specified, the default for the default property is the empty string, “”. The value of this property becomes the default annotation for the described column.” |
String |
0..1 |
||
format |
This defines the format of the physical representation of the value. From https://www.w3.org/TR/tabular-metadata/ 5.11.2 format: “An atomic property that contains either a single string or an object that defines the format of a value of this type, used when parsing a string value as described in Parsing Cells in [tabular-data-model]. The value of this property becomes the format annotation for the described datatype.” See https://www.w3.org/TR/tabular-metadata/ Tabular 6.4.2 “Formats for numeric datatypes” this may include decimalChar, groupChar, pattern “By default, numeric values must be in the formats defined in [xmlschema11-2]. It is not uncommon for numbers within tabular data to be formatted for human consumption, which may involve using commas for decimal points, grouping digits in the number using commas, or adding percent signs to the number.” See https://www.w3.org/TR/tabular-metadata/ Tabular 6.4. Formats for Booleans “ Boolean values may be represented in many ways aside from the standard 1 and 0 or true and false.” See https://www.w3.org/TR/tabular-metadata/ 6.4.4. Formats for dates and times “By default, dates and times are assumed to be in the format defined in [xmlschema11-2]. However dates and times are commonly represented in tabular data in other formats.” See https://www.w3.org/TR/tabular-metadata/ 6.4.5 Formats for durations “Durations MUST be formatted and interpreted as defined in [xmlschema11-2], using the [ISO8601] format -?PnYnMnDTnHnMnS. For example, the duration P1Y1D is used for a year and a day; the duration PT2H30M for 2 hours and 30 minutes.” See https://www.w3.org/TR/tabular-metadata/ 6.4.6 Formats for other types “If the datatype base is not numeric, boolean, a date/time type, or a duration type, the datatype format annotation provides a regular expression for the string values, with syntax and processing defined by [ECMASCRIPT]. If the supplied value is not a valid regular expression, implementations MUST issue a warning and proceed as if no format had been provided.” From DDI3.2 ManagedNumericRepresentation@format “A format for number expressed as a string.” From DDI3.2 ManagedDateTimeRepresentation_DateFieldFormat “Describes the format of the date field, in formats such as YYYY/MM or MM-DD-YY, etc. If this element is omitted, then the format is assumed to be the XML Schema format corresponding to the type attribute value.” |
0..1 |
|||
identifier |
Identifier for objects requiring short- or long-lasting referencing and management. |
0..1 |
|||
isRequired |
If the value of this property is True indicates that a value is required for the referenced instance variable. From the W3C Recommendation “Metadata Vocabulary for Tabular Data” (https://www.w3.org/TR/tabular-metadata/) 5.7 Inherited Properties: “required: A boolean atomic property taking a single value which indicates whether the cell value can be null. See Parsing Cells in [tabular-data-model] for more details. The default is false, which means cells can have null values. The value of this property becomes the required annotation for the described column.” |
Boolean |
0..1 |
false |
|
maximumLength |
The largest possible value of the length of the physical representation of the value. From the W3C Recommendation “Metadata Vocabulary for Tabular Data” (https://www.w3.org/TR/tabular-metadata/) 5.11.2: “maxLength: A numeric atomic property that contains a single integer that is the maximum length of the value. The value of this property becomes the maximum length annotation for the described datatype. See Length Constraints in [tabular-data-model] for details.” |
Integer |
0..1 |
||
minimumLength |
The smallest possible value for the length of the physical representation of the value. From the W3C Recommendation “Metadata Vocabulary for Tabular Data” (https://www.w3.org/TR/tabular-metadata/) 5.11.2: “minLength: An atomic property that contains a single integer that is the minimum length of the value. The value of this property becomes the minimum length annotation for the described datatype. See Length Constraints in [tabular-data-model] for details.” |
Integer |
0..1 |
||
nullSequence |
A string indicating a null value. From the W3C Recommendation “Metadata Vocabulary for Tabular Data” (https://www.w3.org/TR/tabular-metadata/) 4.3: “null: the string or strings which cause the value of cells having string value matching any of these values to be null.” From the same source, Inherited 5.7: “null: An atomic property giving the string or strings used for null values within the data. If the string value of the cell is equal to any one of these values, the cell value is null. See Parsing Cells in [tabular-data-model] for more details. If not specified, the default for the null property is the empty string ‘’. The value of this property becomes the null annotation for the described column.” |
String |
0..1 |
||
numberPattern |
A pattern description of the format of a numeric value. In W3C part of the datatype format From https://www.w3.org/TR/tabular-metadata/ tabular 6.4.2 pattern: “A number format pattern as defined in [UAX35] http://www.unicode.org/reports/tr35/tr35-31/tr35-numbers.html#Number_Format_Patterns. Implementations MUST recognise number format patterns containing the symbols 0, #, the specified decimalChar (or “.” if unspecified), the specified groupChar (or “,” if unspecified), E, +, % and ‰. Implementations MAY additionally recognise number format patterns containing other special pattern characters defined in [UAX35]. If the supplied value is not a string, or if it contains an invalid number format pattern or uses special pattern characters that the implementation does not recognise, implementations MUST issue a warning and proceed as if the property had not been specified. If the datatype format annotation is a single string, this is interpreted in the same way as if it were an object with a pattern property whose value is that string. If the groupChar is specified, but no pattern is supplied, when parsing the string value of a cell against this format specification, implementations MUST recognise and parse numbers that consist of: an optional + or - sign, … Implementations MAY also recognise numeric values that are in any of the standard-decimal, standard-percent or standard-scientific formats listed in the Unicode Common Locale Data Repository. …” |
String |
0..1 |
||
position |
Position of a physical mapping in a sequence within a physical data set. It can be used instead of a physical mapping position object when the position is fixed (that means the physical mapping is not reused across physical data sets) |
Integer |
0..1 |
||
scale |
The scale of the number expressed as an integer. A multiplier to be used in combination with the value to determine the measurement. (E.g., a number expressed in 100’s with a value of 5 and a scale of 100 would be 500). |
Integer |
0..1 |
Associations#
Associations
Direction |
Association |
Description |
Multiplicity of TextMapping |
Package of Other Class |
Other Class |
Multiplicity of other class |
Aggregation Kind |
Inherited from |
|---|---|---|---|---|---|---|---|---|
from |
PhysicalMapping formats InstanceVariable |
0..* |
0..1 |
none |
||||
to |
PhysicalDataSet has PhysicalMapping |
0..* |
- own package - |
0..* |
none |
|||
to |
PhysicalMappingPosition indexes PhysicalMapping |
Assigns a position to a value mapping within a physical segment. |
1..1 |
- own package - |
0..* |
none |
Encodings#
Syntax representations / encodings
All syntax representations except the Canonical XMI are provided as reference points for specific implementations, or for use as defaults if sufficient in the form presented.
Fragment for the class TextMapping (entire model as XMI)
1<packagedElement xmlns:StandardProfile="http://www.omg.org/spec/UML/20131001/StandardProfile"
2 xmlns:uml="http://www.omg.org/spec/UML/20131001"
3 xmlns:xmi="http://www.omg.org/spec/XMI/20131001"
4 xmi:id="DDICDIModels-DDICDILibrary-Classes-FormatDescription-TextMapping"
5 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#TextMapping"
6 xmi:type="uml:Class">
7 <ownedComment xmi:id="DDICDIModels-DDICDILibrary-Classes-FormatDescription-TextMapping-ownedComment"
8 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#TextMapping-ownedComment"
9 xmi:type="uml:Comment">
10 <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-Classes-FormatDescription-TextMapping"/>
11 <body>Definition
12==========
13The physical characteristics of an instance variable which appears in a data set using a text-based encoding and having a tabular structure (a tabular text data set).
14</body>
15 </ownedComment>
16 <name>TextMapping</name>
17 <generalization xmi:id="DDICDIModels-DDICDILibrary-Classes-FormatDescription-TextMapping-generalization"
18 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#TextMapping-generalization"
19 xmi:type="uml:Generalization">
20 <general xmi:idref="DDICDIModels-DDICDILibrary-Classes-FormatDescription-PhysicalMapping"/>
21 </generalization>
22 <ownedAttribute xmi:id="DDICDIModels-DDICDILibrary-Classes-FormatDescription-TextMapping-defaultDecimalSeparator"
23 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#TextMapping-defaultDecimalSeparator"
24 xmi:type="uml:Property">
25 <ownedComment xmi:id="DDICDIModels-DDICDILibrary-Classes-FormatDescription-TextMapping-defaultDecimalSeparator-ownedComment"
26 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#TextMapping-defaultDecimalSeparator-ownedComment"
27 xmi:type="uml:Comment">
28 <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-Classes-FormatDescription-TextMapping-defaultDecimalSeparator"/>
29 <body>Default value is "." (period). The character separating the integer part from the fractional part of a decimal or real number. From the W3C Recommendation "Metadata Vocabulary for Tabular Data" (https://www.w3.org/TR/tabular-metadata/) 6.4.2: "decimalChar: A string whose value is used to represent a decimal point within the number. If the supplied value is not a string, implementations MUST issue a warning and proceed as if the property had not been specified."
30</body>
31 </ownedComment>
32 <lowerValue xmi:id="DDICDIModels-DDICDILibrary-Classes-FormatDescription-TextMapping-defaultDecimalSeparator-lowerValue"
33 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#TextMapping-defaultDecimalSeparator-lowerValue"
34 xmi:type="uml:LiteralInteger"/>
35 <upperValue xmi:id="DDICDIModels-DDICDILibrary-Classes-FormatDescription-TextMapping-defaultDecimalSeparator-upperValue"
36 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#TextMapping-defaultDecimalSeparator-upperValue"
37 xmi:type="uml:LiteralUnlimitedNatural">
38 <value>1</value>
39 </upperValue>
40 <name>defaultDecimalSeparator</name>
41 <type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#String"
42 xmi:type="uml:PrimitiveType"/>
43 </ownedAttribute>
44 <ownedAttribute xmi:id="DDICDIModels-DDICDILibrary-Classes-FormatDescription-TextMapping-defaultDigitGroupSeparator"
45 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#TextMapping-defaultDigitGroupSeparator"
46 xmi:type="uml:Property">
47 <ownedComment xmi:id="DDICDIModels-DDICDILibrary-Classes-FormatDescription-TextMapping-defaultDigitGroupSeparator-ownedComment"
48 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#TextMapping-defaultDigitGroupSeparator-ownedComment"
49 xmi:type="uml:Comment">
50 <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-Classes-FormatDescription-TextMapping-defaultDigitGroupSeparator"/>
51 <body>Default value is null. A character separating groups of digits (for readability). In W3C part of the datatype format From https://www.w3.org/TR/tabular-metadata/ tabular 6.4.2 groupChar: "A string whose value is used to group digits within the number. If the supplied value is not a string, implementations MUST issue a warning and proceed as if the property had not been specified."
52</body>
53 </ownedComment>
54 <lowerValue xmi:id="DDICDIModels-DDICDILibrary-Classes-FormatDescription-TextMapping-defaultDigitGroupSeparator-lowerValue"
55 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#TextMapping-defaultDigitGroupSeparator-lowerValue"
56 xmi:type="uml:LiteralInteger"/>
57 <upperValue xmi:id="DDICDIModels-DDICDILibrary-Classes-FormatDescription-TextMapping-defaultDigitGroupSeparator-upperValue"
58 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#TextMapping-defaultDigitGroupSeparator-upperValue"
59 xmi:type="uml:LiteralUnlimitedNatural">
60 <value>1</value>
61 </upperValue>
62 <name>defaultDigitGroupSeparator</name>
63 <type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#String"
64 xmi:type="uml:PrimitiveType"/>
65 </ownedAttribute>
66 <ownedAttribute xmi:id="DDICDIModels-DDICDILibrary-Classes-FormatDescription-TextMapping-length"
67 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#TextMapping-length"
68 xmi:type="uml:Property">
69 <ownedComment xmi:id="DDICDIModels-DDICDILibrary-Classes-FormatDescription-TextMapping-length-ownedComment"
70 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#TextMapping-length-ownedComment"
71 xmi:type="uml:Comment">
72 <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-Classes-FormatDescription-TextMapping-length"/>
73 <body>Length in characters of the physical representation of the value. From the W3C Recommendation "Metadata Vocabulary for Tabular Data" (https://www.w3.org/TR/tabular-metadata/) 5.11.2 "length: A numeric atomic property that contains a single integer that is the exact length of the value. The value of this property becomes the length annotation for the described datatype. See Length Constraints in [tabular-data-model] for details." Corresponds to DDI2.5 var/location/width and DDI 3.2 PhysicalLocation/Width.
74</body>
75 </ownedComment>
76 <lowerValue xmi:id="DDICDIModels-DDICDILibrary-Classes-FormatDescription-TextMapping-length-lowerValue"
77 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#TextMapping-length-lowerValue"
78 xmi:type="uml:LiteralInteger"/>
79 <upperValue xmi:id="DDICDIModels-DDICDILibrary-Classes-FormatDescription-TextMapping-length-upperValue"
80 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#TextMapping-length-upperValue"
81 xmi:type="uml:LiteralUnlimitedNatural">
82 <value>1</value>
83 </upperValue>
84 <name>length</name>
85 <type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Integer"
86 xmi:type="uml:PrimitiveType"/>
87 </ownedAttribute>
88 <ownedAttribute xmi:id="DDICDIModels-DDICDILibrary-Classes-FormatDescription-TextMapping-mappingLabel"
89 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#TextMapping-mappingLabel"
90 xmi:type="uml:Property">
91 <ownedComment xmi:id="DDICDIModels-DDICDILibrary-Classes-FormatDescription-TextMapping-mappingLabel-ownedComment"
92 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#TextMapping-mappingLabel-ownedComment"
93 xmi:type="uml:Comment">
94 <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-Classes-FormatDescription-TextMapping-mappingLabel"/>
95 <body>A human-readable display label for the associated instance variable as it appears in the tabular text data set. Supports the use of multiple languages. Repeat for labels with different content, for example, labels with differing length limitations.
96</body>
97 </ownedComment>
98 <lowerValue xmi:id="DDICDIModels-DDICDILibrary-Classes-FormatDescription-TextMapping-mappingLabel-lowerValue"
99 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#TextMapping-mappingLabel-lowerValue"
100 xmi:type="uml:LiteralInteger"/>
101 <upperValue xmi:id="DDICDIModels-DDICDILibrary-Classes-FormatDescription-TextMapping-mappingLabel-upperValue"
102 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#TextMapping-mappingLabel-upperValue"
103 xmi:type="uml:LiteralUnlimitedNatural">
104 <value>*</value>
105 </upperValue>
106 <name>mappingLabel</name>
107 <isOrdered>true</isOrdered>
108 <type xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-LabelForDisplay"/>
109 </ownedAttribute>
110</packagedElement>
Fragment for the class TextMapping (entire XML Schema)
1<xs:element name="TextMapping"
2 type="TextMappingXsdType"
3 xml:id="TextMapping">
4 <!-- based on the UML class DDICDIModels::DDICDILibrary::Classes::FormatDescription::TextMapping -->
5 <xs:annotation>
6 <xs:documentation>Definition
7 ==========
8 The physical characteristics of an instance variable which appears in a data set using a text-based encoding and having a tabular structure (a tabular text data set).</xs:documentation>
9 </xs:annotation>
10</xs:element>
11<xs:complexType name="TextMappingXsdType"
12 xml:id="TextMappingXsdType">
13 <xs:annotation>
14 <xs:documentation>Definition
15 ==========
16 The physical characteristics of an instance variable which appears in a data set using a text-based encoding and having a tabular structure (a tabular text data set).</xs:documentation>
17 </xs:annotation>
18 <xs:complexContent>
19 <xs:extension base="PhysicalMappingXsdType">
20 <xs:sequence>
21 <xs:element name="defaultDecimalSeparator"
22 type="xs:string"
23 minOccurs="0"
24 maxOccurs="1"
25 xml:id="TextMapping-defaultDecimalSeparator">
26 <xs:annotation>
27 <xs:documentation>Default value is "." (period). The character separating the integer part from the fractional part of a decimal or real number. From the W3C Recommendation "Metadata Vocabulary for Tabular Data" (https://www.w3.org/TR/tabular-metadata/) 6.4.2: "decimalChar: A string whose value is used to represent a decimal point within the number. If the supplied value is not a string, implementations MUST issue a warning and proceed as if the property had not been specified."</xs:documentation>
28 </xs:annotation>
29 </xs:element>
30 <xs:element name="defaultDigitGroupSeparator"
31 type="xs:string"
32 minOccurs="0"
33 maxOccurs="1"
34 xml:id="TextMapping-defaultDigitGroupSeparator">
35 <xs:annotation>
36 <xs:documentation>Default value is null. A character separating groups of digits (for readability). In W3C part of the datatype format From https://www.w3.org/TR/tabular-metadata/ tabular 6.4.2 groupChar: "A string whose value is used to group digits within the number. If the supplied value is not a string, implementations MUST issue a warning and proceed as if the property had not been specified."</xs:documentation>
37 </xs:annotation>
38 </xs:element>
39 <xs:element name="length"
40 type="xs:integer"
41 minOccurs="0"
42 maxOccurs="1"
43 xml:id="TextMapping-length">
44 <xs:annotation>
45 <xs:documentation>Length in characters of the physical representation of the value. From the W3C Recommendation "Metadata Vocabulary for Tabular Data" (https://www.w3.org/TR/tabular-metadata/) 5.11.2 "length: A numeric atomic property that contains a single integer that is the exact length of the value. The value of this property becomes the length annotation for the described datatype. See Length Constraints in [tabular-data-model] for details." Corresponds to DDI2.5 var/location/width and DDI 3.2 PhysicalLocation/Width.</xs:documentation>
46 </xs:annotation>
47 </xs:element>
48 <xs:element name="mappingLabel"
49 type="LabelForDisplayXsdType"
50 minOccurs="0"
51 maxOccurs="unbounded"
52 xml:id="TextMapping-mappingLabel">
53 <xs:annotation>
54 <xs:documentation>A human-readable display label for the associated instance variable as it appears in the tabular text data set. Supports the use of multiple languages. Repeat for labels with different content, for example, labels with differing length limitations.</xs:documentation>
55 </xs:annotation>
56 </xs:element>
57 </xs:sequence>
58 </xs:extension>
59 </xs:complexContent>
60</xs:complexType>
Fragment for the class TextMapping (entire JSON Schema)
1"cls-TextMapping": {
2 "description": "http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/TextMapping",
3 "type": "object",
4 "properties": {
5 "@context": {
6 "$ref": "#/defs/at-context"
7 },
8 "@id": {
9 "type": "string",
10 "format": "iri-reference"
11 },
12 "@type": {
13 "const": "TextMapping"
14 },
15 "defaultDecimalSeparator": {
16 "$comment": "cardinality 0..1 – from cdi:TextMapping",
17 "$ref": "#/defs/xsd:string"
18 },
19 "defaultDigitGroupSeparator": {
20 "$comment": "cardinality 0..1 – from cdi:TextMapping",
21 "$ref": "#/defs/xsd:string"
22 },
23 "length": {
24 "$comment": "cardinality 0..1 – from cdi:TextMapping",
25 "$ref": "#/defs/xsd:integer"
26 },
27 "mappingLabel": {
28 "$comment": "cardinality 0..-1 – from cdi:TextMapping",
29 "if": { "type": "array" },
30 "then": { "items": { "$ref": "#/defs/dt-LabelForDisplay" } },
31 "else": { "$ref": "#/defs/dt-LabelForDisplay" }
32 },
33 "decimalPositions": {
34 "$comment": "cardinality 0..1 – from cdi:PhysicalMapping",
35 "$ref": "#/defs/xsd:integer"
36 },
37 "defaultValue": {
38 "$comment": "cardinality 0..1 – from cdi:PhysicalMapping",
39 "$ref": "#/defs/xsd:string"
40 },
41 "format": {
42 "$comment": "cardinality 0..1 – from cdi:PhysicalMapping",
43 "$ref": "#/defs/dt-ControlledVocabularyEntry"
44 },
45 "identifier": {
46 "$comment": "cardinality 0..1 – from cdi:PhysicalMapping",
47 "$ref": "#/defs/dt-Identifier"
48 },
49 "isRequired": {
50 "$comment": "cardinality 0..1 – from cdi:PhysicalMapping",
51 "$ref": "#/defs/xsd:boolean"
52 },
53 "maximumLength": {
54 "$comment": "cardinality 0..1 – from cdi:PhysicalMapping",
55 "$ref": "#/defs/xsd:integer"
56 },
57 "minimumLength": {
58 "$comment": "cardinality 0..1 – from cdi:PhysicalMapping",
59 "$ref": "#/defs/xsd:integer"
60 },
61 "nullSequence": {
62 "$comment": "cardinality 0..1 – from cdi:PhysicalMapping",
63 "$ref": "#/defs/xsd:string"
64 },
65 "numberPattern": {
66 "$comment": "cardinality 0..1 – from cdi:PhysicalMapping",
67 "$ref": "#/defs/xsd:string"
68 },
69 "position": {
70 "$comment": "cardinality 0..1 – from cdi:PhysicalMapping",
71 "$ref": "#/defs/xsd:integer"
72 },
73 "scale": {
74 "$comment": "cardinality 0..1 – from cdi:PhysicalMapping",
75 "$ref": "#/defs/xsd:integer"
76 },
77 "formats": {
78 "description": "PhysicalMapping_formats_InstanceVariable",
79 "$comment": "cardinality 0..1",
80 "$ref": "#/defs/target-InstanceVariable"
81 },
82 "has_PhysicalMapping_OF_PhysicalDataSet": {
83 "description": "PhysicalDataSet_has_PhysicalMapping",
84 "$comment": "cardinality 0..-1",
85 "anyOf": [
86 {
87 "$ref": "#/defs/target-PhysicalDataSet"
88 },
89 {
90 "type": "array",
91 "items": {
92 "$ref": "#/defs/target-PhysicalDataSet"
93 }
94 }
95 ]
96 },
97 "indexes_OF_PhysicalMappingPosition": {
98 "description": "PhysicalMappingPosition_indexes_PhysicalMapping",
99 "$comment": "cardinality 0..-1",
100 "anyOf": [
101 {
102 "$ref": "#/defs/target-PhysicalMappingPosition"
103 },
104 {
105 "type": "array",
106 "items": {
107 "$ref": "#/defs/target-PhysicalMappingPosition"
108 }
109 }
110 ]
111 },
112 "sameAs": {
113 "$ref": "#/defs/owl:sameAs"
114 }
115 },
116 "required": ["@type"],
117 "additionalProperties": false
118},
119"target-TextMapping": {
120 "description": "all subclasses of http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/TextMapping",
121 "anyOf": [
122 { "$ref": "#/defs/cls-TextMapping" },
123 { "type": "string", "format": "iri-reference" }
124 ]
125},
Fragment for the class TextMapping (main ontology)
1# class TextMapping
2# based on the UML class DDICDIModels::DDICDILibrary::Classes::FormatDescription::TextMapping
3cdi:TextMapping
4 a rdfs:Class, owl:Class, ucmis:Class;
5 rdfs:label "TextMapping";
6 rdfs:comment "Definition\n==========\nThe physical characteristics of an instance variable which appears in a data set using a text-based encoding and having a tabular structure (a tabular text data set)."@en;
7 rdfs:subClassOf cdi:PhysicalMapping;
8.
9
10cdi:TextMapping-defaultDecimalSeparator
11 a rdf:Property, owl:DatatypeProperty, ucmis:Attribute;
12 rdfs:label "defaultDecimalSeparator";
13 rdfs:comment "Default value is \".\" (period). The character separating the integer part from the fractional part of a decimal or real number. From the W3C Recommendation \"Metadata Vocabulary for Tabular Data\" (https://www.w3.org/TR/tabular-metadata/) 6.4.2: \"decimalChar: A string whose value is used to represent a decimal point within the number. If the supplied value is not a string, implementations MUST issue a warning and proceed as if the property had not been specified.\""@en;
14 rdfs:domain cdi:TextMapping;
15 rdfs:range xsd:string;
16.
17
18cdi:TextMapping-defaultDigitGroupSeparator
19 a rdf:Property, owl:DatatypeProperty, ucmis:Attribute;
20 rdfs:label "defaultDigitGroupSeparator";
21 rdfs:comment "Default value is null. A character separating groups of digits (for readability). In W3C part of the datatype format From https://www.w3.org/TR/tabular-metadata/ tabular 6.4.2 groupChar: \"A string whose value is used to group digits within the number. If the supplied value is not a string, implementations MUST issue a warning and proceed as if the property had not been specified.\""@en;
22 rdfs:domain cdi:TextMapping;
23 rdfs:range xsd:string;
24.
25
26cdi:TextMapping-length
27 a rdf:Property, owl:DatatypeProperty, ucmis:Attribute;
28 rdfs:label "length";
29 rdfs:comment "Length in characters of the physical representation of the value. From the W3C Recommendation \"Metadata Vocabulary for Tabular Data\" (https://www.w3.org/TR/tabular-metadata/) 5.11.2 \"length: A numeric atomic property that contains a single integer that is the exact length of the value. The value of this property becomes the length annotation for the described datatype. See Length Constraints in [tabular-data-model] for details.\" Corresponds to DDI2.5 var/location/width and DDI 3.2 PhysicalLocation/Width."@en;
30 rdfs:domain cdi:TextMapping;
31 rdfs:range xsd:integer;
32.
33
34cdi:TextMapping-mappingLabel
35 a rdf:Property, owl:ObjectProperty, ucmis:Attribute;
36 rdfs:label "mappingLabel";
37 rdfs:comment "A human-readable display label for the associated instance variable as it appears in the tabular text data set. Supports the use of multiple languages. Repeat for labels with different content, for example, labels with differing length limitations."@en;
38 rdfs:domain cdi:TextMapping;
39 rdfs:range cdi:LabelForDisplay;
40.
Fragment for the class TextMapping (entire JSON-LD)
1{
2 "@context": [
3 "PhysicalMapping.jsonld",
4 {
5 "cdi": "http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/",
6 "xsd": "http://www.w3.org/2001/XMLSchema#",
7
8 "defaultDecimalSeparator": {
9 "@id": "cdi:TextMapping-defaultDecimalSeparator",
10 "@type": "xsd:string"
11 },
12 "defaultDigitGroupSeparator": {
13 "@id": "cdi:TextMapping-defaultDigitGroupSeparator",
14 "@type": "xsd:string"
15 },
16 "length": {
17 "@id": "cdi:TextMapping-length",
18 "@type": "xsd:integer"
19 },
20 "mappingLabel": {
21 "@id": "cdi:TextMapping-mappingLabel",
22 "@type": "@id",
23 "@context": "LabelForDisplay.jsonld"
24 },
25
26 " comment ": "tag:json-should-support-trailing-commas"
27 }
28 ],
29 "generatedBy": "This code was generated by the Eclipse Acceleo project UCMIS M2T on 2026-04-15 14:38:41.",
30 "basedOn": "based on the UML data type DDICDIModels::DDICDILibrary::Classes::FormatDescription::TextMapping"
31}
Fragment for the class TextMapping (entire SHACL - Shapes Constraint Language)
1# class TextMapping
2# based on the UML class DDICDIModels::DDICDILibrary::Classes::FormatDescription::TextMapping
3<#TextMapping> a sh:NodeShape;
4 sh:targetClass cdi:TextMapping;
5 sh:message "See http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/TextMapping";
6 sh:closed true;
7 sh:ignoredProperties ( owl:sameAs );
8 sh:property [
9 sh:path rdf:type;
10 sh:in ( cdi:TextMapping
11 ) ;
12 ];
13 # attributes
14 sh:property <#TextMapping-defaultDecimalSeparator>;
15 sh:property <#TextMapping-defaultDigitGroupSeparator>;
16 sh:property <#TextMapping-length>;
17 sh:property <#TextMapping-mappingLabel>;
18 # associations from TextMapping
19 # associations to TextMapping
20
21 # ---- superclass: PhysicalMapping
22 # attributes
23 sh:property <#PhysicalMapping-decimalPositions>;
24 sh:property <#PhysicalMapping-defaultValue>;
25 sh:property <#PhysicalMapping-format>;
26 sh:property <#PhysicalMapping-identifier>;
27 sh:property <#PhysicalMapping-isRequired>;
28 sh:property <#PhysicalMapping-maximumLength>;
29 sh:property <#PhysicalMapping-minimumLength>;
30 sh:property <#PhysicalMapping-nullSequence>;
31 sh:property <#PhysicalMapping-numberPattern>;
32 sh:property <#PhysicalMapping-position>;
33 sh:property <#PhysicalMapping-scale>;
34 # associations from PhysicalMapping
35 sh:property <#PhysicalMapping_formats_InstanceVariable>;
36 # associations to PhysicalMapping
37 sh:property <#rev_PhysicalDataSet_has_PhysicalMapping>;
38 sh:property <#rev_PhysicalMappingPosition_indexes_PhysicalMapping>;
39
40
41
42
43
44.
45
46<#TextMapping-defaultDecimalSeparator> a sh:PropertyShape ;
47 sh:path cdi:TextMapping-defaultDecimalSeparator;
48 sh:datatype xsd:string;
49 sh:maxCount 1;
50.
51<#TextMapping-defaultDigitGroupSeparator> a sh:PropertyShape ;
52 sh:path cdi:TextMapping-defaultDigitGroupSeparator;
53 sh:datatype xsd:string;
54 sh:maxCount 1;
55.
56<#TextMapping-length> a sh:PropertyShape ;
57 sh:path cdi:TextMapping-length;
58 sh:datatype xsd:integer;
59 sh:maxCount 1;
60.
61<#TextMapping-mappingLabel> a sh:PropertyShape ;
62 sh:path cdi:TextMapping-mappingLabel;
63 sh:node [ sh:property [ sh:path rdf:type; sh:minCount 1; sh:in (
64 cdi:LabelForDisplay
65
66 ) ]];
67.
Fragment for the class TextMapping (entire ShEx - Shape Expressions)
1# class TextMapping
2# based on the UML class DDICDIModels::DDICDILibrary::Classes::FormatDescription::TextMapping
3cdi:TextMappingShape CLOSED {
4 a [cdi:TextMapping];
5 cdi:TextMapping-defaultDecimalSeparator xsd:string?;
6 cdi:TextMapping-defaultDigitGroupSeparator xsd:string?;
7 cdi:TextMapping-length xsd:integer?;
8 cdi:TextMapping-mappingLabel @cdi:LabelForDisplayShape*;
9 &cdi:PhysicalMappingProperties;
10 }