LocatorMapping#

Fully qualified class name of the UML model DDI-CDI 1.1beta: DDICDIModels::DDICDILibrary::Classes::FormatDescription::LocatorMapping

Definition#

The physical characteristics of an instance variable which appears in a data set using a binary or highly structured text-based encoding (a structured data set).

Diagram#

Diagram

Inheritance#

Inheritance
  ᐊ── FormatDescription::LocatorMapping

Attributes#

Attributes
Attributes#

Name

Inherited from

Description

Data Type

Multiplicity

Default value

locator

- own class -

Logical expression which resolves to the value(s) whose position within the file is being described. May be a query string, a path expressions, etc. Must be meaningful in the context of the systems which are designed to operate on the type of structure of the file (i.e., an XPath expression for an XML file, SQL for relational data, etc.)

String

1..1

decimalPositions

FormatDescription::PhysicalMapping

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

FormatDescription::PhysicalMapping

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

FormatDescription::PhysicalMapping

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.”

ControlledVocabularyEntry

0..1

identifier

FormatDescription::PhysicalMapping

Identifier for objects requiring short- or long-lasting referencing and management.

Identifier

0..1

isRequired

FormatDescription::PhysicalMapping

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

FormatDescription::PhysicalMapping

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

FormatDescription::PhysicalMapping

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

FormatDescription::PhysicalMapping

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

FormatDescription::PhysicalMapping

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

FormatDescription::PhysicalMapping

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

FormatDescription::PhysicalMapping

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
Associations#

Direction

Association

Description

Multiplicity of LocatorMapping

Package of Other Class

Other Class

Multiplicity of other class

Aggregation Kind

Inherited from

from

PhysicalMapping formats InstanceVariable

0..*

Conceptual

InstanceVariable

0..1

none

FormatDescription::PhysicalMapping

to

PhysicalDataSet has PhysicalMapping

0..*

- own package -

PhysicalDataSet

0..*

none

FormatDescription::PhysicalMapping

to

PhysicalMappingPosition indexes PhysicalMapping

Assigns a position to a value mapping within a physical segment.

1..1

- own package -

PhysicalMappingPosition

0..*

none

