CategoryPosition#

Fully qualified class name of the UML model DDI-CDI 1.0: DDICDIModels::DDICDILibrary::Classes::Conceptual::CategoryPosition

Definition#

Assigns a sequence number to a category within a list.

Diagram#

Diagram

Attributes#

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

Associations
Associations#

Direction

Association

Description

Multiplicity of CategoryPosition

Package of Other Class

Other Class

Multiplicity of other class

Aggregation Kind

Inherited from

from

CategoryPosition indexes Category

0..*

- own package -

Category

1..1

none

own class

to

CategorySet has CategoryPosition

0..*

- own package -

CategorySet

1..1

none

own class

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

Fragment for the class CategoryPosition (entire XML Schema)

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

Fragment for the class CategoryPosition (entire JSON Schema)

 1"cls-CategoryPosition": {
 2  "description": "http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/CategoryPosition",
 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": "CategoryPosition"
14    },
15    "identifier": {
16      "$comment": "cardinality 0..1 – from cdi:CategoryPosition",
17      "$ref": "#/defs/dt-Identifier"
18    },
19    "value": {
20      "$comment": "cardinality 1..1 – from cdi:CategoryPosition",
21      "$ref": "#/defs/xsd:integer"
22    },
23    "indexes": {
24      "description": "CategoryPosition_indexes_Category",
25      "$comment": "cardinality 1..1",
26       "$ref": "#/defs/target-Category"
27    },
28    "has_CategoryPosition_OF_CategorySet": {
29      "description": "CategorySet_has_CategoryPosition",
30      "$comment": "cardinality 1..1",
31      "$ref": "#/defs/target-CategorySet"
32    },
33    "sameAs": {
34      "$ref": "#/defs/owl:sameAs"
35    }
36  },
37  "required": ["value","indexes","@type"],
38  "additionalProperties": false
39},
40"target-CategoryPosition": {
41  "description": "all subclasses of http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/CategoryPosition",
42  "anyOf": [
43    { "$ref": "#/defs/cls-CategoryPosition" },
44    { "type": "string", "format": "iri-reference" }
45  ]
46},

Fragment for the class CategoryPosition (main ontology)

 1# class CategoryPosition
 2# based on the UML class DDICDIModels::DDICDILibrary::Classes::Conceptual::CategoryPosition
 3cdi:CategoryPosition
 4  a rdfs:Class, owl:Class, ucmis:Class;
 5  rdfs:label "CategoryPosition";
 6  rdfs:comment "Definition\n============\nAssigns a sequence number to a category within a list."@en;
 7  
 8.
 9
10cdi:CategoryPosition-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:CategoryPosition;
15  rdfs:range cdi:Identifier;
16.
17
18cdi:CategoryPosition-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:CategoryPosition;
23  rdfs:range xsd:integer;
24.
25
26
27cdi:CategoryPosition_indexes_Category
28  a rdf:Property, owl:ObjectProperty, ucmis:Association;
29  # ASSOCIATION
30  rdfs:label "indexes";
31  skos:altLabel "CategoryPosition_indexes_Category";
32  
33  rdfs:domain cdi:CategoryPosition;
34  rdfs:range cdi:Category;
35.

Fragment for the class CategoryPosition (entire 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
 7      "identifier": {
 8        "@id": "cdi:CategoryPosition-identifier",
 9        "@type": "@id",
10        "@context": "Identifier.jsonld"
11      },
12      "value": {
13        "@id": "cdi:CategoryPosition-value",
14        "@type": "xsd:integer"
15      },
16      
17      "indexes": {
18        "@id": "cdi:CategoryPosition_indexes_Category",
19        "@type": "@id",
20        "@context": "Category.jsonld"
21      },
22      "has_CategoryPosition_OF_CategorySet": {
23        "@reverse": "cdi:CategorySet_has_CategoryPosition",
24        "@type": "@id",
25        "@context": "CategorySet.jsonld"
26      },
27      " comment ": "tag:json-should-support-trailing-commas"
28    }
29  ],
30  "generatedBy": "This code was generated by the Eclipse Acceleo project UCMIS M2T on 2025-08-29 14:34:48.",
31  "basedOn": "based on the UML data type DDICDIModels::DDICDILibrary::Classes::Conceptual::CategoryPosition"
32}

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

 1# class CategoryPosition
 2# based on the UML class DDICDIModels::DDICDILibrary::Classes::Conceptual::CategoryPosition
 3<#CategoryPosition> a sh:NodeShape;
 4    sh:targetClass cdi:CategoryPosition;
 5	sh:message "See http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/CategoryPosition";
 6	sh:closed true;
 7	sh:ignoredProperties ( owl:sameAs );
 8    sh:property [
 9			sh:path rdf:type;
10			sh:in (   cdi:CategoryPosition
11			 ) ;
12    ];
13    # attributes
14    sh:property <#CategoryPosition-identifier>;
15    sh:property <#CategoryPosition-value>;
16    # associations from CategoryPosition
17    sh:property <#CategoryPosition_indexes_Category>;
18    # associations to CategoryPosition
19    sh:property <#rev_CategorySet_has_CategoryPosition>;
20
21
22
23.
24
25<#CategoryPosition-identifier> a sh:PropertyShape ;
26    sh:path cdi:CategoryPosition-identifier;
27    sh:node [ sh:property [ sh:path rdf:type; sh:minCount 1; sh:in (
28        cdi:Identifier
29      
30    ) ]];
31    sh:maxCount 1;
32.
33<#CategoryPosition-value> a sh:PropertyShape ;
34    sh:path cdi:CategoryPosition-value;
35    sh:datatype xsd:integer;
36    sh:minCount 1;
37    sh:maxCount 1;
38.
39
40<#CategoryPosition_indexes_Category> a sh:PropertyShape ;
41    sh:path cdi:CategoryPosition_indexes_Category;
42	sh:node [ sh:property [ sh:path rdf:type; sh:minCount 1; sh:in (
43        cdi:Category
44      
45    ) ]];
46    sh:minCount 1;
47    sh:maxCount 1;
48.
49<#rev_CategoryPosition_indexes_Category> a sh:PropertyShape ;
50    sh:path [ sh:inversePath cdi:CategoryPosition_indexes_Category ];
51.

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

 1# class CategoryPosition
 2# based on the UML class DDICDIModels::DDICDILibrary::Classes::Conceptual::CategoryPosition
 3cdi:CategoryPositionShape CLOSED {
 4	a [cdi:CategoryPosition];
 5	cdi:CategoryPosition-identifier	@cdi:IdentifierShape?;
 6	cdi:CategoryPosition-value	xsd:integer;
 7	cdi:CategoryPosition_indexes_Category	@cdi:CategoryShape ;
 8	
 9	^cdi:CategorySet_has_CategoryPosition @cdi:CategorySetShape ;
10	}