Open akuckartz opened 9 years ago
I think you mean xsd:dateTime
? xsd
has different types for different date formats, e.g. you must use xsd:date
if you omit the hours, minutes, seconds, xsd:gYear
if you have only a year, and xsd:gYearMonth
if you have a year and a month only.
dcterms:W3CDTF
, on the other hand, is one type for all date expressions, whether it's 2014
, 2014-01
, 2014-01-01
or 2014-01-01T00:00:00Z
. Popolo uses it because it's simpler to have one type.
http://www.w3.org/TR/xmlschema-2/ http://www.w3.org/TR/NOTE-datetime
Thanks, yes, I have corrected the subject.
And thanks a lot for answering my question. I am still having a look at the implications. I am not sure if that would be good, but I suppose that a more restricted xsd
-datatype could be used as range for a subproperty of a property with range dcterms:W3CDTF
. But that unfortunately would make matters significantly more difficult for the non-LD JSON world - which could be resolved by a different serialization for application/json
.
Preliminary resolution: OpenGovLD will use dcterms:W3CDTF
.
Both are based on ISO 8601. How are they different? Which one is better? (Maybe both have their place in the specification?)
Popolo currently uses W3CDTF.