VariableRelationship#

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

Definition#

Relationship between any variables in the variable cascade (conceptual, represented, instance), based on an ordered relation.

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

semantics

- own class -

Specifies the semantics of the object in reference to a vocabulary, ontology, etc.

ControlledVocabularyEntry

0..1

Associations#

Associations
Associations#

Direction

Association

Description

Multiplicity of VariableRelationship

Package of Other Class

Other Class

Multiplicity of other class

Aggregation Kind

Inherited from

from

VariableRelationship hasSource ConceptualVariable

0..*

- own package -

ConceptualVariable

0..*

none

own class

from

VariableRelationship hasTarget ConceptualVariable

Note that this can be realized as a collection to support tuples.

0..*

- own package -

ConceptualVariable

0..*

none

own class

to

VariableStructure has VariableRelationship

0..*

- own package -

VariableStructure

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 VariableRelationship (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-VariableRelationship"
 5                  xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#VariableRelationship"
 6                  xmi:type="uml:Class">
 7   <ownedComment xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-VariableRelationship-ownedComment"
 8                  xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#VariableRelationship-ownedComment"
 9                  xmi:type="uml:Comment">
10      <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-Classes-Conceptual-VariableRelationship"/>
11      <body>Definition 
12============ 
13Relationship between any variables in the variable cascade (conceptual, represented, instance), based on an ordered relation.</body>
14   </ownedComment>
15   <name>VariableRelationship</name>
16   <ownedAttribute xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-VariableRelationship-identifier"
17                    xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#VariableRelationship-identifier"
18                    xmi:type="uml:Property">
19      <ownedComment xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-VariableRelationship-identifier-ownedComment"
20                     xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#VariableRelationship-identifier-ownedComment"
21                     xmi:type="uml:Comment">
22         <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-Classes-Conceptual-VariableRelationship-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-VariableRelationship-identifier-lowerValue"
26                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#VariableRelationship-identifier-lowerValue"
27                   xmi:type="uml:LiteralInteger"/>
28      <upperValue xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-VariableRelationship-identifier-upperValue"
29                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#VariableRelationship-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-VariableRelationship-ownedAttribute_1"
38                    xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#VariableRelationship-ownedAttribute_1"
39                    xmi:type="uml:Property">
40      <lowerValue xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-VariableRelationship-ownedAttribute_1-lowerValue"
41                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#VariableRelationship-ownedAttribute_1-lowerValue"
42                   xmi:type="uml:LiteralInteger"/>
43      <upperValue xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-VariableRelationship-ownedAttribute_1-upperValue"
44                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#VariableRelationship-ownedAttribute_1-upperValue"
45                   xmi:type="uml:LiteralUnlimitedNatural">
46         <value>*</value>
47      </upperValue>
48      <association xmi:idref="DDICDIModels-DDICDILibrary-Classes-Conceptual-VariableRelationship_hasTarget_ConceptualVariable"/>
49      <type xmi:idref="DDICDIModels-DDICDILibrary-Classes-Conceptual-ConceptualVariable"/>
50   </ownedAttribute>
51   <ownedAttribute xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-VariableRelationship-ownedAttribute_2"
52                    xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#VariableRelationship-ownedAttribute_2"
53                    xmi:type="uml:Property">
54      <lowerValue xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-VariableRelationship-ownedAttribute_2-lowerValue"
55                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#VariableRelationship-ownedAttribute_2-lowerValue"
56                   xmi:type="uml:LiteralInteger"/>
57      <upperValue xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-VariableRelationship-ownedAttribute_2-upperValue"
58                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#VariableRelationship-ownedAttribute_2-upperValue"
59                   xmi:type="uml:LiteralUnlimitedNatural">
60         <value>*</value>
61      </upperValue>
62      <association xmi:idref="DDICDIModels-DDICDILibrary-Classes-Conceptual-VariableRelationship_hasSource_ConceptualVariable"/>
63      <type xmi:idref="DDICDIModels-DDICDILibrary-Classes-Conceptual-ConceptualVariable"/>
64   </ownedAttribute>
65   <ownedAttribute xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-VariableRelationship-semantics"
66                    xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#VariableRelationship-semantics"
67                    xmi:type="uml:Property">
68      <ownedComment xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-VariableRelationship-semantics-ownedComment"
69                     xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#VariableRelationship-semantics-ownedComment"
70                     xmi:type="uml:Comment">
71         <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-Classes-Conceptual-VariableRelationship-semantics"/>
72         <body>Specifies the semantics of the object in reference to a vocabulary, ontology, etc.</body>
73      </ownedComment>
74      <lowerValue xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-VariableRelationship-semantics-lowerValue"
75                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#VariableRelationship-semantics-lowerValue"
76                   xmi:type="uml:LiteralInteger"/>
77      <upperValue xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-VariableRelationship-semantics-upperValue"
78                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#VariableRelationship-semantics-upperValue"
79                   xmi:type="uml:LiteralUnlimitedNatural">
80         <value>1</value>
81      </upperValue>
82      <name>semantics</name>
83      <type xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-ControlledVocabularyEntry"/>
84   </ownedAttribute>
85</packagedElement>

Fragment for the class VariableRelationship (entire XML Schema)

  1<xs:element name="VariableRelationship"
  2            type="VariableRelationshipXsdType"
  3            xml:id="VariableRelationship">
  4  <!-- based on the UML class DDICDIModels::DDICDILibrary::Classes::Conceptual::VariableRelationship -->
  5  <xs:annotation>
  6    <xs:documentation>Definition 
  7          ============ 
  8          Relationship between any variables in the variable cascade (conceptual, represented, instance), based on an ordered relation.</xs:documentation>
  9  </xs:annotation>
 10</xs:element>
 11<xs:complexType name="VariableRelationshipXsdType"
 12                xml:id="VariableRelationshipXsdType">
 13  <xs:annotation>
 14    <xs:documentation>Definition 
 15          ============ 
 16          Relationship between any variables in the variable cascade (conceptual, represented, instance), based on an ordered relation.</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="VariableRelationship-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="semantics"
 29                type="ControlledVocabularyEntryXsdType"
 30                minOccurs="0"
 31                maxOccurs="1"
 32                xml:id="VariableRelationship-semantics">
 33      <xs:annotation>
 34        <xs:documentation>Specifies the semantics of the object in reference to a vocabulary, ontology, etc.</xs:documentation>
 35      </xs:annotation>
 36    </xs:element>
 37    <xs:element name="VariableRelationship_hasTarget_ConceptualVariable"
 38                minOccurs="0"
 39                maxOccurs="unbounded"
 40                xml:id="VariableRelationship_hasTarget_ConceptualVariable">
 41      <xs:annotation>
 42        <xs:documentation>Note that this can be realized as a collection to support tuples.</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="VariableRelationship_hasTarget_ConceptualVariable-ddiReference"/>
 53              <xs:element name="validType"
 54                          minOccurs="0"
 55                          maxOccurs="unbounded"
 56                          xml:id="VariableRelationship_hasTarget_ConceptualVariable-validType">
 57                <xs:simpleType>
 58                  <xs:restriction base="xs:NMTOKEN">
 59                    <xs:enumeration value="ConceptualVariable"/>
 60                    <xs:enumeration value="DescriptorVariable"/>
 61                    <xs:enumeration value="InstanceVariable"/>
 62                    <xs:enumeration value="ReferenceVariable"/>
 63                    <xs:enumeration value="RepresentedVariable"/>
 64                  </xs:restriction>
 65                </xs:simpleType>
 66              </xs:element>
 67            </xs:sequence>
 68          </xs:restriction>
 69        </xs:complexContent>
 70      </xs:complexType>
 71    </xs:element>
 72    <xs:element name="VariableRelationship_hasSource_ConceptualVariable"
 73                minOccurs="0"
 74                maxOccurs="unbounded"
 75                xml:id="VariableRelationship_hasSource_ConceptualVariable">
 76      <xs:annotation>
 77        <xs:documentation></xs:documentation>
 78      </xs:annotation>
 79      <xs:complexType>
 80        <xs:complexContent>
 81          <xs:restriction base="AssociationReferenceXsdType">
 82            <xs:sequence>
 83              <xs:element name="ddiReference"
 84                          type="InternationalRegistrationDataIdentifierXsdType"
 85                          minOccurs="0"
 86                          maxOccurs="1"
 87                          xml:id="VariableRelationship_hasSource_ConceptualVariable-ddiReference"/>
 88              <xs:element name="validType"
 89                          minOccurs="0"
 90                          maxOccurs="unbounded"
 91                          xml:id="VariableRelationship_hasSource_ConceptualVariable-validType">
 92                <xs:simpleType>
 93                  <xs:restriction base="xs:NMTOKEN">
 94                    <xs:enumeration value="ConceptualVariable"/>
 95                    <xs:enumeration value="DescriptorVariable"/>
 96                    <xs:enumeration value="InstanceVariable"/>
 97                    <xs:enumeration value="ReferenceVariable"/>
 98                    <xs:enumeration value="RepresentedVariable"/>
 99                  </xs:restriction>
100                </xs:simpleType>
101              </xs:element>
102            </xs:sequence>
103          </xs:restriction>
104        </xs:complexContent>
105      </xs:complexType>
106    </xs:element>
107  </xs:sequence>
108</xs:complexType>

Fragment for the class VariableRelationship (entire JSON Schema)

 1"cls-VariableRelationship": {
 2  "description": "http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/VariableRelationship",
 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": "VariableRelationship"
14    },
15    "identifier": {
16      "$comment": "cardinality 0..1 – from cdi:VariableRelationship",
17      "$ref": "#/defs/dt-Identifier"
18    },
19    "semantics": {
20      "$comment": "cardinality 0..1 – from cdi:VariableRelationship",
21      "$ref": "#/defs/dt-ControlledVocabularyEntry"
22    },
23    "hasSource": {
24      "description": "VariableRelationship_hasSource_ConceptualVariable",
25      "$comment": "cardinality 0..-1",
26      "anyOf": [
27        {
28          "$ref": "#/defs/target-ConceptualVariable"
29        },
30        {
31          "type": "array",
32          "items": {
33            "$ref": "#/defs/target-ConceptualVariable"
34          }
35        }
36      ]
37    },
38    "hasTarget": {
39      "description": "VariableRelationship_hasTarget_ConceptualVariable",
40      "$comment": "cardinality 0..-1",
41      "anyOf": [
42        {
43          "$ref": "#/defs/target-ConceptualVariable"
44        },
45        {
46          "type": "array",
47          "items": {
48            "$ref": "#/defs/target-ConceptualVariable"
49          }
50        }
51      ]
52    },
53    "has_VariableRelationship_OF_VariableStructure": {
54      "description": "VariableStructure_has_VariableRelationship",
55      "$comment": "cardinality 1..1",
56      "$ref": "#/defs/target-VariableStructure"
57    },
58    "sameAs": {
59      "$ref": "#/defs/owl:sameAs"
60    }
61  },
62  "required": ["@type"],
63  "additionalProperties": false
64},
65"target-VariableRelationship": {
66  "description": "all subclasses of http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/VariableRelationship",
67  "anyOf": [
68    { "$ref": "#/defs/cls-VariableRelationship" },
69    { "type": "string", "format": "iri-reference" }
70  ]
71},

