Warning:
This wiki has been archived and is now read-only.
XSD Datatypes
From RDF Working Group Wiki
This table lists the XSD datatypes present in the datatype maps defined for RDF, OWL, SPARQL, and RIF.
Datatype | RDF | OWL2 | SPARQL | RIF | Notes |
---|---|---|---|---|---|
xsd:anyURI | ✓ | ✓ | ✓ | ||
xsd:base64Binary | ✓ | ✓ | ✓ | ||
xsd:boolean | ✓ | ✓ | ✓ | ✓ | |
xsd:byte | ✓ | ✓ | ✓ | ✓ | |
xsd:date | ✓ | ✓ | ✓ | ||
xsd:dateTime | ✓ | ✓ | ✓ | ✓ | |
xsd:dateTimeStamp | ✓ | ✓ | New in XSD 1.1 | ||
xsd:dayTimeDuration | ✓ | New in XSD 1.1 | |||
xsd:decimal | ✓ | ✓ | ✓ | ✓ | |
xsd:double | ✓ | ✓ | ✓ | ✓ | |
xsd:float | ✓ | ✓ | ✓ | ✓ | |
xsd:gDay | ✓ | ||||
xsd:gMonth | ✓ | ||||
xsd:gMonthDay | ✓ | ||||
xsd:gYear | ✓ | ||||
xsd:gYearMonth | ✓ | ||||
xsd:hexBinary | ✓ | ✓ | ✓ | ||
xsd:int | ✓ | ✓ | ✓ | ✓ | |
xsd:integer | ✓ | ✓ | ✓ | ✓ | |
xsd:language | ✓ | ✓ | ✓ | ||
xsd:long | ✓ | ✓ | ✓ | ✓ | |
xsd:Name | ✓ | ✓ | ✓ | ||
xsd:NCName | ✓ | ✓ | ✓ | ||
xsd:NMTOKEN | ✓ | ✓ | ✓ | ||
xsd:negativeInteger | ✓ | ✓ | ✓ | ✓ | |
xsd:nonNegativeInteger | ✓ | ✓ | ✓ | ✓ | |
xsd:nonPositiveInteger | ✓ | ✓ | ✓ | ✓ | |
xsd:normalizedString | ✓ | ✓ | ✓ | ||
xsd:positiveInteger | ✓ | ✓ | ✓ | ✓ | |
xsd:short | ✓ | ✓ | ✓ | ✓ | |
xsd:string | ✓ | ✓ | ✓ | ✓ | |
xsd:time | ✓ | ✓ | ✓ | ||
xsd:token | ✓ | ✓ | ✓ | ||
xsd:unsignedByte | ✓ | ✓ | ✓ | ✓ | |
xsd:unsignedInt | ✓ | ✓ | ✓ | ✓ | |
xsd:unsignedLong | ✓ | ✓ | ✓ | ✓ | |
xsd:unsignedShort | ✓ | ✓ | ✓ | ✓ | |
xsd:yearMonthDuration | ✓ | New in XSD 1.1 | |||
xsd:precisionDecimal | New in XSD 1.1 | ||||
xsd:duration | RDF Semantics notes: “does not have a well-defined value space; this may be corrected in later revisions of XSD” | ||||
xsd:QName | Requires an enclosing XML document context | ||||
xsd:ENTITY | Requires an enclosing XML document context | ||||
xsd:ID | For cross references within an XML document | ||||
xsd:IDREF | For cross references within an XML document | ||||
xsd:NOTATION | Not intended for direct use | ||||
xsd:IDREFS | Sequence-valued; does not fit the RDF datatype model | ||||
xsd:ENTITIES | Sequence-valued; does not fit the RDF datatype model | ||||
xsd:NMTOKENS | Sequence-valued; does not fit the RDF datatype model |
Notes
- xsd:dateTimeStamp is new in XSD 1.1 and referenced by OWL2. Should we update the datatype map defined in RDF Semantics to include it?
- The OWL2 and SPARQL documents both reference XSD 1 but include language to the affect that the references should be considered to references to XSD 1.1 once it becomes a recommendation. Should we do the same?