TextPositionSelector

Fully qualified datatype name: DDICDIModels::DDICDILibrary::DataTypes::StructuredDataTypes::TextPositionSelector

Definition

Describes a range of text by recording the start and end positions of the selection in the object. Position 0 would be immediately before the first character, position 1 would be immediately before the second character, and so on. It is defined accordingly the related selector of the Web Annotation Vocabulary, see https://www.w3.org/TR/annotation-vocab/#textpositionselector.

Diagram

Inheritance
  ᐊ── StructuredDataTypes::TextPositionSelector
Attributes

Name

Inherited from

Description

Data Type

Multiplicity

Default value

end

- own datatype -

Position of the last character of the selection. Position 8 would be the end of the word “Position” of the previous sentence.

Integer

1..1

start

- own datatype -

Position of the first character of the selection. Position 0 would be the start of the word “Position” of the previous sentence.

Integer

1..1

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 data type TextPositionSelector (entire XMI model)

 1<packagedElement xmlns:StandardProfile="http://www.eclipse.org/uml2/5.0.0/UML/Profile/Standard"
 2                 xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML"
 3                 xmlns:xmi="http://www.omg.org/spec/XMI/20131001"
 4                 xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-TextPositionSelector"
 5                 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#TextPositionSelector"
 6                 xmi:type="uml:DataType">
 7   <ownedComment xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-TextPositionSelector-ownedComment"
 8                 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#TextPositionSelector-ownedComment"
 9                 xmi:type="uml:Comment">
10      <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-TextPositionSelector"/>
11      <body>Definition
12==========
13Describes a range of text by recording the start and end positions of the selection in the object. Position 0 would be immediately before the first character, position 1 would be immediately before the second character, and so on. It is defined accordingly the related selector of the Web Annotation Vocabulary, see https://www.w3.org/TR/annotation-vocab/#textpositionselector.</body>
14   </ownedComment>
15   <name>TextPositionSelector</name>
16   <generalization xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-TextPositionSelector-generalization"
17                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#TextPositionSelector-generalization"
18                   xmi:type="uml:Generalization">
19      <general xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-Selector"/>
20   </generalization>
21   <ownedAttribute xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-TextPositionSelector-end"
22                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#TextPositionSelector-end"
23                   xmi:type="uml:Property">
24      <ownedComment xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-TextPositionSelector-end-ownedComment"
25                    xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#TextPositionSelector-end-ownedComment"
26                    xmi:type="uml:Comment">
27         <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-TextPositionSelector-end"/>
28         <body>Position of the last character of the selection. Position 8 would be the end of the word "Position" of the previous sentence.</body>
29      </ownedComment>
30      <lowerValue xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-TextPositionSelector-end-lowerValue"
31                  xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#TextPositionSelector-end-lowerValue"
32                  xmi:type="uml:LiteralInteger">
33         <value>1</value>
34      </lowerValue>
35      <upperValue xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-TextPositionSelector-end-upperValue"
36                  xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#TextPositionSelector-end-upperValue"
37                  xmi:type="uml:LiteralUnlimitedNatural">
38         <value>1</value>
39      </upperValue>
40      <name>end</name>
41      <type href="http://www.eclipse.org/uml2/5.0.0/UML/PrimitiveTypes.xmi#Integer"
42            xmi:type="uml:PrimitiveType"/>
43   </ownedAttribute>
44   <ownedAttribute xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-TextPositionSelector-start"
45                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#TextPositionSelector-start"
46                   xmi:type="uml:Property">
47      <ownedComment xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-TextPositionSelector-start-ownedComment"
48                    xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#TextPositionSelector-start-ownedComment"
49                    xmi:type="uml:Comment">
50         <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-TextPositionSelector-start"/>
51         <body>Position of the first character of the selection. Position 0 would be the start of the word "Position" of the previous sentence.</body>
52      </ownedComment>
53      <lowerValue xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-TextPositionSelector-start-lowerValue"
54                  xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#TextPositionSelector-start-lowerValue"
55                  xmi:type="uml:LiteralInteger">
56         <value>1</value>
57      </lowerValue>
58      <upperValue xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-TextPositionSelector-start-upperValue"
59                  xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#TextPositionSelector-start-upperValue"
60                  xmi:type="uml:LiteralUnlimitedNatural">
61         <value>1</value>
62      </upperValue>
63      <name>start</name>
64      <type href="http://www.eclipse.org/uml2/5.0.0/UML/PrimitiveTypes.xmi#Integer"
65            xmi:type="uml:PrimitiveType"/>
66   </ownedAttribute>
67</packagedElement>