Fragment for the class VariableRelationship (main ontology)

 1# class VariableRelationship
 2# based on the UML class DDICDIModels::DDICDILibrary::Classes::Conceptual::VariableRelationship
 3cdi:VariableRelationship
 4  a rdfs:Class, owl:Class, ucmis:Class;
 5  rdfs:label "VariableRelationship";
 6  rdfs:comment "Definition \n============ \nRelationship between any variables in the variable cascade (conceptual, represented, instance), based on an ordered relation."@en;
 7  
 8.
 9
10cdi:VariableRelationship-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:VariableRelationship;
15  rdfs:range cdi:Identifier;
16.
17
18cdi:VariableRelationship-semantics
19  a rdf:Property, owl:ObjectProperty, ucmis:Attribute;
20  rdfs:label "semantics";
21  rdfs:comment "Specifies the semantics of the object in reference to a vocabulary, ontology, etc."@en;
22  rdfs:domain cdi:VariableRelationship;
23  rdfs:range cdi:ControlledVocabularyEntry;
24.
25
26
27cdi:VariableRelationship_hasSource_ConceptualVariable
28  a rdf:Property, owl:ObjectProperty, ucmis:Association;
29  # ASSOCIATION
30  rdfs:label "hasSource";
31  skos:altLabel "VariableRelationship_hasSource_ConceptualVariable";
32  
33  rdfs:domain cdi:VariableRelationship;
34  rdfs:range cdi:ConceptualVariable;
35.
36
37cdi:VariableRelationship_hasTarget_ConceptualVariable
38  a rdf:Property, owl:ObjectProperty, ucmis:Association;
39  # ASSOCIATION
40  rdfs:label "hasTarget";
41  skos:altLabel "VariableRelationship_hasTarget_ConceptualVariable";
42  rdfs:comment "Note that this can be realized as a collection to support tuples."@en;
43  rdfs:domain cdi:VariableRelationship;
44  rdfs:range cdi:ConceptualVariable;
45.

