Difference between revisions of "XSD Datatypes"

From RDF Working Group Wiki
Jump to: navigation, search
(Created page with "This table lists the XSD datatypes present in the datatype maps defined for RDF, OWL, and SPARQL. {| border="1" ! Datatype ! RDF ! OWL2 ! SPARQL |- | xsd:anyURI | ✓ | ✓ | |-…")
 
Line 1: Line 1:
This table lists the XSD datatypes present in the datatype maps defined for RDF, OWL, and SPARQL.
+
This table lists the XSD datatypes present in the datatype maps defined for RDF, OWL, SPARQL, and RIF.
  
{| border="1"
+
{| border="1" cellpadding="4"
 
! Datatype
 
! Datatype
 
! RDF
 
! RDF
 
! OWL2
 
! OWL2
 
! SPARQL
 
! SPARQL
 +
! RIF
 
|-
 
|-
 
| xsd:anyURI
 
| xsd:anyURI
Line 11: Line 12:
 
| ✓
 
| ✓
 
|
 
|
 +
| ✓
 
|-
 
|-
 
| xsd:base64Binary
 
| xsd:base64Binary
Line 16: Line 18:
 
| ✓
 
| ✓
 
|
 
|
 +
| ✓
 
|-
 
|-
 
| xsd:boolean
 
| xsd:boolean
 +
| ✓
 
| ✓
 
| ✓
 
| ✓
 
| ✓
Line 23: Line 27:
 
|-
 
|-
 
| xsd:byte
 
| xsd:byte
 +
| ✓
 
| ✓
 
| ✓
 
| ✓
 
| ✓
Line 30: Line 35:
 
| ✓
 
| ✓
 
|
 
|
 +
| ✓
 
| ✓
 
| ✓
 
|-
 
|-
 
| xsd:dateTime
 
| xsd:dateTime
 +
| ✓
 
| ✓
 
| ✓
 
| ✓
 
| ✓
Line 41: Line 48:
 
| ✓
 
| ✓
 
|
 
|
 +
| ✓
 +
|-
 +
| xsd:dayTimeDuration *
 +
|
 +
|
 +
|
 +
| ✓
 
|-
 
|-
 
| xsd:decimal
 
| xsd:decimal
 +
| ✓
 
| ✓
 
| ✓
 
| ✓
 
| ✓
Line 48: Line 63:
 
|-
 
|-
 
| xsd:double
 
| xsd:double
 +
| ✓
 
| ✓
 
| ✓
 
| ✓
 
| ✓
Line 53: Line 69:
 
|-
 
|-
 
| xsd:float
 
| xsd:float
 +
| ✓
 
| ✓
 
| ✓
 
| ✓
 
| ✓
Line 59: Line 76:
 
| xsd:gDay
 
| xsd:gDay
 
| ✓
 
| ✓
 +
|
 
|
 
|
 
|
 
|
Line 64: Line 82:
 
| xsd:gMonth
 
| xsd:gMonth
 
| ✓
 
| ✓
 +
|
 
|
 
|
 
|
 
|
Line 69: Line 88:
 
| xsd:gMonthDay
 
| xsd:gMonthDay
 
| ✓
 
| ✓
 +
|
 
|
 
|
 
|
 
|
Line 74: Line 94:
 
| xsd:gYear
 
| xsd:gYear
 
| ✓
 
| ✓
 +
|
 
|
 
|
 
|
 
|
Line 79: Line 100:
 
| xsd:gYearMonth
 
| xsd:gYearMonth
 
| ✓
 
| ✓
 +
|
 
|
 
|
 
|
 
|
Line 86: Line 108:
 
| ✓
 
| ✓
 
|
 
|
 +
| ✓
 
|-
 
|-
 
| xsd:int
 
| xsd:int
 +
| ✓
 
| ✓
 
| ✓
 
| ✓
 
| ✓
Line 93: Line 117:
 
|-
 
|-
 
| xsd:integer
 
| xsd:integer
 +
| ✓
 
| ✓
 
| ✓
 
| ✓
 
| ✓
Line 101: Line 126:
 
| ✓
 
| ✓
 
|
 
|
 +
| ✓
 
|-
 
|-
 
| xsd:long
 
| xsd:long
 +
| ✓
 
| ✓
 
| ✓
 
| ✓
 
| ✓
Line 111: Line 138:
 
| ✓
 
| ✓
 
|
 
|
 +
| ✓
 
|-
 
|-
 
| xsd:NCName
 
| xsd:NCName
Line 116: Line 144:
 
| ✓
 
| ✓
 
|
 
|
 +
| ✓
 
|-
 
|-
 
| xsd:NMTOKEN
 
| xsd:NMTOKEN
Line 121: Line 150:
 
| ✓
 
| ✓
 
|
 
|
 +
| ✓
 
|-
 
|-
 
| xsd:negativeInteger
 
| xsd:negativeInteger
 +
| ✓
 
| ✓
 
| ✓
 
| ✓
 
| ✓
Line 128: Line 159:
 
|-
 
|-
 
| xsd:nonNegativeInteger
 
| xsd:nonNegativeInteger
 +
| ✓
 
| ✓
 
| ✓
 
| ✓
 
| ✓
Line 133: Line 165:
 
|-
 
|-
 
| xsd:nonPositiveInteger
 
| xsd:nonPositiveInteger
 +
| ✓
 
| ✓
 
| ✓
 
| ✓
 
| ✓
Line 141: Line 174:
 
| ✓
 
| ✓
 
|
 
|
 +
| ✓
 
|-
 
|-
 
| xsd:positiveInteger
 
| xsd:positiveInteger
 +
| ✓
 
| ✓
 
| ✓
 
| ✓
 
| ✓
Line 148: Line 183:
 
|-
 
|-
 
| xsd:short
 
| xsd:short
 +
| ✓
 
| ✓
 
| ✓
 
| ✓
 
| ✓
Line 153: Line 189:
 
|-
 
|-
 
| xsd:string
 
| xsd:string
 +
| ✓
 
| ✓
 
| ✓
 
| ✓
 
| ✓
Line 160: Line 197:
 
| ✓
 
| ✓
 
|
 
|
 +
| ✓
 
| ✓
 
| ✓
 
|-
 
|-
Line 166: Line 204:
 
| ✓
 
| ✓
 
|
 
|
 +
| ✓
 
|-
 
|-
 
| xsd:unsignedByte
 
| xsd:unsignedByte
 +
| ✓
 
| ✓
 
| ✓
 
| ✓
 
| ✓
Line 173: Line 213:
 
|-
 
|-
 
| xsd:unsignedInt
 
| xsd:unsignedInt
 +
| ✓
 
| ✓
 
| ✓
 
| ✓
 
| ✓
Line 178: Line 219:
 
|-
 
|-
 
| xsd:unsignedLong
 
| xsd:unsignedLong
 +
| ✓
 
| ✓
 
| ✓
 
| ✓
 
| ✓
Line 185: Line 227:
 
| ✓
 
| ✓
 
| ✓
 
| ✓
 +
| ✓
 +
| ✓
 +
|-
 +
| xsd:yearMonthDuration *
 +
|
 +
|
 +
|
 
| ✓
 
| ✓
 
|}
 
|}
Line 198: Line 247:
 
* [http://www.w3.org/TR/owl2-rdf-based-semantics/#Datatype_Names OWL2 RDF-Based Semantics]
 
* [http://www.w3.org/TR/owl2-rdf-based-semantics/#Datatype_Names OWL2 RDF-Based Semantics]
 
* [http://www.w3.org/TR/sparql11-entailment/#DEntRegime SPARQL 1.1 Entailment Regimes]
 
* [http://www.w3.org/TR/sparql11-entailment/#DEntRegime SPARQL 1.1 Entailment Regimes]
 +
* [http://www.w3.org/TR/rif-dtb/#Datatypes RIF Datatypes and Built-Ins]

Revision as of 15:48, 9 June 2011

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?

References