VariablePosition

Fully qualified class name: DDICDIModels::DDICDILibrary::Classes::Conceptual::VariablePosition

Definition

Assigns a sequence number to a variable within a list.

Explanatory notes

Variable position allows a list of variables to be ordered.

Diagram

Attributes

Name

Inherited from

Description

Data Type

Multiplicity

Default value

identifier

- own class -

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

Identifier

0..1

value

- own class -

Index value of the member in an ordered array.

Integer

1..1

Associations

Direction

Association

Description

Multiplicity of VariablePosition

Package of Other Class

Other Class

Multiplicity of other class

Aggregation Kind

Inherited from

to

VariableCollection has VariablePosition

Variable collection has zero to many variable positions.

0..*

- own package -

VariableCollection

1..1

none

- own class -

from

VariablePosition indexes ConceptualVariable

Variable position indexes a conceptual variable.

0..*

- own package -

ConceptualVariable

1..1

none

- own class -

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 VariablePosition (entire model as XMI)

 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-Classes-Conceptual-VariablePosition"
 5                 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#VariablePosition"
 6                 xmi:type="uml:Class">
 7   <ownedComment xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-VariablePosition-ownedComment"
 8                 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#VariablePosition-ownedComment"
 9                 xmi:type="uml:Comment">
10      <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-Classes-Conceptual-VariablePosition"/>
11      <body>Definition
12============
13Assigns a sequence number to a variable within a list.
14
15Explanatory notes
16===================
17Variable position allows a list of variables to be ordered.</body>
18   </ownedComment>
19   <name>VariablePosition</name>
20   <ownedAttribute xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-VariablePosition-identifier"
21                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#VariablePosition-identifier"
22                   xmi:type="uml:Property">
23      <ownedComment xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-VariablePosition-identifier-ownedComment"
24                    xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#VariablePosition-identifier-ownedComment"
25                    xmi:type="uml:Comment">
26         <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-Classes-Conceptual-VariablePosition-identifier"/>
27         <body>Identifier for objects requiring short- or long-lasting referencing and management.</body>
28      </ownedComment>
29      <lowerValue xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-VariablePosition-identifier-lowerValue"
30                  xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#VariablePosition-identifier-lowerValue"
31                  xmi:type="uml:LiteralInteger"/>
32      <upperValue xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-VariablePosition-identifier-upperValue"
33                  xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#VariablePosition-identifier-upperValue"
34                  xmi:type="uml:LiteralUnlimitedNatural">
35         <value>1</value>
36      </upperValue>
37      <name>identifier</name>
38      <isID>true</isID>
39      <type xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-Identifier"/>
40   </ownedAttribute>
41   <ownedAttribute xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-VariablePosition-ownedAttribute"
42                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#VariablePosition-ownedAttribute"
43                   xmi:type="uml:Property">
44      <lowerValue xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-VariablePosition-ownedAttribute-lowerValue"
45                  xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#VariablePosition-ownedAttribute-lowerValue"
46                  xmi:type="uml:LiteralInteger">
47         <value>1</value>
48      </lowerValue>
49      <upperValue xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-VariablePosition-ownedAttribute-upperValue"
50                  xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#VariablePosition-ownedAttribute-upperValue"
51                  xmi:type="uml:LiteralUnlimitedNatural">
52         <value>1</value>
53      </upperValue>
54      <association xmi:idref="DDICDIModels-DDICDILibrary-Classes-Conceptual-VariablePosition_indexes_ConceptualVariable"/>
55      <type xmi:idref="DDICDIModels-DDICDILibrary-Classes-Conceptual-ConceptualVariable"/>
56   </ownedAttribute>
57   <ownedAttribute xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-VariablePosition-value"
58                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#VariablePosition-value"
59                   xmi:type="uml:Property">
60      <ownedComment xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-VariablePosition-value-ownedComment"
61                    xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#VariablePosition-value-ownedComment"
62                    xmi:type="uml:Comment">
63         <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-Classes-Conceptual-VariablePosition-value"/>
64         <body>Index value of the member in an ordered array.</body>
65      </ownedComment>
66      <lowerValue xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-VariablePosition-value-lowerValue"
67                  xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#VariablePosition-value-lowerValue"
68                  xmi:type="uml:LiteralInteger">
69         <value>1</value>
70      </lowerValue>
71      <upperValue xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-VariablePosition-value-upperValue"
72                  xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#VariablePosition-value-upperValue"
73                  xmi:type="uml:LiteralUnlimitedNatural">
74         <value>1</value>
75      </upperValue>
76      <name>value</name>
77      <type href="http://www.eclipse.org/uml2/5.0.0/UML/PrimitiveTypes.xmi#Integer"
78            xmi:type="uml:PrimitiveType"/>
79   </ownedAttribute>
80</packagedElement>

Fragment for the class VariablePosition (entire XML Schema)

 1<xs:element name="VariablePosition"
 2            type="VariablePositionXsdType"
 3            xml:id="VariablePosition">
 4  <!-- based on the UML class DDICDIModels::DDICDILibrary::Classes::Conceptual::VariablePosition -->
 5  <xs:annotation>
 6    <xs:documentation>Definition
 7          ============
 8          Assigns a sequence number to a variable within a list.
 9          
