AgentPosition#

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

Definition#

Assigns a sequence number to an agent in an agent listing.

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 -

The index of the agent within an agent listing.

Integer

1..1

Associations#

Associations
Associations#

Direction

Association

Description

Multiplicity of AgentPosition

Package of Other Class

Other Class

Multiplicity of other class

Aggregation Kind

Inherited from

to

AgentListing has AgentPosition

0..*

- own package -

AgentListing

1..1

none

own class

from

AgentPosition indexes Agent

0..*

- own package -

Agent

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

Fragment for the class AgentPosition (entire XML Schema)

 1<xs:element name="AgentPosition"
 2            type="AgentPositionXsdType"
 3            xml:id="AgentPosition">
 4  <!-- based on the UML class DDICDIModels::DDICDILibrary::Classes::Agents::AgentPosition -->
 5  <xs:annotation>
 6    <xs:documentation>Definition 
 7          ============ 
 8          Assigns a sequence number to an agent in an agent listing.</xs:documentation>
 9  </xs:annotation>
10</xs:element>
11<xs:complexType name="AgentPositionXsdType"
12                xml:id="AgentPositionXsdType">
13  <xs:annotation>
14    <xs:documentation>Definition 
15          ============ 
16          Assigns a sequence number to an agent in an agent listing.</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="AgentPosition-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="AgentPosition-value">
33      <xs:annotation>
34        <xs:documentation>The index of the agent within an agent listing.</xs:documentation>
35      </xs:annotation>
36    </xs:element>
37    <xs:element name="AgentPosition_indexes_Agent"
38                minOccurs="0"
39                maxOccurs="1"
40                xml:id="AgentPosition_indexes_Agent">
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="AgentPosition_indexes_Agent-ddiReference"/>
53              <xs:element name="validType"
54                          minOccurs="0"
55                          maxOccurs="unbounded"
56                          xml:id="AgentPosition_indexes_Agent-validType">
57                <xs:simpleType>
58                  <xs:restriction base="xs:NMTOKEN">
59                    <xs:enumeration value="Agent"/>
60                    <xs:enumeration value="Curator"/>
61                    <xs:enumeration value="Individual"/>
62                    <xs:enumeration value="Machine"/>
63                    <xs:enumeration value="Organization"/>
64                    <xs:enumeration value="ProcessingAgent"/>
65                    <xs:enumeration value="Service"/>
66                  </xs:restriction>
67                </xs:simpleType>
68              </xs:element>
69            </xs:sequence>
70          </xs:restriction>
71        </xs:complexContent>
72      </xs:complexType>
73    </xs:element>
74  </xs:sequence>
75</xs:complexType>

Fragment for the class AgentPosition (entire JSON Schema)

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

Fragment for the class AgentPosition (main ontology)

 1# class AgentPosition
 2# based on the UML class DDICDIModels::DDICDILibrary::Classes::Agents::AgentPosition
 3cdi:AgentPosition
 4  a rdfs:Class, owl:Class, ucmis:Class;
 5  rdfs:label "AgentPosition";
 6  rdfs:comment "Definition \n============ \nAssigns a sequence number to an agent in an agent listing."@en;
 7  
 8.
 9
10cdi:AgentPosition-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:AgentPosition;
15  rdfs:range cdi:Identifier;
16.
17
18cdi:AgentPosition-value
19  a rdf:Property, owl:DatatypeProperty, ucmis:Attribute;
20  rdfs:label "value";
21  rdfs:comment "The index of the agent within an agent listing."@en;
22  rdfs:domain cdi:AgentPosition;
23  rdfs:range xsd:integer;
24.
25
26
27cdi:AgentPosition_indexes_Agent
28  a rdf:Property, owl:ObjectProperty, ucmis:Association;
29  # ASSOCIATION
30  rdfs:label "indexes";
31  skos:altLabel "AgentPosition_indexes_Agent";
32  
33  rdfs:domain cdi:AgentPosition;
34  rdfs:range cdi:Agent;
35.

Fragment for the class AgentPosition (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:AgentPosition-identifier",
 9        "@type": "@id",
10        "@context": "Identifier.jsonld"
11      },
12      "value": {
13        "@id": "cdi:AgentPosition-value",
14        "@type": "xsd:integer"
15      },
16      
17      "indexes": {
18        "@id": "cdi:AgentPosition_indexes_Agent",
19        "@type": "@id",
20        "@context": "Agent.jsonld"
21      },
22      "has_AgentPosition_OF_AgentListing": {
23        "@reverse": "cdi:AgentListing_has_AgentPosition",
24        "@type": "@id",
25        "@context": "AgentListing.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:47.",
31  "basedOn": "based on the UML data type DDICDIModels::DDICDILibrary::Classes::Agents::AgentPosition"
32}

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

 1# class AgentPosition
 2# based on the UML class DDICDIModels::DDICDILibrary::Classes::Agents::AgentPosition
 3<#AgentPosition> a sh:NodeShape;
 4    sh:targetClass cdi:AgentPosition;
 5	sh:message "See http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/AgentPosition";
 6	sh:closed true;
 7	sh:ignoredProperties ( owl:sameAs );
 8    sh:property [
 9			sh:path rdf:type;
10			sh:in (   cdi:AgentPosition
11			 ) ;
12    ];
13    # attributes
14    sh:property <#AgentPosition-identifier>;
15    sh:property <#AgentPosition-value>;
16    # associations from AgentPosition
17    sh:property <#AgentPosition_indexes_Agent>;
18    # associations to AgentPosition
19    sh:property <#rev_AgentListing_has_AgentPosition>;
20
21
22
23.
24
25<#AgentPosition-identifier> a sh:PropertyShape ;
26    sh:path cdi:AgentPosition-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<#AgentPosition-value> a sh:PropertyShape ;
34    sh:path cdi:AgentPosition-value;
35    sh:datatype xsd:integer;
36    sh:minCount 1;
37    sh:maxCount 1;
38.
39
40<#AgentPosition_indexes_Agent> a sh:PropertyShape ;
41    sh:path cdi:AgentPosition_indexes_Agent;
42	sh:node [ sh:property [ sh:path rdf:type; sh:minCount 1; sh:in (
43        cdi:Agent
44        cdi:Individual
45        cdi:Machine
46        cdi:Organization
47        cdi:ProcessingAgent
48        cdi:Curator
49        cdi:Service
50      
51    ) ]];
52    sh:maxCount 1;
53.
54<#rev_AgentPosition_indexes_Agent> a sh:PropertyShape ;
55    sh:path [ sh:inversePath cdi:AgentPosition_indexes_Agent ];
56.

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

 1# class AgentPosition
 2# based on the UML class DDICDIModels::DDICDILibrary::Classes::Agents::AgentPosition
 3cdi:AgentPositionShape CLOSED {
 4	a [cdi:AgentPosition];
 5	cdi:AgentPosition-identifier	@cdi:IdentifierShape?;
 6	cdi:AgentPosition-value	xsd:integer;
 7	^cdi:AgentListing_has_AgentPosition @cdi:AgentListingShape ;
 8	cdi:AgentPosition_indexes_Agent	@cdi:AgentShape OR @cdi:IndividualShape OR @cdi:MachineShape OR @cdi:OrganizationShape OR @cdi:ProcessingAgentShape?;
 9	
10	}