DateRange#
Fully qualified datatype name of the UML model DDI-CDI 1.0: DDICDIModels::DDICDILibrary::DataTypes::StructuredDataTypes::DateRange
Definition#
Expresses a date/time range using a start date and end date (both with the structure of Date and supporting the use of ISO and non-ISO date structures). Use in all locations where a range of dates is required, i.e. validFor, embargoPeriod, collectionPeriod, etc.
Diagram#
Diagram
Attributes#
Attributes
Name |
Inherited from |
Description |
Data Type |
Multiplicity |
Default value |
|---|---|---|---|---|---|
endDate |
- own datatype - |
The date (time) designating the end of the period or range. |
0..1 |
||
startDate |
- own datatype - |
The date (time) designating the beginning of the period or range. |
0..1 |
Usage#
Usage
Type |
Package |
Classifier |
Attribute |
|---|---|---|---|
Class |
Agents |
effectiveDates |
|
Class |
Agents |
effectiveDates |
|
Class |
Conceptual |
validDates |
|
Class |
Conceptual |
timePeriodOfPopulation |
|
Class |
Representations |
validDates |
|
Class |
Representations |
validDates |
|
Class |
Representations |
effectiveDates |
|
Class |
Representations |
validDateRange |
|
Class |
Representations |
validDates |
|
DataType |
StructuredDataTypes |
effectiveDates |
|
DataType |
StructuredDataTypes |
effectiveDates |
|
DataType |
StructuredDataTypes |
effectiveDates |
|
DataType |
StructuredDataTypes |
period |
|
DataType |
StructuredDataTypes |
effectiveDates |
|
DataType |
StructuredDataTypes |
validDates |
|
DataType |
StructuredDataTypes |
effectiveDates |
|
DataType |
StructuredDataTypes |
effectiveDates |
|
DataType |
StructuredDataTypes |
effectiveDates |
|
DataType |
StructuredDataTypes |
effectiveDates |
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 DateRange (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-DateRange"
5 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#DateRange"
6 xmi:type="uml:DataType">
7 <ownedComment xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-DateRange-ownedComment"
8 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#DateRange-ownedComment"
9 xmi:type="uml:Comment">
10 <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-DateRange"/>
11 <body>Definition
12============
13Expresses a date/time range using a start date and end date (both with the structure of Date and supporting the use of ISO and non-ISO date structures). Use in all locations where a range of dates is required, i.e. validFor, embargoPeriod, collectionPeriod, etc.</body>
14 </ownedComment>
15 <name>DateRange</name>
16 <ownedAttribute xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-DateRange-endDate"
17 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#DateRange-endDate"
18 xmi:type="uml:Property">
19 <ownedComment xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-DateRange-endDate-ownedComment"
20 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#DateRange-endDate-ownedComment"
21 xmi:type="uml:Comment">
22 <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-DateRange-endDate"/>
23 <body>The date (time) designating the end of the period or range.</body>
24 </ownedComment>
25 <lowerValue xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-DateRange-endDate-lowerValue"
26 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#DateRange-endDate-lowerValue"
27 xmi:type="uml:LiteralInteger"/>
28 <upperValue xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-DateRange-endDate-upperValue"
29 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#DateRange-endDate-upperValue"
30 xmi:type="uml:LiteralUnlimitedNatural">
31 <value>1</value>
32 </upperValue>
33 <name>endDate</name>
34 <type xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-CombinedDate"/>
35 </ownedAttribute>
36 <ownedAttribute xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-DateRange-startDate"
37 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#DateRange-startDate"
38 xmi:type="uml:Property">
39 <ownedComment xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-DateRange-startDate-ownedComment"
40 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#DateRange-startDate-ownedComment"
41 xmi:type="uml:Comment">
42 <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-DateRange-startDate"/>
43 <body>The date (time) designating the beginning of the period or range.</body>
44 </ownedComment>
45 <lowerValue xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-DateRange-startDate-lowerValue"
46 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#DateRange-startDate-lowerValue"
47 xmi:type="uml:LiteralInteger"/>
48 <upperValue xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-DateRange-startDate-upperValue"
49 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#DateRange-startDate-upperValue"
50 xmi:type="uml:LiteralUnlimitedNatural">
51 <value>1</value>
52 </upperValue>
53 <name>startDate</name>
54 <type xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-CombinedDate"/>
55 </ownedAttribute>
56</packagedElement>
Fragment for the data type DateRange (entire XML Schema)
1<xs:element name="DateRange"
2 type="DateRangeXsdType"
3 xml:id="DateRange">
4 <!-- based on the UML data type DDICDIModels::DDICDILibrary::DataTypes::StructuredDataTypes::DateRange -->
5 <xs:annotation>
6 <xs:documentation>Definition
7 ============
8 Expresses a date/time range using a start date and end date (both with the structure of Date and supporting the use of ISO and non-ISO date structures). Use in all locations where a range of dates is required, i.e. validFor, embargoPeriod, collectionPeriod, etc.</xs:documentation>
9 </xs:annotation>
10</xs:element>
11<xs:complexType name="DateRangeXsdType"
12 xml:id="DateRangeXsdType">
13 <xs:annotation>
14 <xs:documentation>Definition
15 ============
16 Expresses a date/time range using a start date and end date (both with the structure of Date and supporting the use of ISO and non-ISO date structures). Use in all locations where a range of dates is required, i.e. validFor, embargoPeriod, collectionPeriod, etc.</xs:documentation>
17 </xs:annotation>
18 <xs:sequence>
19 <xs:element name="endDate"
20 type="CombinedDateXsdType"
21 minOccurs="0"
22 maxOccurs="1"
23 xml:id="DateRange-endDate">
24 <xs:annotation>
25 <xs:documentation>The date (time) designating the end of the period or range.</xs:documentation>
26 </xs:annotation>
27 </xs:element>
28 <xs:element name="startDate"
29 type="CombinedDateXsdType"
30 minOccurs="0"
31 maxOccurs="1"
32 xml:id="DateRange-startDate">
33 <xs:annotation>
34 <xs:documentation>The date (time) designating the beginning of the period or range.</xs:documentation>
35 </xs:annotation>
36 </xs:element>
37 </xs:sequence>
38</xs:complexType>
Fragment for the data type DateRange (entire JSON Schema)
1"dt-DateRange": {
2 "description": "http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/DateRange",
3 "type": ["object"],
4 "properties": {
5 "endDate": {
6 "$comment": "cardinality 0..1 – from cdi:DateRange",
7 "$ref": "#/defs/dt-CombinedDate"
8 },
9 "startDate": {
10 "$comment": "cardinality 0..1 – from cdi:DateRange",
11 "$ref": "#/defs/dt-CombinedDate"
12 },
13 "@type": {
14 "const": "DateRange"
15 }
16 },
17 "required": ["@type"],
18 "additionalProperties": false
19},
Fragment for the data type DateRange (main ontology)
1# datatype DateRange
2# based on the UML data type DDICDIModels::DDICDILibrary::DataTypes::StructuredDataTypes::DateRange
3cdi:DateRange
4 a rdfs:Class, owl:Class, ucmis:StructuredDataType;
5 rdfs:label "DateRange";
6 rdfs:comment "Definition\n============\nExpresses a date/time range using a start date and end date (both with the structure of Date and supporting the use of ISO and non-ISO date structures). Use in all locations where a range of dates is required, i.e. validFor, embargoPeriod, collectionPeriod, etc."@en;
7
8 owl:hasKey (cdi:DateRange-endDate cdi:DateRange-startDate);
9.
10
11cdi:DateRange-endDate
12 a rdf:Property, owl:ObjectProperty, ucmis:Attribute;
13 rdfs:label "endDate";
14 rdfs:comment "The date (time) designating the end of the period or range."@en;
15 rdfs:domain cdi:DateRange;
16 rdfs:range cdi:CombinedDate;
17.
18
19cdi:DateRange-startDate
20 a rdf:Property, owl:ObjectProperty, ucmis:Attribute;
21 rdfs:label "startDate";
22 rdfs:comment "The date (time) designating the beginning of the period or range."@en;
23 rdfs:domain cdi:DateRange;
24 rdfs:range cdi:CombinedDate;
25.
Fragment for the data type DateRange (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 "endDate": {
8 "@id": "cdi:DateRange-endDate",
9 "@type": "@id",
10 "@context": "CombinedDate.jsonld"
11 },
12 "startDate": {
13 "@id": "cdi:DateRange-startDate",
14 "@type": "@id",
15 "@context": "CombinedDate.jsonld"
16 },
17
18 " comment ": "tag:json-should-support-trailing-commas"
19 }
20 ],
21 "generatedBy": "This code was generated by the Eclipse Acceleo project UCMIS M2T on 2025-08-29 14:34:56.",
22 "basedOn": "based on the UML data type DDICDIModels::DDICDILibrary::DataTypes::StructuredDataTypes::DateRange"
23}
Fragment for the data type DateRange (entire SHACL - Shapes Constraint Language)
1# datatype DateRange
2# based on the UML data type DDICDIModels::DDICDILibrary::DataTypes::StructuredDataTypes::DateRange
3<#DateRange> a sh:NodeShape;
4 sh:targetClass cdi:DateRange;
5 sh:message "See http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/DateRange";
6 sh:closed true;
7 sh:ignoredProperties ( owl:sameAs );
8 sh:property [
9 sh:path rdf:type;
10 sh:in ( cdi:DateRange
11 ) ;
12 ];
13 # attributes
14 sh:property <#DateRange-endDate>;
15 sh:property <#DateRange-startDate>;
16
17
18
19.
20
21<#DateRange-endDate> a sh:PropertyShape ;
22 sh:path cdi:DateRange-endDate;
23 sh:node [ sh:property [ sh:path rdf:type; sh:minCount 1; sh:in (
24 cdi:CombinedDate
25
26 ) ]];
27 sh:maxCount 1;
28.
29<#DateRange-startDate> a sh:PropertyShape ;
30 sh:path cdi:DateRange-startDate;
31 sh:node [ sh:property [ sh:path rdf:type; sh:minCount 1; sh:in (
32 cdi:CombinedDate
33
34 ) ]];
35 sh:maxCount 1;
36.
Fragment for the data type DateRange (entire ShEx - Shape Expressions)
1# datatype DateRange
2# based on the UML data type DDICDIModels::DDICDILibrary::DataTypes::StructuredDataTypes::DateRange
3cdi:DateRangeShape CLOSED {
4 a [cdi:DateRange];
5 cdi:DateRange-endDate @cdi:CombinedDateShape?;
6 cdi:DateRange-startDate @cdi:CombinedDateShape?;
7 }