DateRange

Fully qualified datatype name: 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

Attributes

Name

Inherited from

Description

Data Type

Multiplicity

Default value

endDate

- own datatype -

The date (time) designating the end of the period or range.

CombinedDate

0..1

startDate

- own datatype -

The date (time) designating the beginning of the period or range.

CombinedDate

0..1

Usage

Type

Package

Classifier

Attribute

Class

Agents

AgentRelationship

effectiveDates

Class

Agents

AgentStructure

effectiveDates

Class

Conceptual

ConceptMap

validDates

Class

Conceptual

Population

timePeriodOfPopulation

Class

Representations

ClassificationIndexEntry

validDates

Class

Representations

ClassificationItem

validDates

Class

Representations

CorrespondenceTable

effectiveDates

Class

Representations

LevelStructure

validDateRange

Class

Representations

StatisticalClassification

validDates

DataType

StructuredDataTypes

Address

effectiveDates

DataType

StructuredDataTypes

ElectronicMessageSystem

effectiveDates

DataType

StructuredDataTypes

Email

effectiveDates

DataType

StructuredDataTypes

EmbargoInformation

period

DataType

StructuredDataTypes

IndividualName

effectiveDates

DataType

StructuredDataTypes

LabelForDisplay

validDates

DataType

StructuredDataTypes

OrganizationName

effectiveDates

DataType

StructuredDataTypes

PrivateImage

effectiveDates

DataType

StructuredDataTypes

Telephone

effectiveDates

DataType

StructuredDataTypes

WebLink

effectiveDates

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 XMI model)

 1<packagedElement xmlns:StandardProfile="http://www.eclipse.org/uml2/5.0.0/UML/Profile/Standard"
 2                 xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML"
 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 (main ontology, entire ontology as zip)

 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 (main JSON-LD entire JSON-LD as zip)

 1{
 2  "@context": [
 3    {
 4      "cdi": "http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/",
 5      "xsd": "http://www.w3.org/2001/XMLSchema#",
 6	  "DateRange": "cdi:DateRange",
 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 2024-09-23 21:53:02.",
22  "basedOn": "based on the UML data type DDICDIModels::DDICDILibrary::DataTypes::StructuredDataTypes::DateRange"
23}