
Query Languages 281
4. RDF literals
In general, SPARQL do e s not specify how literals of different datatypes
are to be compared. Only for the case where a literal of type xsd:string is
compared to an untyped literal that has the same lexical value, the untyped
literal is defined to be smaller. The order among two unboun d variables, two
blank nodes, or two literals of unknown datatype is also not defined, and
can be different in individual implementations, which might p oss ibly support
additional datatypes for which SPARQL does not prescribe any order. More-
over, it is possible to sort results by more than one variable. In this case, the
order of statements ...