FormatDescription::PhysicalMapping

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 LocatorMapping (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-LocatorMapping"
 5                  xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#LocatorMapping"
 6                  xmi:type="uml:Class">
 7   <ownedComment xmi:id="DDICDIModels-DDICDILibrary-Classes-FormatDescription-LocatorMapping-ownedComment"
 8                  xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#LocatorMapping-ownedComment"
 9                  xmi:type="uml:Comment">
10      <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-Classes-FormatDescription-LocatorMapping"/>
11      <body>Definition
12==========
13The physical characteristics of an instance variable which appears in a data set using a binary or highly structured text-based encoding (a structured data set).
14</body>
15   </ownedComment>
16   <name>LocatorMapping</name>
17   <generalization xmi:id="DDICDIModels-DDICDILibrary-Classes-FormatDescription-LocatorMapping-generalization"
18                    xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#LocatorMapping-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-LocatorMapping-locator"
23                    xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#LocatorMapping-locator"
24                    xmi:type="uml:Property">
25      <ownedComment xmi:id="DDICDIModels-DDICDILibrary-Classes-FormatDescription-LocatorMapping-locator-ownedComment"
26                     xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#LocatorMapping-locator-ownedComment"
27                     xmi:type="uml:Comment">
28         <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-Classes-FormatDescription-LocatorMapping-locator"/>
29         <body>Logical expression which resolves to the value(s) whose position within the file is being described. May be a query string, a path expressions, etc. Must be meaningful in the context of the systems which are designed to operate on the type of structure of the file (i.e., an XPath expression for an XML file, SQL for relational data, etc.)
30</body>
31      </ownedComment>
32      <lowerValue xmi:id="DDICDIModels-DDICDILibrary-Classes-FormatDescription-LocatorMapping-locator-lowerValue"
33                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#LocatorMapping-locator-lowerValue"
34                   xmi:type="uml:LiteralInteger">
35         <value>1</value>
36      </lowerValue>
37      <upperValue xmi:id="DDICDIModels-DDICDILibrary-Classes-FormatDescription-LocatorMapping-locator-upperValue"
38                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#LocatorMapping-locator-upperValue"
39                   xmi:type="uml:LiteralUnlimitedNatural">
40         <value>1</value>
41      </upperValue>
42      <name>locator</name>
43      <type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#String"
44             xmi:type="uml:PrimitiveType"/>
45   </ownedAttribute>
46</packagedElement>

Fragment for the class LocatorMapping (entire XML Schema)

 1<xs:element name="LocatorMapping"
 2            type="LocatorMappingXsdType"
 3            xml:id="LocatorMapping">
 4  <!-- based on the UML class DDICDIModels::DDICDILibrary::Classes::FormatDescription::LocatorMapping -->
 5  <xs:annotation>
 6    <xs:documentation>Definition
 7          ==========
 8          The physical characteristics of an instance variable which appears in a data set using a binary or highly structured text-based encoding (a structured data set).</xs:documentation>
 9  </xs:annotation>
10</xs:element>
11<xs:complexType name="LocatorMappingXsdType"
12                xml:id="LocatorMappingXsdType">
13  <xs:annotation>
14    <xs:documentation>Definition
15          ==========
16          The physical characteristics of an instance variable which appears in a data set using a binary or highly structured text-based encoding (a structured data set).</xs:documentation>
17  </xs:annotation>
18  <xs:complexContent>
19    <xs:extension base="PhysicalMappingXsdType">
20      <xs:sequence>
21        <xs:element name="locator"
22                    type="xs:string"
23                    minOccurs="1"
24                    maxOccurs="1"
25                    xml:id="LocatorMapping-locator">
26          <xs:annotation>
27            <xs:documentation>Logical expression which resolves to the value(s) whose position within the file is being described. May be a query string, a path expressions, etc. Must be meaningful in the context of the systems which are designed to operate on the type of structure of the file (i.e., an XPath expression for an XML file, SQL for relational data, etc.)</xs:documentation>
28          </xs:annotation>
29        </xs:element>
30      </xs:sequence>
31    </xs:extension>
32  </xs:complexContent>
33</xs:complexType>

Fragment for the class LocatorMapping (entire JSON Schema)

  1"cls-LocatorMapping": {
  2  "description": "http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/LocatorMapping",
  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": "LocatorMapping"
 14    },
 15    "locator": {
 16      "$comment": "cardinality 1..1 – from cdi:LocatorMapping",
 17      "$ref": "#/defs/xsd:string"
 18    },
 19    "decimalPositions": {
 20      "$comment": "cardinality 0..1 – from cdi:PhysicalMapping",
 21      "$ref": "#/defs/xsd:integer"
 22    },
 23    "defaultValue": {
 24      "$comment": "cardinality 0..1 – from cdi:PhysicalMapping",
 25      "$ref": "#/defs/xsd:string"
 26    },
 27    "format": {
 28      "$comment": "cardinality 0..1 – from cdi:PhysicalMapping",
 29      "$ref": "#/defs/dt-ControlledVocabularyEntry"
 30    },
 31    "identifier": {
 32      "$comment": "cardinality 0..1 – from cdi:PhysicalMapping",
 33      "$ref": "#/defs/dt-Identifier"
 34    },
 35    "isRequired": {
 36      "$comment": "cardinality 0..1 – from cdi:PhysicalMapping",
 37      "$ref": "#/defs/xsd:boolean"
 38    },
 39    "maximumLength": {
 40      "$comment": "cardinality 0..1 – from cdi:PhysicalMapping",
 41      "$ref": "#/defs/xsd:integer"
 42    },
 43    "minimumLength": {
 44      "$comment": "cardinality 0..1 – from cdi:PhysicalMapping",
 45      "$ref": "#/defs/xsd:integer"
 46    },
 47    "nullSequence": {
 48      "$comment": "cardinality 0..1 – from cdi:PhysicalMapping",
 49      "$ref": "#/defs/xsd:string"
 50    },
 51    "numberPattern": {
 52      "$comment": "cardinality 0..1 – from cdi:PhysicalMapping",
 53      "$ref": "#/defs/xsd:string"
 54    },
 55    "position": {
 56      "$comment": "cardinality 0..1 – from cdi:PhysicalMapping",
 57      "$ref": "#/defs/xsd:integer"
 58    },
 59    "scale": {
 60      "$comment": "cardinality 0..1 – from cdi:PhysicalMapping",
 61      "$ref": "#/defs/xsd:integer"
 62    },
 63    "formats": {
 64      "description": "PhysicalMapping_formats_InstanceVariable",
 65      "$comment": "cardinality 0..1",
 66       "$ref": "#/defs/target-InstanceVariable"
 67    },
 68    "has_PhysicalMapping_OF_PhysicalDataSet": {
 69      "description": "PhysicalDataSet_has_PhysicalMapping",
 70      "$comment": "cardinality 0..-1",
 71      "anyOf": [
 72        {
 73          "$ref": "#/defs/target-PhysicalDataSet"
 74        },
 75        {
 76          "type": "array",
 77          "items": {
 78            "$ref": "#/defs/target-PhysicalDataSet"
 79          }
 80        }
 81      ]
 82    },
 83    "indexes_OF_PhysicalMappingPosition": {
 84      "description": "PhysicalMappingPosition_indexes_PhysicalMapping",
 85      "$comment": "cardinality 0..-1",
 86      "anyOf": [
 87        {
 88          "$ref": "#/defs/target-PhysicalMappingPosition"
 89        },
 90        {
 91          "type": "array",
 92          "items": {
 93            "$ref": "#/defs/target-PhysicalMappingPosition"
 94          }
 95        }
 96      ]
 97    },
 98    "sameAs": {
 99      "$ref": "#/defs/owl:sameAs"
100    }
101  },
102  "required": ["locator","@type"],
103  "additionalProperties": false
104},
105"target-LocatorMapping": {
106  "description": "all subclasses of http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/LocatorMapping",
107  "anyOf": [
108    { "$ref": "#/defs/cls-LocatorMapping" },
109    { "type": "string", "format": "iri-reference" }
110  ]
111},

