whitefang1993
whitefang1993

Reputation: 1716

Where can I find the descriptions of data types from 'http://www.w3.org/2001/XMLSchema#'

I am using protege to a create semantic model that uses the data types from the namespace http://www.w3.org/2001/XMLSchema#.

When I analyzed the DataType list I saw two types that are more or less the same: http://www.w3.org/2001/XMLSchema#dateTime and the http://www.w3.org/2001/XMLSchema#dateTimeStamp.

enter image description here

So I was determined to find out the differences between them, but the problem is I couldn't find the descriptions/definitions anywhere.

Can anybody give me a link where I can see the document that contains the definitions of these two data types? Or are they not supported anymore?

I navigated to http://www.w3.org/2001/XMLSchema# and to https://www.w3.org/2009/XMLSchema/XMLSchema.xsd but I could not find the definitions.

Upvotes: 0

Views: 1110

Answers (3)

Joshua Taylor
Joshua Taylor

Reputation: 85883

When you wrote up this question, the namespaces, e.g., http://www.w3.org/2001/XMLSchema# became hyperlinks. If you click on that link, i.e., visit http://www.w3.org/2001/XMLSchema#, there are links at the bottom of that page, in the section labeled Normative References, that include:

        W3C XML Schema Definition Language (XSD) 1.1 Part 2: Datatypes

which is the document where the datatypes are defined. For instance, dateTime, and dateTimeStamp. As to the actual differences between them (emphasis added):

3.3.7 dateTime

dateTime represents instants of time, optionally marked with a particular time zone offset. Values representing the same instant but having different time zone offsets are equal but not identical.

3.4.28 dateTimeStamp

The dateTimeStamp datatype is ·derived· from dateTime by giving the value required to its explicitTimezone facet. The result is that all values of dateTimeStamp are required to have explicit time zone offsets and the datatype is totally ordered.

So a dateTime has seven properties, but one of them, the time zone offset, is optional. A dateTimeStamp is like a dateTime, except that the time zone offset is mandatory.

Upvotes: 3

Michael Kay
Michael Kay

Reputation: 163458

The official definitions of the two data types are at

http://www.w3.org/TR/xmlschema11-2/#dateTime

http://www.w3.org/TR/xmlschema11-2/#dateTimeStamp

respectively.

Upvotes: 1

Alex K.
Alex K.

Reputation: 175876

With a dateTime a time zone identifier is optional, DateTimeStamp is derived from this and differs in that the time zone is mandatory.

Upvotes: 0

Related Questions