Key#

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

Definition#

Collection of data instances that uniquely identify a collection of data points in a dataset.

Diagram#

Diagram

Inheritance#

Inheritance
DataDescription::Key
ᐊ── Long::LongKey
ᐊ── Wide::WideKey

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

Associations#

Associations
Associations#

Direction

Association

Description

Multiplicity of Key

Package of Other Class

Other Class

Multiplicity of other class

Aggregation Kind

Inherited from

from

Key correspondsTo Unit

0..*

Conceptual

Unit

0..1

none

own class

from

Key correspondsTo Universe

0..*

Conceptual

Universe

0..1

none

own class

to

DataSet has Key

0..*

- own package -

DataSet

1..1

none

own class

from

Key has KeyMember

0..1

- own package -

KeyMember

0..*

shared

own class

from

Key identifies DataPoint

0..1

- own package -

DataPoint

1..*

none

own class

from

Key represents KeyDefinition

1..*

- own package -

KeyDefinition

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 Key (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-DataDescription-Key"
  5                  xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#Key"
  6                  xmi:type="uml:Class">
  7   <ownedComment xmi:id="DDICDIModels-DDICDILibrary-Classes-DataDescription-Key-ownedComment"
  8                  xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#Key-ownedComment"
  9                  xmi:type="uml:Comment">
 10      <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-Classes-DataDescription-Key"/>
 11      <body>Definition 
 12============ 
 13Collection of data instances that uniquely identify a collection of data points in a dataset.</body>
 14   </ownedComment>
 15   <name>Key</name>
 16   <ownedAttribute xmi:id="DDICDIModels-DDICDILibrary-Classes-DataDescription-Key-identifier"
 17                    xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#Key-identifier"
 18                    xmi:type="uml:Property">
 19      <ownedComment xmi:id="DDICDIModels-DDICDILibrary-Classes-DataDescription-Key-identifier-ownedComment"
 20                     xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#Key-identifier-ownedComment"
 21                     xmi:type="uml:Comment">
 22         <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-Classes-DataDescription-Key-identifier"/>
 23         <body>Identifier for objects requiring short- or long-lasting referencing and management.</body>
 24      </ownedComment>
 25      <lowerValue xmi:id="DDICDIModels-DDICDILibrary-Classes-DataDescription-Key-identifier-lowerValue"
 26                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#Key-identifier-lowerValue"
 27                   xmi:type="uml:LiteralInteger"/>
 28      <upperValue xmi:id="DDICDIModels-DDICDILibrary-Classes-DataDescription-Key-identifier-upperValue"
 29                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#Key-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-DataDescription-Key-ownedAttribute_1"
 38                    xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#Key-ownedAttribute_1"
 39                    xmi:type="uml:Property">
 40      <lowerValue xmi:id="DDICDIModels-DDICDILibrary-Classes-DataDescription-Key-ownedAttribute_1-lowerValue"
 41                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#Key-ownedAttribute_1-lowerValue"
 42                   xmi:type="uml:LiteralInteger"/>
 43      <upperValue xmi:id="DDICDIModels-DDICDILibrary-Classes-DataDescription-Key-ownedAttribute_1-upperValue"
 44                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#Key-ownedAttribute_1-upperValue"
 45                   xmi:type="uml:LiteralUnlimitedNatural">
 46         <value>1</value>
 47      </upperValue>
 48      <association xmi:idref="DDICDIModels-DDICDILibrary-Classes-Conceptual-Key_correspondsTo_Unit"/>
 49      <type xmi:idref="DDICDIModels-DDICDILibrary-Classes-Conceptual-Unit"/>
 50   </ownedAttribute>
 51   <ownedAttribute xmi:id="DDICDIModels-DDICDILibrary-Classes-DataDescription-Key-ownedAttribute_2"
 52                    xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#Key-ownedAttribute_2"
 53                    xmi:type="uml:Property">
 54      <lowerValue xmi:id="DDICDIModels-DDICDILibrary-Classes-DataDescription-Key-ownedAttribute_2-lowerValue"
 55                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#Key-ownedAttribute_2-lowerValue"
 56                   xmi:type="uml:LiteralInteger"/>
 57      <upperValue xmi:id="DDICDIModels-DDICDILibrary-Classes-DataDescription-Key-ownedAttribute_2-upperValue"
 58                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#Key-ownedAttribute_2-upperValue"
 59                   xmi:type="uml:LiteralUnlimitedNatural">
 60         <value>1</value>
 61      </upperValue>
 62      <association xmi:idref="DDICDIModels-DDICDILibrary-Classes-DataDescription-Key_represents_KeyDefinition"/>
 63      <type xmi:idref="DDICDIModels-DDICDILibrary-Classes-DataDescription-KeyDefinition"/>
 64   </ownedAttribute>
 65   <ownedAttribute xmi:id="DDICDIModels-DDICDILibrary-Classes-DataDescription-Key-ownedAttribute_3"
 66                    xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#Key-ownedAttribute_3"
 67                    xmi:type="uml:Property">
 68      <lowerValue xmi:id="DDICDIModels-DDICDILibrary-Classes-DataDescription-Key-ownedAttribute_3-lowerValue"
 69                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#Key-ownedAttribute_3-lowerValue"
 70                   xmi:type="uml:LiteralInteger">
 71         <value>1</value>
 72      </lowerValue>
 73      <upperValue xmi:id="DDICDIModels-DDICDILibrary-Classes-DataDescription-Key-ownedAttribute_3-upperValue"
 74                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#Key-ownedAttribute_3-upperValue"
 75                   xmi:type="uml:LiteralUnlimitedNatural">
 76         <value>*</value>
 77      </upperValue>
 78      <association xmi:idref="DDICDIModels-DDICDILibrary-Classes-DataDescription-Key_identifies_DataPoint"/>
 79      <type xmi:idref="DDICDIModels-DDICDILibrary-Classes-DataDescription-DataPoint"/>
 80   </ownedAttribute>
 81   <ownedAttribute xmi:id="DDICDIModels-DDICDILibrary-Classes-DataDescription-Key-ownedAttribute_4"
 82                    xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#Key-ownedAttribute_4"
 83                    xmi:type="uml:Property">
 84      <lowerValue xmi:id="DDICDIModels-DDICDILibrary-Classes-DataDescription-Key-ownedAttribute_4-lowerValue"
 85                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#Key-ownedAttribute_4-lowerValue"
 86                   xmi:type="uml:LiteralInteger"/>
 87      <upperValue xmi:id="DDICDIModels-DDICDILibrary-Classes-DataDescription-Key-ownedAttribute_4-upperValue"
 88                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#Key-ownedAttribute_4-upperValue"
 89                   xmi:type="uml:LiteralUnlimitedNatural">
 90         <value>1</value>
 91      </upperValue>
 92      <association xmi:idref="DDICDIModels-DDICDILibrary-Classes-Conceptual-Key_correspondsTo_Universe"/>
 93      <type xmi:idref="DDICDIModels-DDICDILibrary-Classes-Conceptual-Universe"/>
 94   </ownedAttribute>
 95   <ownedAttribute xmi:id="DDICDIModels-DDICDILibrary-Classes-DataDescription-Key-ownedAttribute_5"
 96                    xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#Key-ownedAttribute_5"
 97                    xmi:type="uml:Property">
 98      <lowerValue xmi:id="DDICDIModels-DDICDILibrary-Classes-DataDescription-Key-ownedAttribute_5-lowerValue"
 99                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#Key-ownedAttribute_5-lowerValue"
100                   xmi:type="uml:LiteralInteger"/>
101      <upperValue xmi:id="DDICDIModels-DDICDILibrary-Classes-DataDescription-Key-ownedAttribute_5-upperValue"
102                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#Key-ownedAttribute_5-upperValue"
103                   xmi:type="uml:LiteralUnlimitedNatural">
104         <value>*</value>
105      </upperValue>
106      <aggregation>shared</aggregation>
107      <association xmi:idref="DDICDIModels-DDICDILibrary-Classes-DataDescription-Key_has_KeyMember"/>
108      <type xmi:idref="DDICDIModels-DDICDILibrary-Classes-DataDescription-KeyMember"/>
109   </ownedAttribute>
110</packagedElement>

Fragment for the class Key (entire XML Schema)

  1<xs:element name="Key"
  2            type="KeyXsdType"
  3            xml:id="Key">
  4  <!-- based on the UML class DDICDIModels::DDICDILibrary::Classes::DataDescription::Key -->
  5  <xs:annotation>
  6    <xs:documentation>Definition 
  7          ============ 
  8          Collection of data instances that uniquely identify a collection of data points in a dataset.</xs:documentation>
  9  </xs:annotation>
 10</xs:element>
 11<xs:complexType name="KeyXsdType"
 12                xml:id="KeyXsdType">
 13  <xs:annotation>
 14    <xs:documentation>Definition 
 15          ============ 
 16          Collection of data instances that uniquely identify a collection of data points in a dataset.</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="Key-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="Key_correspondsTo_Unit"
 29                minOccurs="0"
 30                maxOccurs="1"
 31                xml:id="Key_correspondsTo_Unit">
 32      <xs:annotation>
 33        <xs:documentation></xs:documentation>
 34      </xs:annotation>
 35      <xs:complexType>
 36        <xs:complexContent>
 37          <xs:restriction base="AssociationReferenceXsdType">
 38            <xs:sequence>
 39              <xs:element name="ddiReference"
 40                          type="InternationalRegistrationDataIdentifierXsdType"
 41                          minOccurs="0"
 42                          maxOccurs="1"
 43                          xml:id="Key_correspondsTo_Unit-ddiReference"/>
 44              <xs:element name="validType"
 45                          minOccurs="0"
 46                          maxOccurs="unbounded"
 47                          xml:id="Key_correspondsTo_Unit-validType">
 48                <xs:simpleType>
 49                  <xs:restriction base="xs:NMTOKEN">
 50                    <xs:enumeration value="Unit"/>
 51                  </xs:restriction>
 52                </xs:simpleType>
 53              </xs:element>
 54            </xs:sequence>
 55          </xs:restriction>
 56        </xs:complexContent>
 57      </xs:complexType>
 58    </xs:element>
 59    <xs:element name="Key_represents_KeyDefinition"
 60                minOccurs="0"
 61                maxOccurs="1"
 62                xml:id="Key_represents_KeyDefinition">
 63      <xs:annotation>
 64        <xs:documentation></xs:documentation>
 65      </xs:annotation>
 66      <xs:complexType>
 67        <xs:complexContent>
 68          <xs:restriction base="AssociationReferenceXsdType">
 69            <xs:sequence>
 70              <xs:element name="ddiReference"
 71                          type="InternationalRegistrationDataIdentifierXsdType"
 72                          minOccurs="0"
 73                          maxOccurs="1"
 74                          xml:id="Key_represents_KeyDefinition-ddiReference"/>
 75              <xs:element name="validType"
 76                          minOccurs="1"
 77                          maxOccurs="unbounded"
 78                          xml:id="Key_represents_KeyDefinition-validType">
 79                <xs:simpleType>
 80                  <xs:restriction base="xs:NMTOKEN">
 81                    <xs:enumeration value="DimensionalKeyDefinition"/>
 82                    <xs:enumeration value="KeyDefinition"/>
 83                  </xs:restriction>
 84                </xs:simpleType>
 85              </xs:element>
 86            </xs:sequence>
 87          </xs:restriction>
 88        </xs:complexContent>
 89      </xs:complexType>
 90    </xs:element>
 91    <xs:element name="Key_identifies_DataPoint"
 92                minOccurs="1"
 93                maxOccurs="unbounded"
 94                xml:id="Key_identifies_DataPoint">
 95      <xs:annotation>
 96        <xs:documentation></xs:documentation>
 97      </xs:annotation>
 98      <xs:complexType>
 99        <xs:complexContent>
100          <xs:restriction base="AssociationReferenceXsdType">
101            <xs:sequence>
102              <xs:element name="ddiReference"
103                          type="InternationalRegistrationDataIdentifierXsdType"
104                          minOccurs="0"
105                          maxOccurs="1"
106                          xml:id="Key_identifies_DataPoint-ddiReference"/>
107              <xs:element name="validType"
108                          minOccurs="0"
109                          maxOccurs="1"
110                          xml:id="Key_identifies_DataPoint-validType">
111                <xs:simpleType>
112                  <xs:restriction base="xs:NMTOKEN">
113                    <xs:enumeration value="DataPoint"/>
114                  </xs:restriction>
115                </xs:simpleType>
116              </xs:element>
117            </xs:sequence>
118          </xs:restriction>
119        </xs:complexContent>
120      </xs:complexType>
121    </xs:element>
122    <xs:element name="Key_correspondsTo_Universe"
123                minOccurs="0"
124                maxOccurs="1"
125                xml:id="Key_correspondsTo_Universe">
126      <xs:annotation>
127        <xs:documentation></xs:documentation>
128      </xs:annotation>
129      <xs:complexType>
130        <xs:complexContent>
131          <xs:restriction base="AssociationReferenceXsdType">
132            <xs:sequence>
133              <xs:element name="ddiReference"
134                          type="InternationalRegistrationDataIdentifierXsdType"
135                          minOccurs="0"
136                          maxOccurs="1"
137                          xml:id="Key_correspondsTo_Universe-ddiReference"/>
138              <xs:element name="validType"
139                          minOccurs="0"
140                          maxOccurs="unbounded"
141                          xml:id="Key_correspondsTo_Universe-validType">
142                <xs:simpleType>
143                  <xs:restriction base="xs:NMTOKEN">
144                    <xs:enumeration value="Population"/>
145                    <xs:enumeration value="Universe"/>
146                  </xs:restriction>
147                </xs:simpleType>
148              </xs:element>
149            </xs:sequence>
150          </xs:restriction>
151        </xs:complexContent>
152      </xs:complexType>
153    </xs:element>
154    <xs:element name="Key_has_KeyMember"
155                minOccurs="0"
156                maxOccurs="unbounded"
157                xml:id="Key_has_KeyMember">
158      <xs:annotation>
159        <xs:documentation></xs:documentation>
160      </xs:annotation>
161      <xs:complexType>
162        <xs:complexContent>
163          <xs:restriction base="AssociationReferenceXsdType">
164            <xs:sequence>
165              <xs:element name="ddiReference"
166                          type="InternationalRegistrationDataIdentifierXsdType"
167                          minOccurs="0"
168                          maxOccurs="1"
169                          xml:id="Key_has_KeyMember-ddiReference"/>
170              <xs:element name="validType"
171                          minOccurs="0"
172                          maxOccurs="1"
173                          xml:id="Key_has_KeyMember-validType">
174                <xs:simpleType>
175                  <xs:restriction base="xs:NMTOKEN">
176                    <xs:enumeration value="Descriptor"/>
177                    <xs:enumeration value="DimensionalKeyMember"/>
178                    <xs:enumeration value="KeyMember"/>
179                    <xs:enumeration value="LongMainKeyMember"/>
180                    <xs:enumeration value="MainKeyMember"/>
181                    <xs:enumeration value="WideKeyMember"/>
182                  </xs:restriction>
183                </xs:simpleType>
184              </xs:element>
185            </xs:sequence>
186          </xs:restriction>
187        </xs:complexContent>
188      </xs:complexType>
189    </xs:element>
190  </xs:sequence>
191</xs:complexType>

Fragment for the class Key (entire JSON Schema)

 1"cls-Key": {
 2  "description": "http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/Key",
 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": "Key"
14    },
15    "identifier": {
16      "$comment": "cardinality 0..1 – from cdi:Key",
17      "$ref": "#/defs/dt-Identifier"
18    },
19    "correspondsTo_Unit": {
20      "description": "Key_correspondsTo_Unit",
21      "$comment": "cardinality 0..1",
22       "$ref": "#/defs/target-Unit"
23    },
24    "correspondsTo_Universe": {
25      "description": "Key_correspondsTo_Universe",
26      "$comment": "cardinality 0..1",
27       "$ref": "#/defs/target-Universe"
28    },
29    "has_KeyMember": {
30      "description": "Key_has_KeyMember",
31      "$comment": "cardinality 0..-1",
32      "anyOf": [
33        {
34          "$ref": "#/defs/target-KeyMember"
35        },
36        {
37          "type": "array",
38          "items": {
39            "$ref": "#/defs/target-KeyMember"
40          }
41        }
42      ]
43    },
44    "identifies": {
45      "description": "Key_identifies_DataPoint",
46      "$comment": "cardinality 1..-1",
47      "anyOf": [
48        {
49          "$ref": "#/defs/target-DataPoint"
50        },
51        {
52          "type": "array",
53          "items": {
54            "$ref": "#/defs/target-DataPoint"
55          }
56        }
57      ]
58    },
59    "represents": {
60      "description": "Key_represents_KeyDefinition",
61      "$comment": "cardinality 0..1",
62       "$ref": "#/defs/target-KeyDefinition"
63    },
64    "has_Key_OF_DataSet": {
65      "description": "DataSet_has_Key",
66      "$comment": "cardinality 1..1",
67      "$ref": "#/defs/target-DataSet"
68    },
69    "sameAs": {
70      "$ref": "#/defs/owl:sameAs"
71    }
72  },
73  "required": ["identifies","@type"],
74  "additionalProperties": false
75},
76"target-Key": {
77  "description": "all subclasses of http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/Key",
78  "anyOf": [
79    { "$ref": "#/defs/cls-Key" },
80    { "$ref": "#/defs/cls-DimensionalKey" },
81    { "$ref": "#/defs/cls-InstanceKey" },
82    { "$ref": "#/defs/cls-LongKey" },
83    { "$ref": "#/defs/cls-WideKey" },
84    { "type": "string", "format": "iri-reference" }
85  ]
86},