Fragment for the class LocatorMapping (main ontology)

 1# class LocatorMapping
 2# based on the UML class DDICDIModels::DDICDILibrary::Classes::FormatDescription::LocatorMapping
 3cdi:LocatorMapping
 4  a rdfs:Class, owl:Class, ucmis:Class;
 5  rdfs:label "LocatorMapping";
 6  rdfs:comment "Definition\n==========\nThe physical characteristics of an instance variable which appears in a data set using a binary or highly structured text-based encoding (a structured data set)."@en;
 7  rdfs:subClassOf cdi:PhysicalMapping;
 8.
 9
10cdi:LocatorMapping-locator
11  a rdf:Property, owl:DatatypeProperty, ucmis:Attribute;
12  rdfs:label "locator";
13  rdfs:comment "Logical expression which resolves to the value(s) whose position within the file is being described. May be a query string, a path expressions, etc. Must be meaningful in the context of the systems which are designed to operate on the type of structure of the file (i.e., an XPath expression for an XML file, SQL for relational data, etc.)"@en;
14  rdfs:domain cdi:LocatorMapping;
15  rdfs:range xsd:string;
16.

Fragment for the class LocatorMapping (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      "locator": {
 9        "@id": "cdi:LocatorMapping-locator",
10        "@type": "xsd:string"
11      },
12      
13      " comment ": "tag:json-should-support-trailing-commas"
14    }
15  ],
16  "generatedBy": "This code was generated by the Eclipse Acceleo project UCMIS M2T on 2026-04-15 14:38:40.",
17  "basedOn": "based on the UML data type DDICDIModels::DDICDILibrary::Classes::FormatDescription::LocatorMapping"
18}

Fragment for the class LocatorMapping (entire SHACL - Shapes Constraint Language)

 1# class LocatorMapping
 2# based on the UML class DDICDIModels::DDICDILibrary::Classes::FormatDescription::LocatorMapping
 3<#LocatorMapping> a sh:NodeShape;
 4    sh:targetClass cdi:LocatorMapping;
 5	sh:message "See http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/LocatorMapping";
 6	sh:closed true;
 7	sh:ignoredProperties ( owl:sameAs );
 8    sh:property [
 9			sh:path rdf:type;
10			sh:in (   cdi:LocatorMapping
11			 ) ;
12    ];
13    # attributes
14    sh:property <#LocatorMapping-locator>;
15    # associations from LocatorMapping
16    # associations to LocatorMapping
17
18    # ---- superclass: PhysicalMapping
19    # attributes
20    sh:property <#PhysicalMapping-decimalPositions>;
21    sh:property <#PhysicalMapping-defaultValue>;
22    sh:property <#PhysicalMapping-format>;
23    sh:property <#PhysicalMapping-identifier>;
24    sh:property <#PhysicalMapping-isRequired>;
25    sh:property <#PhysicalMapping-maximumLength>;
26    sh:property <#PhysicalMapping-minimumLength>;
27    sh:property <#PhysicalMapping-nullSequence>;
28    sh:property <#PhysicalMapping-numberPattern>;
29    sh:property <#PhysicalMapping-position>;
30    sh:property <#PhysicalMapping-scale>;
31    # associations from PhysicalMapping
32    sh:property <#PhysicalMapping_formats_InstanceVariable>;
33    # associations to PhysicalMapping
34    sh:property <#rev_PhysicalDataSet_has_PhysicalMapping>;
35    sh:property <#rev_PhysicalMappingPosition_indexes_PhysicalMapping>;
36
37
38
39
40
41.
42
43<#LocatorMapping-locator> a sh:PropertyShape ;
44    sh:path cdi:LocatorMapping-locator;
45    sh:datatype xsd:string;
46    sh:minCount 1;
47    sh:maxCount 1;
48.

Fragment for the class LocatorMapping (entire ShEx - Shape Expressions)

1# class LocatorMapping
2# based on the UML class DDICDIModels::DDICDILibrary::Classes::FormatDescription::LocatorMapping
3cdi:LocatorMappingShape CLOSED {
4	a [cdi:LocatorMapping];
5	cdi:LocatorMapping-locator	xsd:string;
6		&cdi:PhysicalMappingProperties;
7	}