RDF does not limit what datatypes can be used for the Literals:
Also SPARQL makes a mention of which datatypes to handle:
Should we, in the spec, talk about what datatypes MUST be supported for comparison when implementing one of the generic comparison relations such as the tree:GreaterThanRelation?
At this moment we just refer to the SPARQL spec.