10          Explanatory notes
11          ===================
12          Variable position allows a list of variables to be ordered.</xs:documentation>
13  </xs:annotation>
14</xs:element>
15<xs:complexType name="VariablePositionXsdType"
16                xml:id="VariablePositionXsdType">
17  <xs:annotation>
18    <xs:documentation>Definition
19          ============
20          Assigns a sequence number to a variable within a list.
21          
22          Explanatory notes
23          ===================
24          Variable position allows a list of variables to be ordered.</xs:documentation>
25  </xs:annotation>
26  <xs:sequence>
27    <xs:element name="identifier"
28                type="IdentifierXsdType"
29                minOccurs="0"
30                maxOccurs="1"
31                xml:id="VariablePosition-identifier">
32      <xs:annotation>
33        <xs:documentation>Identifier for objects requiring short- or long-lasting referencing and management.</xs:documentation>
34      </xs:annotation>
35    </xs:element>
36    <xs:element name="value"
37                type="xs:integer"
38                minOccurs="1"
39                maxOccurs="1"
40                xml:id="VariablePosition-value">
41      <xs:annotation>
42        <xs:documentation>Index value of the member in an ordered array.</xs:documentation>
43      </xs:annotation>
44    </xs:element>
45    <xs:element name="VariablePosition_indexes_ConceptualVariable"
46                minOccurs="1"
47                maxOccurs="1"
48                xml:id="VariablePosition_indexes_ConceptualVariable">
49      <xs:annotation>
50        <xs:documentation>Variable position indexes a conceptual variable.</xs:documentation>
51      </xs:annotation>
52      <xs:complexType>
53        <xs:complexContent>
54          <xs:restriction base="AssociationReferenceXsdType">
55            <xs:sequence>
56              <xs:element name="ddiReference"
57                          type="InternationalRegistrationDataIdentifierXsdType"
58                          minOccurs="0"
59                          maxOccurs="1"
60                          xml:id="VariablePosition_indexes_ConceptualVariable-ddiReference"/>
61              <xs:element name="validType"
62                          minOccurs="0"
63                          maxOccurs="unbounded"
64                          xml:id="VariablePosition_indexes_ConceptualVariable-validType">
65                <xs:simpleType>
66                  <xs:restriction base="xs:NMTOKEN">
67                    <xs:enumeration value="ConceptualVariable"/>
68                    <xs:enumeration value="DescriptorVariable"/>
69                    <xs:enumeration value="InstanceVariable"/>
70                    <xs:enumeration value="ReferenceVariable"/>
71                    <xs:enumeration value="RepresentedVariable"/>
72                  </xs:restriction>
73                </xs:simpleType>
74              </xs:element>
75            </xs:sequence>
76          </xs:restriction>
77        </xs:complexContent>
78      </xs:complexType>
79    </xs:element>
80  </xs:sequence>
81</xs:complexType>

Fragment for the class VariablePosition (main ontology)

 1# class VariablePosition
 2# based on the UML class DDICDIModels::DDICDILibrary::Classes::Conceptual::VariablePosition
 3cdi:VariablePosition
 4  a rdfs:Class, owl:Class, ucmis:Class;
 5  rdfs:label "VariablePosition";
 6  rdfs:comment "Definition\n============\nAssigns a sequence number to a variable within a list.\n\nExplanatory notes\n===================\nVariable position allows a list of variables to be ordered."@en;
 7  
 8.
 9
10cdi:VariablePosition-identifier
11  a rdf:Property, owl:ObjectProperty, ucmis:Attribute;
12  rdfs:label "identifier";
13  rdfs:comment "Identifier for objects requiring short- or long-lasting referencing and management."@en;
14  rdfs:domain cdi:VariablePosition;
15  rdfs:range cdi:Identifier;
16.
17
18cdi:VariablePosition-value
19  a rdf:Property, owl:DatatypeProperty, ucmis:Attribute;
20  rdfs:label "value";
21  rdfs:comment "Index value of the member in an ordered array."@en;
22  rdfs:domain cdi:VariablePosition;
23  rdfs:range xsd:integer;
24.
25
26
27cdi:VariablePosition_indexes_ConceptualVariable
28  a rdf:Property, owl:ObjectProperty, ucmis:Association;
29  # ASSOCIATION
30  rdfs:label "indexes";
31  skos:altLabel "VariablePosition_indexes_ConceptualVariable";
32  rdfs:comment "Variable position indexes a conceptual variable."@en;
33  rdfs:domain cdi:VariablePosition;
34  rdfs:range cdi:ConceptualVariable;
35.

Fragment for the class VariablePosition (main JSON-LD)

 1{
 2  "@context": [
 3    {
 4      "cdi": "http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/",
 5      "xsd": "http://www.w3.org/2001/XMLSchema#",
 6      "VariablePosition": "cdi:VariablePosition",
 7      "identifier": {
 8        "@id": "cdi:VariablePosition-identifier",
 9        "@type": "@id",
10        "@context": "Identifier.jsonld"
11      },
12      "value": {
13        "@id": "cdi:VariablePosition-value",
14        "@type": "xsd:integer"
15      },
16      
17      "indexes": {
18        "@id": "cdi:VariablePosition_indexes_ConceptualVariable",
19        "@type": "@id"      },
20      "has_OF_VariableCollection": {
21        "@reverse": "cdi:VariableCollection_has_VariablePosition",
22        "@type": "@id"
23      },
24      " comment ": "tag:json-should-support-trailing-commas" 
25    }
26  ],
27  "generatedBy": "This code was generated by the Eclipse Acceleo project UCMIS M2T on 2024-03-16 23:40:06.",
28  "basedOn": "based on the UML data type DDICDIModels::DDICDILibrary::Classes::Conceptual::VariablePosition"
29}