Search code examples
xmlsemantic-webprotegelinked-dataprotege4

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.


Solution

  • 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.