Fragment for the class VariableRelationship (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:VariableRelationship-identifier",
 9        "@type": "@id",
10        "@context": "Identifier.jsonld"
11      },
12      "semantics": {
13        "@id": "cdi:VariableRelationship-semantics",
14        "@type": "@id",
15        "@context": "ControlledVocabularyEntry.jsonld"
16      },
17      
18      "hasSource": {
19        "@id": "cdi:VariableRelationship_hasSource_ConceptualVariable",
20        "@type": "@id",
21        "@context": "ConceptualVariable.jsonld"
22      },
23      "hasTarget": {
24        "@id": "cdi:VariableRelationship_hasTarget_ConceptualVariable",
25        "@type": "@id",
26        "@context": "ConceptualVariable.jsonld"
27      },
28      "has_VariableRelationship_OF_VariableStructure": {
29        "@reverse": "cdi:VariableStructure_has_VariableRelationship",
30        "@type": "@id",
31        "@context": "VariableStructure.jsonld"
32      },
33      " comment ": "tag:json-should-support-trailing-commas"
34    }
35  ],
36  "generatedBy": "This code was generated by the Eclipse Acceleo project UCMIS M2T on 2025-08-29 14:34:49.",
37  "basedOn": "based on the UML data type DDICDIModels::DDICDILibrary::Classes::Conceptual::VariableRelationship"
38}

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

 1# class VariableRelationship
 2# based on the UML class DDICDIModels::DDICDILibrary::Classes::Conceptual::VariableRelationship
 3<#VariableRelationship> a sh:NodeShape;
 4    sh:targetClass cdi:VariableRelationship;
 5	sh:message "See http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/VariableRelationship";
 6	sh:closed true;
 7	sh:ignoredProperties ( owl:sameAs );
 8    sh:property [
 9			sh:path rdf:type;
10			sh:in (   cdi:VariableRelationship
11			 ) ;
12    ];
13    # attributes
14    sh:property <#VariableRelationship-identifier>;
15    sh:property <#VariableRelationship-semantics>;
16    # associations from VariableRelationship
17    sh:property <#VariableRelationship_hasSource_ConceptualVariable>;
18    sh:property <#VariableRelationship_hasTarget_ConceptualVariable>;
19    # associations to VariableRelationship
20    sh:property <#rev_VariableStructure_has_VariableRelationship>;
21
22
23
24.
25
26<#VariableRelationship-identifier> a sh:PropertyShape ;
27    sh:path cdi:VariableRelationship-identifier;
28    sh:node [ sh:property [ sh:path rdf:type; sh:minCount 1; sh:in (
29        cdi:Identifier
30      
31    ) ]];
32    sh:maxCount 1;
33.
34<#VariableRelationship-semantics> a sh:PropertyShape ;
35    sh:path cdi:VariableRelationship-semantics;
36    sh:node [ sh:property [ sh:path rdf:type; sh:minCount 1; sh:in (
37        cdi:ControlledVocabularyEntry
38      
39    ) ]];
40    sh:maxCount 1;
41.
42
43<#VariableRelationship_hasSource_ConceptualVariable> a sh:PropertyShape ;
44    sh:path cdi:VariableRelationship_hasSource_ConceptualVariable;
45	sh:node [ sh:property [ sh:path rdf:type; sh:minCount 1; sh:in (
46        cdi:ConceptualVariable
47        cdi:RepresentedVariable
48        cdi:InstanceVariable
49        cdi:DescriptorVariable
50        cdi:ReferenceVariable
51      
52    ) ]];
53.
54<#rev_VariableRelationship_hasSource_ConceptualVariable> a sh:PropertyShape ;
55    sh:path [ sh:inversePath cdi:VariableRelationship_hasSource_ConceptualVariable ];
56.
57<#VariableRelationship_hasTarget_ConceptualVariable> a sh:PropertyShape ;
58    sh:path cdi:VariableRelationship_hasTarget_ConceptualVariable;
59	sh:node [ sh:property [ sh:path rdf:type; sh:minCount 1; sh:in (
60        cdi:ConceptualVariable
61        cdi:RepresentedVariable
62        cdi:InstanceVariable
63        cdi:DescriptorVariable
64        cdi:ReferenceVariable
65      
66    ) ]];
67.
68<#rev_VariableRelationship_hasTarget_ConceptualVariable> a sh:PropertyShape ;
69    sh:path [ sh:inversePath cdi:VariableRelationship_hasTarget_ConceptualVariable ];
70.

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

 1# class VariableRelationship
 2# based on the UML class DDICDIModels::DDICDILibrary::Classes::Conceptual::VariableRelationship
 3cdi:VariableRelationshipShape CLOSED {
 4	a [cdi:VariableRelationship];
 5	cdi:VariableRelationship-identifier	@cdi:IdentifierShape?;
 6	cdi:VariableRelationship-semantics	@cdi:ControlledVocabularyEntryShape?;
 7	cdi:VariableRelationship_hasSource_ConceptualVariable	@cdi:ConceptualVariableShape OR @cdi:RepresentedVariableShape*;
 8	
 9	cdi:VariableRelationship_hasTarget_ConceptualVariable	@cdi:ConceptualVariableShape OR @cdi:RepresentedVariableShape*;
10	
11	^cdi:VariableStructure_has_VariableRelationship @cdi:VariableStructureShape ;
12	}