ContextualComponent#
Fully qualified class name of the UML model DDI-CDI 1.0: DDICDIModels::DDICDILibrary::Classes::DataDescription::KeyValue::ContextualComponent
Definition#
Encapsulates contextual information of the key-value datastore to provide a scope to the instance key. The instance key is unique within the scope.
Examples#
A partition, cluster name and any other key-value datastore organization information.
Explanatory notes#
A key-value datastore can be organized into multiple contextual components. Other data structure components that are part of the instance key, e.g. identifier and dimension components, guarantee uniqueness only within the scope of a contextual component. Synthetic id components do guarantee global uniqueness, but they might complex to setup and maintain in many organizations. Contextual components provide a simple mechanism to achieve uniqueness within a single key-value datastore. When a key-value datastore is organized in contextual components, a contextual component prefix is added to the instance key to make it unique across the entire key-value datastore.
Diagram#
Diagram
Inheritance#
Inheritance
Attributes#
Attributes
Name |
Inherited from |
Description |
Data Type |
Multiplicity |
Default value |
|---|---|---|---|---|---|
identifier |
Identifier for objects requiring short- or long-lasting referencing and management. |
0..1 |
|||
semantic |
Qualifies the purpose or use expressed as a paired external controlled vocabulary. |
0..* |
|||
specialization |
The role played by the component for the data set for purposes of harmonization and integration, typically regarding geography, time, etc. |
0..1 |
Associations#
Associations
Direction |
Association |
Description |
Multiplicity of ContextualComponent |
Package of Other Class |
Other Class |
Multiplicity of other class |
Aggregation Kind |
Inherited from |
|---|---|---|---|---|---|---|---|---|
from |
DataStructureComponent isDefinedBy RepresentedVariable |
Data structure component is defined by zero to one represented variable. |
0..* |
0..1 |
none |
|||
to |
DataPoint correspondsTo DataStructureComponent |
0..* |
0..* |
none |
||||
to |
DataStructure has DataStructureComponent |
0..* |
0..1 |
none |
||||
to |
KeyMember isBasedOn DataStructureComponent |
0..* |
0..* |
none |
||||
to |
AttributeComponent qualifies DataStructureComponent |
0..* |
0..* |
none |
||||
to |
ComponentPosition indexes DataStructureComponent |
0..1 |
0..* |
none |
||||
to |
ForeignKeyComponent correspondsTo DataStructureComponent |
1..1 |
0..1 |
none |
||||
to |
PrimaryKeyComponent correspondsTo DataStructureComponent |
1..1 |
0..1 |
none |
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 ContextualComponent (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-KeyValue-ContextualComponent"
5 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#ContextualComponent"
6 xmi:type="uml:Class">
7 <ownedComment xmi:id="DDICDIModels-DDICDILibrary-Classes-DataDescription-KeyValue-ContextualComponent-ownedComment"
8 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#ContextualComponent-ownedComment"
9 xmi:type="uml:Comment">
10 <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-Classes-DataDescription-KeyValue-ContextualComponent"/>
11 <body>Definition
12============
13Encapsulates contextual information of the key-value datastore to provide a scope to the instance key. The instance key is unique within the scope.
14
15Examples
16==========
17A partition, cluster name and any other key-value datastore organization information.
18
19Explanatory notes
20===================
21A key-value datastore can be organized into multiple contextual components.
22Other data structure components that are part of the instance key, e.g. identifier and dimension components, guarantee uniqueness only within the scope of a contextual component.
23Synthetic id components do guarantee global uniqueness, but they might complex to setup and maintain in many organizations.
24Contextual components provide a simple mechanism to achieve uniqueness within a single key-value datastore.
25When a key-value datastore is organized in contextual components, a contextual component prefix is added to the instance key to make it unique across the entire key-value datastore.</body>
26 </ownedComment>
27 <name>ContextualComponent</name>
28 <generalization xmi:id="DDICDIModels-DDICDILibrary-Classes-DataDescription-KeyValue-ContextualComponent-generalization"
29 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#ContextualComponent-generalization"
30 xmi:type="uml:Generalization">
31 <general xmi:idref="DDICDIModels-DDICDILibrary-Classes-DataDescription-Components-DataStructureComponent"/>
32 </generalization>
33</packagedElement>
Fragment for the class ContextualComponent (entire XML Schema)
1<xs:element name="ContextualComponent"
2 type="ContextualComponentXsdType"
3 xml:id="ContextualComponent">
4 <!-- based on the UML class DDICDIModels::DDICDILibrary::Classes::DataDescription::KeyValue::ContextualComponent -->
5 <xs:annotation>
6 <xs:documentation>Definition
7 ============
8 Encapsulates contextual information of the key-value datastore to provide a scope to the instance key. The instance key is unique within the scope.
9
10 Examples
11 ==========
12 A partition, cluster name and any other key-value datastore organization information.
13
14 Explanatory notes
15 ===================
16 A key-value datastore can be organized into multiple contextual components.
17 Other data structure components that are part of the instance key, e.g. identifier and dimension components, guarantee uniqueness only within the scope of a contextual component.
18 Synthetic id components do guarantee global uniqueness, but they might complex to setup and maintain in many organizations.
19 Contextual components provide a simple mechanism to achieve uniqueness within a single key-value datastore.
20 When a key-value datastore is organized in contextual components, a contextual component prefix is added to the instance key to make it unique across the entire key-value datastore.</xs:documentation>
21 </xs:annotation>
22</xs:element>
23<xs:complexType name="ContextualComponentXsdType"
24 xml:id="ContextualComponentXsdType">
25 <xs:annotation>
26 <xs:documentation>Definition
27 ============
28 Encapsulates contextual information of the key-value datastore to provide a scope to the instance key. The instance key is unique within the scope.
29
30 Examples
31 ==========
32 A partition, cluster name and any other key-value datastore organization information.
33
34 Explanatory notes
35 ===================
36 A key-value datastore can be organized into multiple contextual components.
37 Other data structure components that are part of the instance key, e.g. identifier and dimension components, guarantee uniqueness only within the scope of a contextual component.
38 Synthetic id components do guarantee global uniqueness, but they might complex to setup and maintain in many organizations.
39 Contextual components provide a simple mechanism to achieve uniqueness within a single key-value datastore.
40 When a key-value datastore is organized in contextual components, a contextual component prefix is added to the instance key to make it unique across the entire key-value datastore.</xs:documentation>
41 </xs:annotation>
42 <xs:complexContent>
43 <xs:extension base="DataStructureComponentXsdType">
44
45 </xs:extension>
46 </xs:complexContent>
47</xs:complexType>
Fragment for the class ContextualComponent (entire JSON Schema)
1"cls-ContextualComponent": {
2 "description": "http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/ContextualComponent",
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": "ContextualComponent"
14 },
15 "identifier": {
16 "$comment": "cardinality 0..1 – from cdi:DataStructureComponent",
17 "$ref": "#/defs/dt-Identifier"
18 },
19 "semantic": {
20 "$comment": "cardinality 0..-1 – from cdi:DataStructureComponent",
21 "if": { "type": "array" },
22 "then": { "items": { "$ref": "#/defs/dt-PairedControlledVocabularyEntry" } },
23 "else": { "$ref": "#/defs/dt-PairedControlledVocabularyEntry" }
24 },
25 "specialization": {
26 "$comment": "cardinality 0..1 – from cdi:DataStructureComponent",
27 "$ref": "#/defs/dt-SpecializationRole"
28 },
29 "isDefinedBy_RepresentedVariable": {
30 "description": "DataStructureComponent_isDefinedBy_RepresentedVariable",
31 "$comment": "cardinality 0..1",
32 "$ref": "#/defs/target-RepresentedVariable"
33 },
34 "correspondsTo_DataStructureComponent_OF_DataPoint": {
35 "description": "DataPoint_correspondsTo_DataStructureComponent",
36 "$comment": "cardinality 0..-1",
37 "anyOf": [
38 {
39 "$ref": "#/defs/target-DataPoint"
40 },
41 {
42 "type": "array",
43 "items": {
44 "$ref": "#/defs/target-DataPoint"
45 }
46 }
47 ]
48 },
49 "has_DataStructureComponent_OF_DataStructure": {
50 "description": "DataStructure_has_DataStructureComponent",
51 "$comment": "cardinality 0..1",
52 "$ref": "#/defs/target-DataStructure"
53 },
54 "isBasedOn_OF_KeyMember": {
55 "description": "KeyMember_isBasedOn_DataStructureComponent",
56 "$comment": "cardinality 0..-1",
57 "anyOf": [
58 {
59 "$ref": "#/defs/target-KeyMember"
60 },
61 {
62 "type": "array",
63 "items": {
64 "$ref": "#/defs/target-KeyMember"
65 }
66 }
67 ]
68 },
69 "qualifies_OF_AttributeComponent": {
70 "description": "AttributeComponent_qualifies_DataStructureComponent",
71 "$comment": "cardinality 0..-1",
72 "anyOf": [
73 {
74 "$ref": "#/defs/target-AttributeComponent"
75 },
76 {
77 "type": "array",
78 "items": {
79 "$ref": "#/defs/target-AttributeComponent"
80 }
81 }
82 ]
83 },
84 "indexes_OF_ComponentPosition": {
85 "description": "ComponentPosition_indexes_DataStructureComponent",
86 "$comment": "cardinality 0..-1",
87 "anyOf": [
88 {
89 "$ref": "#/defs/target-ComponentPosition"
90 },
91 {
92 "type": "array",
93 "items": {
94 "$ref": "#/defs/target-ComponentPosition"
95 }
96 }
97 ]
98 },
99 "correspondsTo_DataStructureComponent_OF_ForeignKeyComponent": {
100 "description": "ForeignKeyComponent_correspondsTo_DataStructureComponent",
101 "$comment": "cardinality 0..1",
102 "$ref": "#/defs/target-ForeignKeyComponent"
103 },
104 "correspondsTo_DataStructureComponent_OF_PrimaryKeyComponent": {
105 "description": "PrimaryKeyComponent_correspondsTo_DataStructureComponent",
106 "$comment": "cardinality 0..1",
107 "$ref": "#/defs/target-PrimaryKeyComponent"
108 },
109 "sameAs": {
110 "$ref": "#/defs/owl:sameAs"
111 }
112 },
113 "required": ["@type"],
114 "additionalProperties": false
115},
116"target-ContextualComponent": {
117 "description": "all subclasses of http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/ContextualComponent",
118 "anyOf": [
119 { "$ref": "#/defs/cls-ContextualComponent" },
120 { "type": "string", "format": "iri-reference" }
121 ]
122},
Fragment for the class ContextualComponent (main ontology)
1# class ContextualComponent
2# based on the UML class DDICDIModels::DDICDILibrary::Classes::DataDescription::KeyValue::ContextualComponent
3cdi:ContextualComponent
4 a rdfs:Class, owl:Class, ucmis:Class;
5 rdfs:label "ContextualComponent";
6 rdfs:comment "Definition\n============\nEncapsulates contextual information of the key-value datastore to provide a scope to the instance key. The instance key is unique within the scope.\n\nExamples\n==========\nA partition, cluster name and any other key-value datastore organization information. \n\nExplanatory notes\n===================\nA key-value datastore can be organized into multiple contextual components. \nOther data structure components that are part of the instance key, e.g. identifier and dimension components, guarantee uniqueness only within the scope of a contextual component. \nSynthetic id components do guarantee global uniqueness, but they might complex to setup and maintain in many organizations. \nContextual components provide a simple mechanism to achieve uniqueness within a single key-value datastore. \nWhen a key-value datastore is organized in contextual components, a contextual component prefix is added to the instance key to make it unique across the entire key-value datastore."@en;
7 rdfs:subClassOf cdi:DataStructureComponent;
8.
Fragment for the class ContextualComponent (entire JSON-LD)
1{
2 "@context": [
3 "DataStructureComponent.jsonld",
4 {
5 "cdi": "http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/",
6 "xsd": "http://www.w3.org/2001/XMLSchema#",
7
8
9 " comment ": "tag:json-should-support-trailing-commas"
10 }
11 ],
12 "generatedBy": "This code was generated by the Eclipse Acceleo project UCMIS M2T on 2025-08-29 14:34:50.",
13 "basedOn": "based on the UML data type DDICDIModels::DDICDILibrary::Classes::DataDescription::KeyValue::ContextualComponent"
14}
Fragment for the class ContextualComponent (entire SHACL - Shapes Constraint Language)
1# class ContextualComponent
2# based on the UML class DDICDIModels::DDICDILibrary::Classes::DataDescription::KeyValue::ContextualComponent
3<#ContextualComponent> a sh:NodeShape;
4 sh:targetClass cdi:ContextualComponent;
5 sh:message "See http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/ContextualComponent";
6 sh:closed true;
7 sh:ignoredProperties ( owl:sameAs );
8 sh:property [
9 sh:path rdf:type;
10 sh:in ( cdi:ContextualComponent
11 ) ;
12 ];
13 # attributes
14 # associations from ContextualComponent
15 # associations to ContextualComponent
16
17 # ---- superclass: DataStructureComponent
18 # attributes
19 sh:property <#DataStructureComponent-identifier>;
20 sh:property <#DataStructureComponent-semantic>;
21 sh:property <#DataStructureComponent-specialization>;
22 # associations from DataStructureComponent
23 sh:property <#DataStructureComponent_isDefinedBy_RepresentedVariable>;
24 # associations to DataStructureComponent
25 sh:property <#rev_DataPoint_correspondsTo_DataStructureComponent>;
26 sh:property <#rev_DataStructure_has_DataStructureComponent>;
27 sh:property <#rev_KeyMember_isBasedOn_DataStructureComponent>;
28 sh:property <#rev_AttributeComponent_qualifies_DataStructureComponent>;
29 sh:property <#rev_ComponentPosition_indexes_DataStructureComponent>;
30 sh:property <#rev_ForeignKeyComponent_correspondsTo_DataStructureComponent>;
31 sh:property <#rev_PrimaryKeyComponent_correspondsTo_DataStructureComponent>;
32
33
34
35
36
37.
Fragment for the class ContextualComponent (entire ShEx - Shape Expressions)
1# class ContextualComponent
2# based on the UML class DDICDIModels::DDICDILibrary::Classes::DataDescription::KeyValue::ContextualComponent
3cdi:ContextualComponentShape CLOSED {
4 a [cdi:ContextualComponent];
5 &cdi:DataStructureComponentProperties;
6 }