TimeRole#

Fully qualified datatype name of the UML model DDI-CDI 1.0: DDICDIModels::DDICDILibrary::DataTypes::StructuredDataTypes::TimeRole

Definition#

Time-specific role given to a represented variable in the context of a data structure. The specific characterization of the role (e.g. event, valid, transaction, reference, etc.) may be given by a controlled vocabulary.

Diagram#

Diagram

Inheritance#

Inheritance
  ᐊ── StructuredDataTypes::TimeRole

Attributes#

Attributes
Attributes#

Name

Inherited from

Description

Data Type

Multiplicity

Default value

time

- own datatype -

Holds a value from an external controlled vocabulary defining the time role.

ControlledVocabularyEntry

0..1

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 data type TimeRole (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-DataTypes-StructuredDataTypes-TimeRole"
 5                  xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#TimeRole"
 6                  xmi:type="uml:DataType">
 7   <ownedComment xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-TimeRole-ownedComment"
 8                  xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#TimeRole-ownedComment"
 9                  xmi:type="uml:Comment">
10      <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-TimeRole"/>
11      <body>Definition
12============
13Time-specific role given to a represented variable in the context of a data structure. The specific characterization of the role (e.g. event, valid, transaction, reference, etc.) may be given by a controlled vocabulary.</body>
14   </ownedComment>
15   <name>TimeRole</name>
16   <generalization xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-TimeRole-generalization"
17                    xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#TimeRole-generalization"
18                    xmi:type="uml:Generalization">
19      <general xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-SpecializationRole"/>
20   </generalization>
21   <ownedAttribute xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-TimeRole-time"
22                    xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#TimeRole-time"
23                    xmi:type="uml:Property">
24      <ownedComment xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-TimeRole-time-ownedComment"
25                     xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#TimeRole-time-ownedComment"
26                     xmi:type="uml:Comment">
27         <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-TimeRole-time"/>
28         <body>Holds a value from an external controlled vocabulary defining the time role.</body>
29      </ownedComment>
30      <lowerValue xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-TimeRole-time-lowerValue"
31                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#TimeRole-time-lowerValue"
32                   xmi:type="uml:LiteralInteger"/>
33      <upperValue xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-TimeRole-time-upperValue"
34                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#TimeRole-time-upperValue"
35                   xmi:type="uml:LiteralUnlimitedNatural">
36         <value>1</value>
37      </upperValue>
38      <name>time</name>
39      <type xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-ControlledVocabularyEntry"/>
40   </ownedAttribute>
41</packagedElement>

Fragment for the data type TimeRole (entire XML Schema)

 1<xs:element name="TimeRole"
 2            type="TimeRoleXsdType"
 3            xml:id="TimeRole">
 4  <!-- based on the UML data type DDICDIModels::DDICDILibrary::DataTypes::StructuredDataTypes::TimeRole -->
 5  <xs:annotation>
 6    <xs:documentation>Definition
 7          ============
 8          Time-specific role given to a represented variable in the context of a data structure. The specific characterization of the role (e.g. event, valid, transaction, reference, etc.) may be given by a controlled vocabulary.</xs:documentation>
 9  </xs:annotation>
10</xs:element>
11<xs:complexType name="TimeRoleXsdType"
12                xml:id="TimeRoleXsdType">
13  <xs:annotation>
14    <xs:documentation>Definition
15          ============
16          Time-specific role given to a represented variable in the context of a data structure. The specific characterization of the role (e.g. event, valid, transaction, reference, etc.) may be given by a controlled vocabulary.</xs:documentation>
17  </xs:annotation>
18  <xs:complexContent>
19    <xs:extension base="SpecializationRoleXsdType">
20      <xs:sequence>
21        <xs:element name="time"
22                    type="ControlledVocabularyEntryXsdType"
23                    minOccurs="0"
24                    maxOccurs="1"
25                    xml:id="TimeRole-time">
26          <xs:annotation>
27            <xs:documentation>Holds a value from an external controlled vocabulary defining the time role.</xs:documentation>
28          </xs:annotation>
29        </xs:element>
30      </xs:sequence>
31    </xs:extension>
32  </xs:complexContent>
33</xs:complexType>

Fragment for the data type TimeRole (entire JSON Schema)

 1"dt-TimeRole": {
 2  "description": "http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/TimeRole",
 3  "type": ["object"],
 4  "properties": {
 5    "time": {
 6      "$comment": "cardinality 0..1 – from cdi:TimeRole",
 7      "$ref": "#/defs/dt-ControlledVocabularyEntry"
 8    },
 9    "@type": {
10      "const": "TimeRole"
11    }
12  },
13  "required": ["@type"],
14  "additionalProperties": false
15},

Fragment for the data type TimeRole (main ontology)

 1# datatype TimeRole
 2# based on the UML data type DDICDIModels::DDICDILibrary::DataTypes::StructuredDataTypes::TimeRole
 3cdi:TimeRole
 4  a rdfs:Class, owl:Class, ucmis:StructuredDataType;
 5  rdfs:label "TimeRole";
 6  rdfs:comment "Definition\n============\nTime-specific role given to a represented variable in the context of a data structure. The specific characterization of the role (e.g. event, valid, transaction, reference, etc.) may be given by a controlled vocabulary."@en;
 7  rdfs:subClassOf cdi:SpecializationRole;
 8  owl:hasKey (cdi:TimeRole-time);
 9.
10
11cdi:TimeRole-time
12  a rdf:Property, owl:ObjectProperty, ucmis:Attribute;
13  rdfs:label "time";
14  rdfs:comment "Holds a value from an external controlled vocabulary defining the time role."@en;
15  rdfs:domain cdi:TimeRole;
16  rdfs:range cdi:ControlledVocabularyEntry;
17.

Fragment for the data type TimeRole (entire JSON-LD)

 1{
 2  "@context": [
 3    "SpecializationRole.jsonld",
 4    {
 5      "cdi": "http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/",
 6      "xsd": "http://www.w3.org/2001/XMLSchema#",
 7
 8      "time": {
 9        "@id": "cdi:TimeRole-time",
10        "@type": "@id",
11        "@context": "ControlledVocabularyEntry.jsonld"
12      },
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 2025-08-29 14:34:57.",
18  "basedOn": "based on the UML data type DDICDIModels::DDICDILibrary::DataTypes::StructuredDataTypes::TimeRole"
19}

Fragment for the data type TimeRole (entire SHACL - Shapes Constraint Language)

 1# datatype TimeRole
 2# based on the UML data type DDICDIModels::DDICDILibrary::DataTypes::StructuredDataTypes::TimeRole
 3<#TimeRole> a sh:NodeShape;
 4    sh:targetClass cdi:TimeRole;
 5	sh:message "See http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/TimeRole";
 6	sh:closed true;
 7	sh:ignoredProperties ( owl:sameAs );
 8    sh:property [
 9			sh:path rdf:type;
10			sh:in (   cdi:TimeRole
11			 ) ;
12    ];
13    # attributes
14    sh:property <#TimeRole-time>;
15
16    # ---- superclass: SpecializationRole
17    # attributes
18
19
20
21
22
23.
24
25<#TimeRole-time> a sh:PropertyShape ;
26    sh:path cdi:TimeRole-time;
27    sh:node [ sh:property [ sh:path rdf:type; sh:minCount 1; sh:in (
28        cdi:ControlledVocabularyEntry
29      
30    ) ]];
31    sh:maxCount 1;
32.

Fragment for the data type TimeRole (entire ShEx - Shape Expressions)

1# datatype TimeRole
2# based on the UML data type DDICDIModels::DDICDILibrary::DataTypes::StructuredDataTypes::TimeRole
3cdi:TimeRoleShape CLOSED {
4	a [cdi:TimeRole];
5	cdi:TimeRole-time	@cdi:ControlledVocabularyEntryShape?;
6		&cdi:SpecializationRoleProperties;
7	}