ConceptRelationship#

Fully qualified class name of the UML model DDI-CDI 1.0: 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#

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

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 ConceptRelationship (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-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 (entire JSON Schema)

 1"cls-ConceptRelationship": {
 2  "description": "http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/ConceptRelationship",
 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": "ConceptRelationship"
14    },
15    "identifier": {
16      "$comment": "cardinality 0..1 – from cdi:ConceptRelationship",
17      "$ref": "#/defs/dt-Identifier"
18    },
19    "semantics": {
20      "$comment": "cardinality 0..1 – from cdi:ConceptRelationship",
21      "$ref": "#/defs/dt-ControlledVocabularyEntry"
22    },
23    "hasSource": {
24      "description": "ConceptRelationship_hasSource_Concept",
25      "$comment": "cardinality 1..1",
26       "$ref": "#/defs/target-Concept"
27    },
28    "hasTarget": {
29      "description": "ConceptRelationship_hasTarget_Concept",
30      "$comment": "cardinality 1..1",
31       "$ref": "#/defs/target-Concept"
32    },
33    "has_ConceptRelationship_OF_ConceptStructure": {
34      "description": "ConceptStructure_has_ConceptRelationship",
35      "$comment": "cardinality 1..1",
36      "$ref": "#/defs/target-ConceptStructure"
37    },
38    "sameAs": {
39      "$ref": "#/defs/owl:sameAs"
40    }
41  },
42  "required": ["hasSource", "hasTarget","@type"],
43  "additionalProperties": false
44},
45"target-ConceptRelationship": {
46  "description": "all subclasses of http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/ConceptRelationship",
47  "anyOf": [
48    { "$ref": "#/defs/cls-ConceptRelationship" },
49    { "type": "string", "format": "iri-reference" }
50  ]
51},

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 (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: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        "@context": "Concept.jsonld"
22      },
23      "hasTarget": {
24        "@id": "cdi:ConceptRelationship_hasTarget_Concept",
25        "@type": "@id",
26        "@context": "Concept.jsonld"
27      },
28      "has_ConceptRelationship_OF_ConceptStructure": {
29        "@reverse": "cdi:ConceptStructure_has_ConceptRelationship",
30        "@type": "@id",
31        "@context": "ConceptStructure.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:48.",
37  "basedOn": "based on the UML data type DDICDIModels::DDICDILibrary::Classes::Conceptual::ConceptRelationship"
38}

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

 1# class ConceptRelationship
 2# based on the UML class DDICDIModels::DDICDILibrary::Classes::Conceptual::ConceptRelationship
 3<#ConceptRelationship> a sh:NodeShape;
 4    sh:targetClass cdi:ConceptRelationship;
 5	sh:message "See http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/ConceptRelationship";
 6	sh:closed true;
 7	sh:ignoredProperties ( owl:sameAs );
 8    sh:property [
 9			sh:path rdf:type;
10			sh:in (   cdi:ConceptRelationship
11			 ) ;
12    ];
13    # attributes
14    sh:property <#ConceptRelationship-identifier>;
15    sh:property <#ConceptRelationship-semantics>;
16    # associations from ConceptRelationship
17    sh:property <#ConceptRelationship_hasSource_Concept>;
18    sh:property <#ConceptRelationship_hasTarget_Concept>;
19    # associations to ConceptRelationship
20    sh:property <#rev_ConceptStructure_has_ConceptRelationship>;
21
22
23
24.
25
26<#ConceptRelationship-identifier> a sh:PropertyShape ;
27    sh:path cdi:ConceptRelationship-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<#ConceptRelationship-semantics> a sh:PropertyShape ;
35    sh:path cdi:ConceptRelationship-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<#ConceptRelationship_hasSource_Concept> a sh:PropertyShape ;
44    sh:path cdi:ConceptRelationship_hasSource_Concept;
45	sh:node [ sh:property [ sh:path rdf:type; sh:minCount 1; sh:in (
46        cdi:Concept
47        cdi:Category
48        cdi:ConceptualValue
49        cdi:DimensionalKeyDefinitionMember
50        cdi:KeyDefinitionMember
51        cdi:ConceptualVariable
52        cdi:RepresentedVariable
53        cdi:InstanceVariable
54        cdi:DescriptorVariable
55        cdi:ReferenceVariable
56        cdi:UnitType
57        cdi:Universe
58        cdi:Population
59      
60    ) ]];
61    sh:minCount 1;
62    sh:maxCount 1;
63.
64<#rev_ConceptRelationship_hasSource_Concept> a sh:PropertyShape ;
65    sh:path [ sh:inversePath cdi:ConceptRelationship_hasSource_Concept ];
66.
67<#ConceptRelationship_hasTarget_Concept> a sh:PropertyShape ;
68    sh:path cdi:ConceptRelationship_hasTarget_Concept;
69	sh:node [ sh:property [ sh:path rdf:type; sh:minCount 1; sh:in (
70        cdi:Concept
71        cdi:Category
72        cdi:ConceptualValue
73        cdi:DimensionalKeyDefinitionMember
74        cdi:KeyDefinitionMember
75        cdi:ConceptualVariable
76        cdi:RepresentedVariable
77        cdi:InstanceVariable
78        cdi:DescriptorVariable
79        cdi:ReferenceVariable
80        cdi:UnitType
81        cdi:Universe
82        cdi:Population
83      
84    ) ]];
85    sh:minCount 1;
86    sh:maxCount 1;
87.
88<#rev_ConceptRelationship_hasTarget_Concept> a sh:PropertyShape ;
89    sh:path [ sh:inversePath cdi:ConceptRelationship_hasTarget_Concept ];
90.

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

 1# class ConceptRelationship
 2# based on the UML class DDICDIModels::DDICDILibrary::Classes::Conceptual::ConceptRelationship
 3cdi:ConceptRelationshipShape CLOSED {
 4	a [cdi:ConceptRelationship];
 5	cdi:ConceptRelationship-identifier	@cdi:IdentifierShape?;
 6	cdi:ConceptRelationship-semantics	@cdi:ControlledVocabularyEntryShape?;
 7	cdi:ConceptRelationship_hasSource_Concept	@cdi:ConceptShape OR @cdi:CategoryShape OR @cdi:ConceptualValueShape OR @cdi:ConceptualVariableShape OR @cdi:UnitTypeShape;
 8	
 9	cdi:ConceptRelationship_hasTarget_Concept	@cdi:ConceptShape OR @cdi:CategoryShape OR @cdi:ConceptualValueShape OR @cdi:ConceptualVariableShape OR @cdi:UnitTypeShape;
10	
11	^cdi:ConceptStructure_has_ConceptRelationship @cdi:ConceptStructureShape ;
12	}