ConceptRelationship

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

Definition

Relationship between a pair of concepts in a collection of concepts. Use controlled vocabulary provided in semantics to identify the type of relationship (relation, e.g. ParentChild, WholePart, etc.)

Examples

Apple (a specialized concept) is a kind of fruit (a generic concept). A wheel (a partitive concept) is part of a car (a whole concept).

Explanatory notes

The idea is similar to category relationship, except it applies generally and not just for categories.

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

semantics

- own class -

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

ControlledVocabularyEntry

0..1

Associations

Direction

Association

Description

Multiplicity of ConceptRelationship

Package of Other Class

Other Class

Multiplicity of other class

Aggregation Kind

Inherited from

from

ConceptRelationship hasSource Concept

Restricts source object to concept for the relationship.

0..*

- own package -

Concept

1..1

none

- own class -

from

ConceptRelationship hasTarget Concept

Restricts target object to concept for the relationship.

0..*

- own package -

Concept

1..1

none

- own class -

to

ConceptStructure has ConceptRelationship

Concept structure has zero to many concept relationships.

0..*

- own package -

ConceptStructure

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 ConceptRelationship (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-ConceptRelationship"
 5                 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#ConceptRelationship"
 6                 xmi:type="uml:Class">
 7   <ownedComment xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-ConceptRelationship-ownedComment"
 8                 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#ConceptRelationship-ownedComment"
 9                 xmi:type="uml:Comment">
10      <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-Classes-Conceptual-ConceptRelationship"/>
11      <body>Definition 
12============ 
13Relationship between a pair of concepts in a collection of concepts. Use controlled vocabulary provided in semantics to identify the type of relationship (relation, e.g. ParentChild, WholePart, etc.)  
14
15Examples 
16========== 
17Apple (a specialized concept) is a kind of fruit (a generic concept). A wheel (a partitive concept) is part of a car (a whole concept).  
18
19Explanatory notes 
20=================== 
21The idea is similar to category relationship, except it applies generally and not just for categories.</body>
22   </ownedComment>
23   <name>ConceptRelationship</name>
24   <ownedAttribute xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-ConceptRelationship-identifier"
25                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#ConceptRelationship-identifier"
26                   xmi:type="uml:Property">
27      <ownedComment xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-ConceptRelationship-identifier-ownedComment"
28                    xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#ConceptRelationship-identifier-ownedComment"
29                    xmi:type="uml:Comment">
30         <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-Classes-Conceptual-ConceptRelationship-identifier"/>
31         <body>Identifier for objects requiring short- or long-lasting referencing and management.</body>
32      </ownedComment>
33      <lowerValue xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-ConceptRelationship-identifier-lowerValue"
34                  xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#ConceptRelationship-identifier-lowerValue"
35                  xmi:type="uml:LiteralInteger"/>
36      <upperValue xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-ConceptRelationship-identifier-upperValue"
37                  xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#ConceptRelationship-identifier-upperValue"
38                  xmi:type="uml:LiteralUnlimitedNatural">
39         <value>1</value>
40      </upperValue>
41      <name>identifier</name>
42      <isID>true</isID>
43      <type xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-Identifier"/>
44   </ownedAttribute>
45   <ownedAttribute xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-ConceptRelationship-ownedAttribute_1"
46                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#ConceptRelationship-ownedAttribute_1"
47                   xmi:type="uml:Property">
48      <lowerValue xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-ConceptRelationship-ownedAttribute_1-lowerValue"
49                  xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#ConceptRelationship-ownedAttribute_1-lowerValue"
50                  xmi:type="uml:LiteralInteger">
51         <value>1</value>
52      </lowerValue>
53      <upperValue xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-ConceptRelationship-ownedAttribute_1-upperValue"
54                  xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#ConceptRelationship-ownedAttribute_1-upperValue"
55                  xmi:type="uml:LiteralUnlimitedNatural">
56         <value>1</value>
57      </upperValue>
58      <association xmi:idref="DDICDIModels-DDICDILibrary-Classes-Conceptual-ConceptRelationship_hasSource_Concept"/>
59      <type xmi:idref="DDICDIModels-DDICDILibrary-Classes-Conceptual-Concept"/>
60   </ownedAttribute>
61   <ownedAttribute xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-ConceptRelationship-ownedAttribute_2"
62                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#ConceptRelationship-ownedAttribute_2"
63                   xmi:type="uml:Property">
64      <lowerValue xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-ConceptRelationship-ownedAttribute_2-lowerValue"
65                  xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#ConceptRelationship-ownedAttribute_2-lowerValue"
66                  xmi:type="uml:LiteralInteger">
67         <value>1</value>
68      </lowerValue>
69      <upperValue xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-ConceptRelationship-ownedAttribute_2-upperValue"
70                  xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#ConceptRelationship-ownedAttribute_2-upperValue"
71                  xmi:type="uml:LiteralUnlimitedNatural">
72         <value>1</value>
73      </upperValue>
74      <association xmi:idref="DDICDIModels-DDICDILibrary-Classes-Conceptual-ConceptRelationship_hasTarget_Concept"/>
75      <type xmi:idref="DDICDIModels-DDICDILibrary-Classes-Conceptual-Concept"/>
76   </ownedAttribute>
77   <ownedAttribute xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-ConceptRelationship-semantics"
78                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#ConceptRelationship-semantics"
79                   xmi:type="uml:Property">
80      <ownedComment xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-ConceptRelationship-semantics-ownedComment"
81                    xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#ConceptRelationship-semantics-ownedComment"
82                    xmi:type="uml:Comment">
83         <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-Classes-Conceptual-ConceptRelationship-semantics"/>
84         <body>Specifies the semantics of the object in reference to a vocabulary, ontology, etc.</body>
85      </ownedComment>
86      <lowerValue xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-ConceptRelationship-semantics-lowerValue"
87                  xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#ConceptRelationship-semantics-lowerValue"
88                  xmi:type="uml:LiteralInteger"/>
89      <upperValue xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-ConceptRelationship-semantics-upperValue"
90                  xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#ConceptRelationship-semantics-upperValue"
91                  xmi:type="uml:LiteralUnlimitedNatural">
92         <value>1</value>
93      </upperValue>
94      <name>semantics</name>
95      <type xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-ControlledVocabularyEntry"/>
96   </ownedAttribute>
97</packagedElement>

Fragment for the class ConceptRelationship (entire XML Schema)

  1<xs:element name="ConceptRelationship"
  2            type="ConceptRelationshipXsdType"
  3            xml:id="ConceptRelationship">
  4  <!-- based on the UML class DDICDIModels::DDICDILibrary::Classes::Conceptual::ConceptRelationship -->
  5  <xs:annotation>
  6    <xs:documentation>Definition 
  7          ============ 
  8          Relationship between a pair of concepts in a collection of concepts. Use controlled vocabulary provided in semantics to identify the type of relationship (relation, e.g. ParentChild, WholePart, etc.)  
  9          
 10          Examples 
 11          ========== 
 12          Apple (a specialized concept) is a kind of fruit (a generic concept). A wheel (a partitive concept) is part of a car (a whole concept).  
 13          
 14          Explanatory notes 
 15          =================== 
 16          The idea is similar to category relationship, except it applies generally and not just for categories.</xs:documentation>
 17  </xs:annotation>
 18</xs:element>
 19<xs:complexType name="ConceptRelationshipXsdType"
 20                xml:id="ConceptRelationshipXsdType">
 21  <xs:annotation>
 22    <xs:documentation>Definition 
 23          ============ 
 24          Relationship between a pair of concepts in a collection of concepts. Use controlled vocabulary provided in semantics to identify the type of relationship (relation, e.g. ParentChild, WholePart, etc.)  
 25          
 26          Examples 
 27          ========== 
 28          Apple (a specialized concept) is a kind of fruit (a generic concept). A wheel (a partitive concept) is part of a car (a whole concept).  
 29          
 30          Explanatory notes 
 31          =================== 
 32          The idea is similar to category relationship, except it applies generally and not just for categories.</xs:documentation>
 33  </xs:annotation>
 34  <xs:sequence>
 35    <xs:element name="identifier"
 36                type="IdentifierXsdType"
 37                minOccurs="0"
 38                maxOccurs="1"
 39                xml:id="ConceptRelationship-identifier">
 40      <xs:annotation>
 41        <xs:documentation>Identifier for objects requiring short- or long-lasting referencing and management.</xs:documentation>
 42      </xs:annotation>
 43    </xs:element>
 44    <xs:element name="semantics"
 45                type="ControlledVocabularyEntryXsdType"
 46                minOccurs="0"
 47                maxOccurs="1"
 48                xml:id="ConceptRelationship-semantics">
 49      <xs:annotation>
 50        <xs:documentation>Specifies the semantics of the object in reference to a vocabulary, ontology, etc.</xs:documentation>
 51      </xs:annotation>
 52    </xs:element>
 53    <xs:element name="ConceptRelationship_hasSource_Concept"
 54                minOccurs="1"
 55                maxOccurs="1"
 56                xml:id="ConceptRelationship_hasSource_Concept">
 57      <xs:annotation>
 58        <xs:documentation>Restricts source object to concept for the relationship.</xs:documentation>
 59      </xs:annotation>
 60      <xs:complexType>
 61        <xs:complexContent>
 62          <xs:restriction base="AssociationReferenceXsdType">
 63            <xs:sequence>
 64              <xs:element name="ddiReference"
 65                          type="InternationalRegistrationDataIdentifierXsdType"
 66                          minOccurs="0"
 67                          maxOccurs="1"
 68                          xml:id="ConceptRelationship_hasSource_Concept-ddiReference"/>
 69              <xs:element name="validType"
 70                          minOccurs="0"
 71                          maxOccurs="unbounded"
 72                          xml:id="ConceptRelationship_hasSource_Concept-validType">
 73                <xs:simpleType>
 74                  <xs:restriction base="xs:NMTOKEN">
 75                    <xs:enumeration value="Category"/>
 76                    <xs:enumeration value="Concept"/>
 77                    <xs:enumeration value="ConceptualValue"/>
 78                    <xs:enumeration value="ConceptualVariable"/>
 79                    <xs:enumeration value="DescriptorVariable"/>
 80                    <xs:enumeration value="DimensionalKeyDefinitionMember"/>
 81                    <xs:enumeration value="InstanceVariable"/>
 82                    <xs:enumeration value="KeyDefinitionMember"/>
 83                    <xs:enumeration value="Population"/>
 84                    <xs:enumeration value="ReferenceVariable"/>
 85                    <xs:enumeration value="RepresentedVariable"/>
 86                    <xs:enumeration value="UnitType"/>
 87                    <xs:enumeration value="Universe"/>
 88                  </xs:restriction>
 89                </xs:simpleType>
 90              </xs:element>
 91            </xs:sequence>
 92          </xs:restriction>
 93        </xs:complexContent>
 94      </xs:complexType>
 95    </xs:element>
 96    <xs:element name="ConceptRelationship_hasTarget_Concept"
 97                minOccurs="1"
 98                maxOccurs="1"
 99                xml:id="ConceptRelationship_hasTarget_Concept">
100      <xs:annotation>
101        <xs:documentation>Restricts target object to concept for the relationship.</xs:documentation>
102      </xs:annotation>
103      <xs:complexType>
104        <xs:complexContent>
105          <xs:restriction base="AssociationReferenceXsdType">
106            <xs:sequence>
107              <xs:element name="ddiReference"
108                          type="InternationalRegistrationDataIdentifierXsdType"
109                          minOccurs="0"
110                          maxOccurs="1"
111                          xml:id="ConceptRelationship_hasTarget_Concept-ddiReference"/>
112              <xs:element name="validType"
113                          minOccurs="0"
114                          maxOccurs="unbounded"
115                          xml:id="ConceptRelationship_hasTarget_Concept-validType">
116                <xs:simpleType>
117                  <xs:restriction base="xs:NMTOKEN">
118                    <xs:enumeration value="Category"/>
119                    <xs:enumeration value="Concept"/>
120                    <xs:enumeration value="ConceptualValue"/>
121                    <xs:enumeration value="ConceptualVariable"/>
122                    <xs:enumeration value="DescriptorVariable"/>
123                    <xs:enumeration value="DimensionalKeyDefinitionMember"/>
124                    <xs:enumeration value="InstanceVariable"/>
125                    <xs:enumeration value="KeyDefinitionMember"/>
126                    <xs:enumeration value="Population"/>
127                    <xs:enumeration value="ReferenceVariable"/>
128                    <xs:enumeration value="RepresentedVariable"/>
129                    <xs:enumeration value="UnitType"/>
130                    <xs:enumeration value="Universe"/>
131                  </xs:restriction>
132                </xs:simpleType>
133              </xs:element>
134            </xs:sequence>
135          </xs:restriction>
136        </xs:complexContent>
137      </xs:complexType>
138    </xs:element>
139  </xs:sequence>
140</xs:complexType>

Fragment for the class ConceptRelationship (main ontology)

 1# class ConceptRelationship
 2# based on the UML class DDICDIModels::DDICDILibrary::Classes::Conceptual::ConceptRelationship
 3cdi:ConceptRelationship
 4  a rdfs:Class, owl:Class, ucmis:Class;
 5  rdfs:label "ConceptRelationship";
 6  rdfs:comment "Definition \n============ \nRelationship between a pair of concepts in a collection of concepts. Use controlled vocabulary provided in semantics to identify the type of relationship (relation, e.g. ParentChild, WholePart, etc.)  \n\nExamples \n========== \nApple (a specialized concept) is a kind of fruit (a generic concept). A wheel (a partitive concept) is part of a car (a whole concept).  \n\nExplanatory notes \n=================== \nThe idea is similar to category relationship, except it applies generally and not just for categories."@en;
 7  
 8.
 9
10cdi:ConceptRelationship-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:ConceptRelationship;
15  rdfs:range cdi:Identifier;
16.
17
18cdi:ConceptRelationship-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:ConceptRelationship;
23  rdfs:range cdi:ControlledVocabularyEntry;
24.
25
26
27cdi:ConceptRelationship_hasSource_Concept
28  a rdf:Property, owl:ObjectProperty, ucmis:Association;
29  # ASSOCIATION
30  rdfs:label "hasSource";
31  skos:altLabel "ConceptRelationship_hasSource_Concept";
32  rdfs:comment "Restricts source object to concept for the relationship."@en;
33  rdfs:domain cdi:ConceptRelationship;
34  rdfs:range cdi:Concept;
35.
36
37cdi:ConceptRelationship_hasTarget_Concept
38  a rdf:Property, owl:ObjectProperty, ucmis:Association;
39  # ASSOCIATION
40  rdfs:label "hasTarget";
41  skos:altLabel "ConceptRelationship_hasTarget_Concept";
42  rdfs:comment "Restricts target object to concept for the relationship."@en;
43  rdfs:domain cdi:ConceptRelationship;
44  rdfs:range cdi:Concept;
45.

Fragment for the class ConceptRelationship (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      "ConceptRelationship": "cdi:ConceptRelationship",
 7      "identifier": {
 8        "@id": "cdi:ConceptRelationship-identifier",
 9        "@type": "@id",
10        "@context": "Identifier.jsonld"
11      },
12      "semantics": {
13        "@id": "cdi:ConceptRelationship-semantics",
14        "@type": "@id",
15        "@context": "ControlledVocabularyEntry.jsonld"
16      },
17      
18      "hasSource": {
19        "@id": "cdi:ConceptRelationship_hasSource_Concept",
20        "@type": "@id"      },
21      "hasTarget": {
22        "@id": "cdi:ConceptRelationship_hasTarget_Concept",
23        "@type": "@id"      },
24      "has_OF_ConceptStructure": {
25        "@reverse": "cdi:ConceptStructure_has_ConceptRelationship",
26        "@type": "@id"
27      },
28      " comment ": "tag:json-should-support-trailing-commas" 
29    }
30  ],
31  "generatedBy": "This code was generated by the Eclipse Acceleo project UCMIS M2T on 2024-03-16 23:40:04.",
32  "basedOn": "based on the UML data type DDICDIModels::DDICDILibrary::Classes::Conceptual::ConceptRelationship"
33}