Fragment for the class Key (main ontology)

 1# class Key
 2# based on the UML class DDICDIModels::DDICDILibrary::Classes::DataDescription::Key
 3cdi:Key
 4  a rdfs:Class, owl:Class, ucmis:Class;
 5  rdfs:label "Key";
 6  rdfs:comment "Definition \n============ \nCollection of data instances that uniquely identify a collection of data points in a dataset."@en;
 7  
 8.
 9
10cdi:Key-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:Key;
15  rdfs:range cdi:Identifier;
16.
17
18
19cdi:Key_correspondsTo_Unit
20  a rdf:Property, owl:ObjectProperty, ucmis:Association;
21  # ASSOCIATION
22  rdfs:label "correspondsTo_Unit";
23  skos:altLabel "Key_correspondsTo_Unit";
24  
25  rdfs:domain cdi:Key;
26  rdfs:range cdi:Unit;
27.
28
29cdi:Key_correspondsTo_Universe
30  a rdf:Property, owl:ObjectProperty, ucmis:Association;
31  # ASSOCIATION
32  rdfs:label "correspondsTo_Universe";
33  skos:altLabel "Key_correspondsTo_Universe";
34  
35  rdfs:domain cdi:Key;
36  rdfs:range cdi:Universe;
37.
38
39cdi:Key_has_KeyMember
40  a rdf:Property, owl:ObjectProperty, ucmis:Association;
41  # ASSOCIATION
42  rdfs:label "has_KeyMember";
43  skos:altLabel "Key_has_KeyMember";
44  
45  rdfs:domain cdi:Key;
46  rdfs:range cdi:KeyMember;
47.
48
49cdi:Key_identifies_DataPoint
50  a rdf:Property, owl:ObjectProperty, ucmis:Association;
51  # ASSOCIATION
52  rdfs:label "identifies";
53  skos:altLabel "Key_identifies_DataPoint";
54  
55  rdfs:domain cdi:Key;
56  rdfs:range cdi:DataPoint;
57.
58
59cdi:Key_represents_KeyDefinition
60  a rdf:Property, owl:ObjectProperty, ucmis:Association;
61  # ASSOCIATION
62  rdfs:label "represents";
63  skos:altLabel "Key_represents_KeyDefinition";
64  
65  rdfs:domain cdi:Key;
66  rdfs:range cdi:KeyDefinition;
67.

