CategoryRelationship

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

Definition

Source-to-target relationship between categories in a structure.

Examples

In the International Standard Industrial Classification of All Economic Activities (ISIC) Revision 4 (https://unstats.un.org/unsd/demographic-social/census/documents/isic_rev4.pdf), the super-type/sub-type relation is used throughout. The super-type “Manufacturing Sector” has among its sub-types “Manufacture of Rubber and Plastics Products” (division 22). In this example, the super-type is the source (Manufacturing Sector”) and the sub-type is the target. The semantics attribute will provide the type of the relationship.

Explanatory notes

Relationships between pairs of categories are linkages between them. The meaning of the linkage is determined by the relation.

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 CategoryRelationship

Package of Other Class

Other Class

Multiplicity of other class

Aggregation Kind

Inherited from

from

CategoryRelationship hasSource Category

0..*

- own package -

Category

0..*

none

- own class -

from

CategoryRelationship hasTarget Category

Second member in a relationship. Note that this can be realized as a collection to support tuples.

0..*

- own package -

Category

0..*

none

- own class -

to

CategoryRelationStructure has CategoryRelationship

0..*

- own package -

CategoryRelationStructure

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 CategoryRelationship (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-CategoryRelationship"
 5                 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#CategoryRelationship"
 6                 xmi:type="uml:Class">
 7   <ownedComment xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-CategoryRelationship-ownedComment"
 8                 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#CategoryRelationship-ownedComment"
 9                 xmi:type="uml:Comment">
10      <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-Classes-Conceptual-CategoryRelationship"/>
11      <body>Definition 
12============ 
13Source-to-target relationship between categories in a structure.   
14
15Examples 
16========== 
17In the International Standard Industrial Classification of All Economic Activities (ISIC) Revision 4 (https://unstats.un.org/unsd/demographic-social/census/documents/isic_rev4.pdf), the super-type/sub-type relation is used throughout. The super-type "Manufacturing Sector" has among its sub-types "Manufacture of Rubber and Plastics Products" (division 22). In this example, the super-type is the source (Manufacturing Sector") and the sub-type is the target. The semantics attribute will provide the type of the relationship.
18
19Explanatory notes 
20=================== 
21Relationships between pairs of categories are linkages between them. The meaning of the linkage is determined by the relation.</body>
22   </ownedComment>
23   <name>CategoryRelationship</name>
24   <ownedAttribute xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-CategoryRelationship-identifier"
25                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#CategoryRelationship-identifier"
26                   xmi:type="uml:Property">
27      <ownedComment xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-CategoryRelationship-identifier-ownedComment"
28                    xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#CategoryRelationship-identifier-ownedComment"
29                    xmi:type="uml:Comment">
30         <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-Classes-Conceptual-CategoryRelationship-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-CategoryRelationship-identifier-lowerValue"
34                  xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#CategoryRelationship-identifier-lowerValue"
35                  xmi:type="uml:LiteralInteger"/>
36      <upperValue xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-CategoryRelationship-identifier-upperValue"
37                  xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#CategoryRelationship-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-CategoryRelationship-ownedAttribute_1"
46                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#CategoryRelationship-ownedAttribute_1"
47                   xmi:type="uml:Property">
48      <lowerValue xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-CategoryRelationship-ownedAttribute_1-lowerValue"
49                  xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#CategoryRelationship-ownedAttribute_1-lowerValue"
50                  xmi:type="uml:LiteralInteger"/>
51      <upperValue xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-CategoryRelationship-ownedAttribute_1-upperValue"
52                  xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#CategoryRelationship-ownedAttribute_1-upperValue"
53                  xmi:type="uml:LiteralUnlimitedNatural">
54         <value>*</value>
55      </upperValue>
56      <association xmi:idref="DDICDIModels-DDICDILibrary-Classes-Conceptual-CategoryRelationship_hasSource_Category"/>
57      <type xmi:idref="DDICDIModels-DDICDILibrary-Classes-Conceptual-Category"/>
58   </ownedAttribute>
59   <ownedAttribute xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-CategoryRelationship-ownedAttribute_2"
60                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#CategoryRelationship-ownedAttribute_2"
61                   xmi:type="uml:Property">
62      <lowerValue xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-CategoryRelationship-ownedAttribute_2-lowerValue"
63                  xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#CategoryRelationship-ownedAttribute_2-lowerValue"
64                  xmi:type="uml:LiteralInteger"/>
65      <upperValue xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-CategoryRelationship-ownedAttribute_2-upperValue"
66                  xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#CategoryRelationship-ownedAttribute_2-upperValue"
67                  xmi:type="uml:LiteralUnlimitedNatural">
68         <value>*</value>
69      </upperValue>
70      <association xmi:idref="DDICDIModels-DDICDILibrary-Classes-Conceptual-CategoryRelationship_hasTarget_Category"/>
71      <type xmi:idref="DDICDIModels-DDICDILibrary-Classes-Conceptual-Category"/>
72   </ownedAttribute>
73   <ownedAttribute xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-CategoryRelationship-semantics"
74                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#CategoryRelationship-semantics"
75                   xmi:type="uml:Property">
76      <ownedComment xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-CategoryRelationship-semantics-ownedComment"
77                    xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#CategoryRelationship-semantics-ownedComment"
78                    xmi:type="uml:Comment">
79         <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-Classes-Conceptual-CategoryRelationship-semantics"/>
80         <body>Specifies the semantics of the object in reference to a vocabulary, ontology, etc.</body>
81      </ownedComment>
82      <lowerValue xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-CategoryRelationship-semantics-lowerValue"
83                  xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#CategoryRelationship-semantics-lowerValue"
84                  xmi:type="uml:LiteralInteger"/>
85      <upperValue xmi:id="DDICDIModels-DDICDILibrary-Classes-Conceptual-CategoryRelationship-semantics-upperValue"
86                  xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#CategoryRelationship-semantics-upperValue"
87                  xmi:type="uml:LiteralUnlimitedNatural">
88         <value>1</value>
89      </upperValue>
90      <name>semantics</name>
91      <type xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-ControlledVocabularyEntry"/>
92   </ownedAttribute>
93</packagedElement>

Fragment for the class CategoryRelationship (entire XML Schema)

  1<xs:element name="CategoryRelationship"
  2            type="CategoryRelationshipXsdType"
  3            xml:id="CategoryRelationship">
  4  <!-- based on the UML class DDICDIModels::DDICDILibrary::Classes::Conceptual::CategoryRelationship -->
  5  <xs:annotation>
  6    <xs:documentation>Definition 
  7          ============ 
  8          Source-to-target relationship between categories in a structure.   
  9          
 10          Examples 
 11          ========== 
 12          In the International Standard Industrial Classification of All Economic Activities (ISIC) Revision 4 (https://unstats.un.org/unsd/demographic-social/census/documents/isic_rev4.pdf), the super-type/sub-type relation is used throughout. The super-type "Manufacturing Sector" has among its sub-types "Manufacture of Rubber and Plastics Products" (division 22). In this example, the super-type is the source (Manufacturing Sector") and the sub-type is the target. The semantics attribute will provide the type of the relationship.
 13          
 14          Explanatory notes 
 15          =================== 
 16          Relationships between pairs of categories are linkages between them. The meaning of the linkage is determined by the relation.</xs:documentation>
 17  </xs:annotation>
 18</xs:element>
 19<xs:complexType name="CategoryRelationshipXsdType"
 20                xml:id="CategoryRelationshipXsdType">
 21  <xs:annotation>
 22    <xs:documentation>Definition 
 23          ============ 
 24          Source-to-target relationship between categories in a structure.   
 25          
 26          Examples 
 27          ========== 
 28          In the International Standard Industrial Classification of All Economic Activities (ISIC) Revision 4 (https://unstats.un.org/unsd/demographic-social/census/documents/isic_rev4.pdf), the super-type/sub-type relation is used throughout. The super-type "Manufacturing Sector" has among its sub-types "Manufacture of Rubber and Plastics Products" (division 22). In this example, the super-type is the source (Manufacturing Sector") and the sub-type is the target. The semantics attribute will provide the type of the relationship.
 29          
 30          Explanatory notes 
 31          =================== 
 32          Relationships between pairs of categories are linkages between them. The meaning of the linkage is determined by the relation.</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="CategoryRelationship-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="CategoryRelationship-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="CategoryRelationship_hasSource_Category"
 54                minOccurs="0"
 55                maxOccurs="unbounded"
 56                xml:id="CategoryRelationship_hasSource_Category">
 57      <xs:annotation>
 58        <xs:documentation></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="CategoryRelationship_hasSource_Category-ddiReference"/>
 69              <xs:element name="validType"
 70                          minOccurs="0"
 71                          maxOccurs="unbounded"
 72                          xml:id="CategoryRelationship_hasSource_Category-validType">
 73                <xs:simpleType>
 74                  <xs:restriction base="xs:NMTOKEN">
 75                    <xs:enumeration value="Category"/>
 76                  </xs:restriction>
 77                </xs:simpleType>
 78              </xs:element>
 79            </xs:sequence>
 80          </xs:restriction>
 81        </xs:complexContent>
 82      </xs:complexType>
 83    </xs:element>
 84    <xs:element name="CategoryRelationship_hasTarget_Category"
 85                minOccurs="0"
 86                maxOccurs="unbounded"
 87                xml:id="CategoryRelationship_hasTarget_Category">
 88      <xs:annotation>
 89        <xs:documentation>Second member in a relationship. Note that this can be realized as a collection to support tuples.</xs:documentation>
 90      </xs:annotation>
 91      <xs:complexType>
 92        <xs:complexContent>
 93          <xs:restriction base="AssociationReferenceXsdType">
 94            <xs:sequence>
 95              <xs:element name="ddiReference"
 96                          type="InternationalRegistrationDataIdentifierXsdType"
 97                          minOccurs="0"
 98                          maxOccurs="1"
 99                          xml:id="CategoryRelationship_hasTarget_Category-ddiReference"/>
100              <xs:element name="validType"
101                          minOccurs="0"
102                          maxOccurs="unbounded"
103                          xml:id="CategoryRelationship_hasTarget_Category-validType">
104                <xs:simpleType>
105                  <xs:restriction base="xs:NMTOKEN">
106                    <xs:enumeration value="Category"/>
107                  </xs:restriction>
108                </xs:simpleType>
109              </xs:element>
110            </xs:sequence>
111          </xs:restriction>
112        </xs:complexContent>
113      </xs:complexType>
114    </xs:element>
115  </xs:sequence>
116</xs:complexType>

Fragment for the class CategoryRelationship (main ontology)

 1# class CategoryRelationship
 2# based on the UML class DDICDIModels::DDICDILibrary::Classes::Conceptual::CategoryRelationship
 3cdi:CategoryRelationship
 4  a rdfs:Class, owl:Class, ucmis:Class;
 5  rdfs:label "CategoryRelationship";
 6  rdfs:comment "Definition \n============ \nSource-to-target relationship between categories in a structure.   \n\nExamples \n========== \nIn the International Standard Industrial Classification of All Economic Activities (ISIC) Revision 4 (https://unstats.un.org/unsd/demographic-social/census/documents/isic_rev4.pdf), the super-type/sub-type relation is used throughout. The super-type \"Manufacturing Sector\" has among its sub-types \"Manufacture of Rubber and Plastics Products\" (division 22). In this example, the super-type is the source (Manufacturing Sector\") and the sub-type is the target. The semantics attribute will provide the type of the relationship.\n\nExplanatory notes \n=================== \nRelationships between pairs of categories are linkages between them. The meaning of the linkage is determined by the relation."@en;
 7  
 8.
 9
10cdi:CategoryRelationship-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:CategoryRelationship;
15  rdfs:range cdi:Identifier;
16.
17
18cdi:CategoryRelationship-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:CategoryRelationship;
23  rdfs:range cdi:ControlledVocabularyEntry;
24.
25
26
27cdi:CategoryRelationship_hasSource_Category
28  a rdf:Property, owl:ObjectProperty, ucmis:Association;
29  # ASSOCIATION
30  rdfs:label "hasSource";
31  skos:altLabel "CategoryRelationship_hasSource_Category";
32  
33  rdfs:domain cdi:CategoryRelationship;
34  rdfs:range cdi:Category;
35.
36
37cdi:CategoryRelationship_hasTarget_Category
38  a rdf:Property, owl:ObjectProperty, ucmis:Association;
39  # ASSOCIATION
40  rdfs:label "hasTarget";
41  skos:altLabel "CategoryRelationship_hasTarget_Category";
42  rdfs:comment "Second member in a relationship. Note that this can be realized as a collection to support tuples."@en;
43  rdfs:domain cdi:CategoryRelationship;
44  rdfs:range cdi:Category;
45.

Fragment for the class CategoryRelationship (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      "CategoryRelationship": "cdi:CategoryRelationship",
 7      "identifier": {
 8        "@id": "cdi:CategoryRelationship-identifier",
 9        "@type": "@id",
10        "@context": "Identifier.jsonld"
11      },
12      "semantics": {
13        "@id": "cdi:CategoryRelationship-semantics",
14        "@type": "@id",
15        "@context": "ControlledVocabularyEntry.jsonld"
16      },
17      
18      "hasSource": {
19        "@id": "cdi:CategoryRelationship_hasSource_Category",
20        "@type": "@id"      },
21      "hasTarget": {
22        "@id": "cdi:CategoryRelationship_hasTarget_Category",
23        "@type": "@id"      },
24      "has_OF_CategoryRelationStructure": {
25        "@reverse": "cdi:CategoryRelationStructure_has_CategoryRelationship",
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::CategoryRelationship"
33}