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 |
|---|---|---|---|---|
| xsd:anyURI | ✓ | ✓ | ✓ | |
| xsd:base64Binary | ✓ | ✓ | ✓ | |
| xsd:boolean | ✓ | ✓ | ✓ | ✓ |
| xsd:byte | ✓ | ✓ | ✓ | ✓ |
| xsd:date | ✓ | ✓ | ✓ | |
| xsd:dateTime | ✓ | ✓ | ✓ | ✓ |
| xsd:dateTimeStamp * | ✓ | ✓ | ||
| xsd:dayTimeDuration * | ✓ | |||
| 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
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?