Fragment for the class Key (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:Key-identifier",
 9        "@type": "@id",
10        "@context": "Identifier.jsonld"
11      },
12      
13      "correspondsTo_Unit": {
14        "@id": "cdi:Key_correspondsTo_Unit",
15        "@type": "@id",
16        "@context": "Unit.jsonld"
17      },
18      "correspondsTo_Universe": {
19        "@id": "cdi:Key_correspondsTo_Universe",
20        "@type": "@id",
21        "@context": "Universe.jsonld"
22      },
23      "has_KeyMember": {
24        "@id": "cdi:Key_has_KeyMember",
25        "@type": "@id",
26        "@context": "KeyMember.jsonld"
27      },
28      "identifies": {
29        "@id": "cdi:Key_identifies_DataPoint",
30        "@type": "@id",
31        "@context": "DataPoint.jsonld"
32      },
33      "represents": {
34        "@id": "cdi:Key_represents_KeyDefinition",
35        "@type": "@id",
36        "@context": "KeyDefinition.jsonld"
37      },
38      "has_Key_OF_DataSet": {
39        "@reverse": "cdi:DataSet_has_Key",
40        "@type": "@id",
41        "@context": "DataSet.jsonld"
42      },
43      " comment ": "tag:json-should-support-trailing-commas"
44    }
45  ],
46  "generatedBy": "This code was generated by the Eclipse Acceleo project UCMIS M2T on 2025-08-29 14:34:52.",
47  "basedOn": "based on the UML data type DDICDIModels::DDICDILibrary::Classes::DataDescription::Key"
48}

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

  1# class Key
  2# based on the UML class DDICDIModels::DDICDILibrary::Classes::DataDescription::Key
  3<#Key> a sh:NodeShape;
  4    sh:targetClass cdi:Key;
  5	sh:message "See http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/Key";
  6	sh:closed true;
  7	sh:ignoredProperties ( owl:sameAs );
  8    sh:property [
  9			sh:path rdf:type;
 10			sh:in (   cdi:Key
 11			  cdi:DimensionalKey
 12			  cdi:InstanceKey
 13			  cdi:LongKey
 14			  cdi:WideKey
 15			 ) ;
 16    ];
 17    # attributes
 18    sh:property <#Key-identifier>;
 19    # associations from Key
 20    sh:property <#Key_correspondsTo_Unit>;
 21    sh:property <#Key_correspondsTo_Universe>;
 22    sh:property <#Key_has_KeyMember>;
 23    sh:property <#Key_identifies_DataPoint>;
 24    sh:property <#Key_represents_KeyDefinition>;
 25    # associations to Key
 26    sh:property <#rev_DataSet_has_Key>;
 27
 28
 29
 30.
 31
 32<#Key-identifier> a sh:PropertyShape ;
 33    sh:path cdi:Key-identifier;
 34    sh:node [ sh:property [ sh:path rdf:type; sh:minCount 1; sh:in (
 35        cdi:Identifier
 36      
 37    ) ]];
 38    sh:maxCount 1;
 39.
 40
 41<#Key_correspondsTo_Unit> a sh:PropertyShape ;
 42    sh:path cdi:Key_correspondsTo_Unit;
 43	sh:node [ sh:property [ sh:path rdf:type; sh:minCount 1; sh:in (
 44        cdi:Unit
 45      
 46    ) ]];
 47    sh:maxCount 1;
 48.
 49<#rev_Key_correspondsTo_Unit> a sh:PropertyShape ;
 50    sh:path [ sh:inversePath cdi:Key_correspondsTo_Unit ];
 51.
 52<#Key_correspondsTo_Universe> a sh:PropertyShape ;
 53    sh:path cdi:Key_correspondsTo_Universe;
 54	sh:node [ sh:property [ sh:path rdf:type; sh:minCount 1; sh:in (
 55        cdi:Universe
 56        cdi:Population
 57      
 58    ) ]];
 59    sh:maxCount 1;
 60.
 61<#rev_Key_correspondsTo_Universe> a sh:PropertyShape ;
 62    sh:path [ sh:inversePath cdi:Key_correspondsTo_Universe ];
 63.
 64<#Key_has_KeyMember> a sh:PropertyShape ;
 65    sh:path cdi:Key_has_KeyMember;
 66	sh:node [ sh:property [ sh:path rdf:type; sh:minCount 1; sh:in (
 67        cdi:KeyMember
 68        cdi:Descriptor
 69        cdi:DimensionalKeyMember
 70        cdi:LongMainKeyMember
 71        cdi:MainKeyMember
 72        cdi:WideKeyMember
 73      
 74    ) ]];
 75.
 76<#rev_Key_has_KeyMember> a sh:PropertyShape ;
 77    sh:path [ sh:inversePath cdi:Key_has_KeyMember ];
 78    sh:maxCount 1;
 79.
 80<#Key_identifies_DataPoint> a sh:PropertyShape ;
 81    sh:path cdi:Key_identifies_DataPoint;
 82	sh:node [ sh:property [ sh:path rdf:type; sh:minCount 1; sh:in (
 83        cdi:DataPoint
 84      
 85    ) ]];
 86    sh:minCount 1;
 87.
 88<#rev_Key_identifies_DataPoint> a sh:PropertyShape ;
 89    sh:path [ sh:inversePath cdi:Key_identifies_DataPoint ];
 90    sh:maxCount 1;
 91.
 92<#Key_represents_KeyDefinition> a sh:PropertyShape ;
 93    sh:path cdi:Key_represents_KeyDefinition;
 94	sh:node [ sh:property [ sh:path rdf:type; sh:minCount 1; sh:in (
 95        cdi:KeyDefinition
 96        cdi:DimensionalKeyDefinition
 97      
 98    ) ]];
 99    sh:maxCount 1;