Fragment for the data type TextPositionSelector (entire XML Schema)

 1<xs:element name="TextPositionSelector"
 2            type="TextPositionSelectorXsdType"
 3            xml:id="TextPositionSelector">
 4  <!-- based on the UML data type DDICDIModels::DDICDILibrary::DataTypes::StructuredDataTypes::TextPositionSelector -->
 5  <xs:annotation>
 6    <xs:documentation>Definition
 7          ==========
 8          Describes a range of text by recording the start and end positions of the selection in the object. Position 0 would be immediately before the first character, position 1 would be immediately before the second character, and so on. It is defined accordingly the related selector of the Web Annotation Vocabulary, see https://www.w3.org/TR/annotation-vocab/#textpositionselector.</xs:documentation>
 9  </xs:annotation>
10</xs:element>
11<xs:complexType name="TextPositionSelectorXsdType"
12                xml:id="TextPositionSelectorXsdType">
13  <xs:annotation>
14    <xs:documentation>Definition
15          ==========
16          Describes a range of text by recording the start and end positions of the selection in the object. Position 0 would be immediately before the first character, position 1 would be immediately before the second character, and so on. It is defined accordingly the related selector of the Web Annotation Vocabulary, see https://www.w3.org/TR/annotation-vocab/#textpositionselector.</xs:documentation>
17  </xs:annotation>
18  <xs:complexContent>
19    <xs:extension base="SelectorXsdType">
20      <xs:sequence>
21        <xs:element name="end"
22                    type="xs:integer"
23                    minOccurs="1"
24                    maxOccurs="1"
25                    xml:id="TextPositionSelector-end">
26          <xs:annotation>
27            <xs:documentation>Position of the last character of the selection. Position 8 would be the end of the word "Position" of the previous sentence.</xs:documentation>
28          </xs:annotation>
29        </xs:element>
30        <xs:element name="start"
31                    type="xs:integer"
32                    minOccurs="1"
33                    maxOccurs="1"
34                    xml:id="TextPositionSelector-start">
35          <xs:annotation>
36            <xs:documentation>Position of the first character of the selection. Position 0 would be the start of the word "Position" of the previous sentence.</xs:documentation>
37          </xs:annotation>
38        </xs:element>
39      </xs:sequence>
40    </xs:extension>
41  </xs:complexContent>
42</xs:complexType>

Fragment for the data type TextPositionSelector (main ontology, entire ontology as zip)

 1# datatype TextPositionSelector
 2# based on the UML data type DDICDIModels::DDICDILibrary::DataTypes::StructuredDataTypes::TextPositionSelector
 3cdi:TextPositionSelector
 4  a rdfs:Class, owl:Class, ucmis:StructuredDataType;
 5  rdfs:label "TextPositionSelector";
 6  rdfs:comment "Definition\n==========\nDescribes a range of text by recording the start and end positions of the selection in the object. Position 0 would be immediately before the first character, position 1 would be immediately before the second character, and so on. It is defined accordingly the related selector of the Web Annotation Vocabulary, see https://www.w3.org/TR/annotation-vocab/#textpositionselector."@en;
 7  rdfs:subClassOf cdi:Selector;
 8  owl:hasKey (cdi:TextPositionSelector-end cdi:TextPositionSelector-start);
 9.
10
11cdi:TextPositionSelector-end
12  a rdf:Property, owl:DatatypeProperty, ucmis:Attribute;
13  rdfs:label "end";
14  rdfs:comment "Position of the last character of the selection. Position 8 would be the end of the word \"Position\" of the previous sentence."@en;
15  rdfs:domain cdi:TextPositionSelector;
16  rdfs:range xsd:integer;
17.
18
19cdi:TextPositionSelector-start
20  a rdf:Property, owl:DatatypeProperty, ucmis:Attribute;
21  rdfs:label "start";
22  rdfs:comment "Position of the first character of the selection. Position 0 would be the start of the word \"Position\" of the previous sentence."@en;
23  rdfs:domain cdi:TextPositionSelector;
24  rdfs:range xsd:integer;
25.

Fragment for the data type TextPositionSelector (main JSON-LD entire JSON-LD as zip)

 1{
 2  "@context": [
 3    "Selector.jsonld",
 4    {
 5      "cdi": "http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/",
 6      "xsd": "http://www.w3.org/2001/XMLSchema#",
 7	  "TextPositionSelector": "cdi:TextPositionSelector",
 8	  "end": {
 9	    "@id": "cdi:TextPositionSelector-end",
10	    "@type": "xsd:integer"
11	  },
12	  "start": {
13	    "@id": "cdi:TextPositionSelector-start",
14	    "@type": "xsd:integer"
15	  },
16	  
17	  " comment ": "tag:json-should-support-trailing-commas" 
18	}
19  ],
20  "generatedBy": "This code was generated by the Eclipse Acceleo project UCMIS M2T on 2024-09-23 21:53:04.",
21  "basedOn": "based on the UML data type DDICDIModels::DDICDILibrary::DataTypes::StructuredDataTypes::TextPositionSelector"
22}