CategoryStatistics#
Fully qualified class name of the UML model DDI-CDI 1.1beta: DDICDIModels::DDICDILibrary::Classes::DataDescription::CategoryStatistics
Definition#
Statistics related to a specific category of an instance variable within a data set.
Examples#
The percentage of females from a demographic data set.
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 |
|||
statistic |
The value of the identified type of statistic. May be repeated to provide unweighted or weighted values and different computation bases. |
0..* |
|||
typeOfStatistic |
Type of summary statistics (e.g. count, mean, mode, median, etc.) or category statistics for the associated instance variable |
0..1 |
Associations#
Associations
Direction |
Association |
Description |
Multiplicity of CategoryStatistics |
Package of Other Class |
Other Class |
Multiplicity of other class |
Aggregation Kind |
Inherited from |
|---|---|---|---|---|---|---|---|---|
from |
Statistics hasWeight InstanceVariable |
0..* |
0..1 |
none |
||||
from |
Statistics has StatisticsCollection |
0..* |
0..1 |
none |
||||
from |
CategoryStatistics for Category |
0..* |
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 CategoryStatistics (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-CategoryStatistics"
5 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#CategoryStatistics"
6 xmi:type="uml:Class">
7 <ownedComment xmi:id="DDICDIModels-DDICDILibrary-Classes-DataDescription-CategoryStatistics-ownedComment"
8 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#CategoryStatistics-ownedComment"
9 xmi:type="uml:Comment">
10 <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-Classes-DataDescription-CategoryStatistics"/>
11 <body>Definition
12============
13Statistics related to a specific category of an instance variable within a data set.
14
15Examples
16==========
17The percentage of females from a demographic data set.
18
19</body>
20 </ownedComment>
21 <name>CategoryStatistics</name>
22 <generalization xmi:id="DDICDIModels-DDICDILibrary-Classes-DataDescription-CategoryStatistics-generalization"
23 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#CategoryStatistics-generalization"
24 xmi:type="uml:Generalization">
25 <general xmi:idref="DDICDIModels-DDICDILibrary-Classes-DataDescription-Statistics"/>
26 </generalization>
27 <ownedAttribute xmi:id="DDICDIModels-DDICDILibrary-Classes-DataDescription-CategoryStatistics-ownedAttribute"
28 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#CategoryStatistics-ownedAttribute"
29 xmi:type="uml:Property">
30 <lowerValue xmi:id="DDICDIModels-DDICDILibrary-Classes-DataDescription-CategoryStatistics-ownedAttribute-lowerValue"
31 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#CategoryStatistics-ownedAttribute-lowerValue"
32 xmi:type="uml:LiteralInteger"/>
33 <upperValue xmi:id="DDICDIModels-DDICDILibrary-Classes-DataDescription-CategoryStatistics-ownedAttribute-upperValue"
34 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#CategoryStatistics-ownedAttribute-upperValue"
35 xmi:type="uml:LiteralUnlimitedNatural">
36 <value>1</value>
37 </upperValue>
38 <association xmi:idref="DDICDIModels-DDICDILibrary-Classes-Conceptual-CategoryStatistics_for_Category"/>
39 <type xmi:idref="DDICDIModels-DDICDILibrary-Classes-Conceptual-Category"/>
40 </ownedAttribute>
41</packagedElement>
Fragment for the class CategoryStatistics (entire XML Schema)
1<xs:element name="CategoryStatistics"
2 type="CategoryStatisticsXsdType"
3 xml:id="CategoryStatistics">
4 <!-- based on the UML class DDICDIModels::DDICDILibrary::Classes::DataDescription::CategoryStatistics -->
5 <xs:annotation>
6 <xs:documentation>Definition
7 ============
8 Statistics related to a specific category of an instance variable within a data set.
9
10 Examples
11 ==========
12 The percentage of females from a demographic data set.</xs:documentation>
13 </xs:annotation>
14</xs:element>
15<xs:complexType name="CategoryStatisticsXsdType"
16 xml:id="CategoryStatisticsXsdType">
17 <xs:annotation>
18 <xs:documentation>Definition
19 ============
20 Statistics related to a specific category of an instance variable within a data set.
21
22 Examples
23 ==========
24 The percentage of females from a demographic data set.</xs:documentation>
25 </xs:annotation>
26 <xs:complexContent>
27 <xs:extension base="StatisticsXsdType">
28 <xs:sequence>
29 <xs:element name="CategoryStatistics_for_Category"
30 minOccurs="0"
31 maxOccurs="1"
32 xml:id="CategoryStatistics_for_Category">
33 <xs:annotation>
34 <xs:documentation></xs:documentation>
35 </xs:annotation>
36 <xs:complexType>
37 <xs:complexContent>
38 <xs:restriction base="AssociationReferenceXsdType">
39 <xs:sequence>
40 <xs:element name="ddiReference"
41 type="InternationalRegistrationDataIdentifierXsdType"
42 minOccurs="0"
43 maxOccurs="1"
44 xml:id="CategoryStatistics_for_Category-ddiReference"/>
45 <xs:element name="validType"
46 minOccurs="0"
47 maxOccurs="unbounded"
48 xml:id="CategoryStatistics_for_Category-validType">
49 <xs:simpleType>
50 <xs:restriction base="xs:NMTOKEN">
51 <xs:enumeration value="Category"/>
52 </xs:restriction>
53 </xs:simpleType>
54 </xs:element>
55 </xs:sequence>
56 </xs:restriction>
57 </xs:complexContent>
58 </xs:complexType>
59 </xs:element>
60 </xs:sequence>
61 </xs:extension>
62 </xs:complexContent>
63</xs:complexType>
Fragment for the class CategoryStatistics (entire JSON Schema)
1"cls-CategoryStatistics": {
2 "description": "http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/CategoryStatistics",
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": "CategoryStatistics"
14 },
15 "identifier": {
16 "$comment": "cardinality 0..1 – from cdi:Statistics",
17 "$ref": "#/defs/dt-Identifier"
18 },
19 "statistic": {
20 "$comment": "cardinality 0..-1 – from cdi:Statistics",
21 "if": { "type": "array" },
22 "then": { "items": { "$ref": "#/defs/dt-Statistic" } },
23 "else": { "$ref": "#/defs/dt-Statistic" }
24 },
25 "typeOfStatistic": {
26 "$comment": "cardinality 0..1 – from cdi:Statistics",
27 "$ref": "#/defs/dt-ControlledVocabularyEntry"
28 },
29 "for": {
30 "description": "CategoryStatistics_for_Category",
31 "$comment": "cardinality 0..1",
32 "$ref": "#/defs/target-Category"
33 },
34 "hasWeight": {
35 "description": "Statistics_hasWeight_InstanceVariable",
36 "$comment": "cardinality 0..1",
37 "$ref": "#/defs/target-InstanceVariable"
38 },
39 "has_StatisticsCollection": {
40 "description": "Statistics_has_StatisticsCollection",
41 "$comment": "cardinality 0..1",
42 "$ref": "#/defs/target-StatisticsCollection"
43 },
44
45 "sameAs": {
46 "$ref": "#/defs/owl:sameAs"
47 }
48 },
49 "required": ["@type"],
50 "additionalProperties": false
51},
52"target-CategoryStatistics": {
53 "description": "all subclasses of http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/CategoryStatistics",
54 "anyOf": [
55 { "$ref": "#/defs/cls-CategoryStatistics" },
56 { "type": "string", "format": "iri-reference" }
57 ]
58},
Fragment for the class CategoryStatistics (main ontology)
1# class CategoryStatistics
2# based on the UML class DDICDIModels::DDICDILibrary::Classes::DataDescription::CategoryStatistics
3cdi:CategoryStatistics
4 a rdfs:Class, owl:Class, ucmis:Class;
5 rdfs:label "CategoryStatistics";
6 rdfs:comment "Definition \n============ \nStatistics related to a specific category of an instance variable within a data set. \n\nExamples \n========== \nThe percentage of females from a demographic data set."@en;
7 rdfs:subClassOf cdi:Statistics;
8.
9
10
11cdi:CategoryStatistics_for_Category
12 a rdf:Property, owl:ObjectProperty, ucmis:Association;
13 # ASSOCIATION
14 rdfs:label "for";
15 skos:altLabel "CategoryStatistics_for_Category";
16
17 rdfs:domain cdi:CategoryStatistics;
18 rdfs:range cdi:Category;
19.
Fragment for the class CategoryStatistics (entire JSON-LD)
1{
2 "@context": [
3 "Statistics.jsonld",
4 {
5 "cdi": "http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/",
6 "xsd": "http://www.w3.org/2001/XMLSchema#",
7
8
9 "for": {
10 "@id": "cdi:CategoryStatistics_for_Category",
11 "@type": "@id",
12 "@context": "Category.jsonld"
13 },
14 " comment ": "tag:json-should-support-trailing-commas"
15 }
16 ],
17 "generatedBy": "This code was generated by the Eclipse Acceleo project UCMIS M2T on 2026-04-15 14:38:40.",
18 "basedOn": "based on the UML data type DDICDIModels::DDICDILibrary::Classes::DataDescription::CategoryStatistics"
19}
Fragment for the class CategoryStatistics (entire SHACL - Shapes Constraint Language)
1# class CategoryStatistics
2# based on the UML class DDICDIModels::DDICDILibrary::Classes::DataDescription::CategoryStatistics
3<#CategoryStatistics> a sh:NodeShape;
4 sh:targetClass cdi:CategoryStatistics;
5 sh:message "See http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/CategoryStatistics";
6 sh:closed true;
7 sh:ignoredProperties ( owl:sameAs );
8 sh:property [
9 sh:path rdf:type;
10 sh:in ( cdi:CategoryStatistics
11 ) ;
12 ];
13 # attributes
14 # associations from CategoryStatistics
15 sh:property <#CategoryStatistics_for_Category>;
16 # associations to CategoryStatistics
17
18 # ---- superclass: Statistics
19 # attributes
20 sh:property <#Statistics-identifier>;
21 sh:property <#Statistics-statistic>;
22 sh:property <#Statistics-typeOfStatistic>;
23 # associations from Statistics
24 sh:property <#Statistics_hasWeight_InstanceVariable>;
25 sh:property <#Statistics_has_StatisticsCollection>;
26 # associations to Statistics
27
28
29
30
31
32.
33
34
35<#CategoryStatistics_for_Category> a sh:PropertyShape ;
36 sh:path cdi:CategoryStatistics_for_Category;
37 sh:node [ sh:property [ sh:path rdf:type; sh:minCount 1; sh:in (
38 cdi:Category
39
40 ) ]];
41 sh:maxCount 1;
42.
43<#rev_CategoryStatistics_for_Category> a sh:PropertyShape ;
44 sh:path [ sh:inversePath cdi:CategoryStatistics_for_Category ];
45.
Fragment for the class CategoryStatistics (entire ShEx - Shape Expressions)
1# class CategoryStatistics
2# based on the UML class DDICDIModels::DDICDILibrary::Classes::DataDescription::CategoryStatistics
3cdi:CategoryStatisticsShape CLOSED {
4 a [cdi:CategoryStatistics];
5 cdi:CategoryStatistics_for_Category @cdi:CategoryShape ?;
6
7 &cdi:StatisticsProperties;
8 }