100.
101<#rev_Key_represents_KeyDefinition> a sh:PropertyShape ;
102    sh:path [ sh:inversePath cdi:Key_represents_KeyDefinition ];
103    sh:minCount 1;
104.

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

 1# class Key
 2# based on the UML class DDICDIModels::DDICDILibrary::Classes::DataDescription::Key
 3cdi:KeyShape CLOSED {
 4	a [cdi:Key];
 5	$cdi:KeyProperties (
 6	cdi:Key-identifier	@cdi:IdentifierShape?;
 7	cdi:Key_correspondsTo_Unit	@cdi:UnitShape ?;
 8	
 9	cdi:Key_correspondsTo_Universe	@cdi:UniverseShape OR @cdi:PopulationShape?;
10	
11	^cdi:DataSet_has_Key @cdi:DataSetShape OR @cdi:DimensionalDataSetShape OR @cdi:KeyValueDataStoreShape OR @cdi:LongDataSetShape OR @cdi:WideDataSetShape;
12	cdi:Key_has_KeyMember	@cdi:KeyMemberShape OR @cdi:DescriptorShape OR @cdi:DimensionalKeyMemberShape OR @cdi:LongMainKeyMemberShape OR @cdi:MainKeyMemberShape OR @cdi:WideKeyMemberShape*;
13	
14	cdi:Key_identifies_DataPoint	@cdi:DataPointShape +;
15	
16	cdi:Key_represents_KeyDefinition	@cdi:KeyDefinitionShape OR @cdi:DimensionalKeyDefinitionShape?;
17	
18		);
19}