CompositeDateTypeTypes

GregorHagedorn - Wed Sep 01 2004 - Version 1.2
Parent topic: SchemaDiscussion
There is a distinct difference between SDD and ABCD's handling of dates with missing or ambiguous parts.

Bob Morris asks: The ABCD Schema seems to claim that its string regular expression produces a proper subset of ISO8601, including as to omitted parts, such as 2004---31 to mean the 31st day of some month in 2004. Is this claim based on actually examining a copy of the published 8601, or rather on one or another of various interpretations of it that are around (and maybe not entirely consistent with each other)? (We may have the example wrong since we didn´t carefully look at the ABCD regular expression and don´t have a copy of 8601 at hand)


ABCD: See http://www.bgbm.org/TDWG/CODATA/Schema/DateTime.htm for ABCDs position. The following is taken from annotations in ABCD.DateTimeISOType inside the schema:

---

UBIF proposal is:

The provide types for composite gregorian calendar date/time (points in time where parts may be missing; following the seven property model described, e. g., in xml Schema 1.1 (http://www.w3.org/TR/2004/WD-xmlschema11-2-20040716/#theSevenPropertyModel).

Instead of gYear, gMonth, gDay integer types with constraining facets are used for two reasons: a) each of them may have a timezone, which may lead to inconsistent data with multiple timezones; b) the lexical representation seems to be occasionally poorly implemented (e.g. where '31', or '---5' are accepted, whereas valid examples are '---31', '---05', and '---05+02:00'). Schema example: <xs:element name"DT" type"CompositeDate"/>. Instance data: <DT day"---31" month"--06--" year"2004Z-02:00"/><!-- gDay dMonth, although gYear should allow a timezone, spy does not validate this --> <DT day"31" month"06" year"2004"/><!-- xs:integer, constraint 1-31, xs:integer, constraint 1-12 -->

In addition to the seven property model additional text attributes for either unsharp additions or complete verbatim dates are added. Note that incomplete dates in most cases are calendar specific and incomplete non-gregorian dates can not be expressed. Furthermore, for complete dates it may be unclear whether a reformed or unreformed date has been used (e.g. in Russia in the 19th century).

-- Main.GregorHagedorn - 1 Sept. 2004