On 01/07/14 14:34, Benson Margulies wrote:
I see how to create an untyped literal with a language or a typed
literal without, but not one with both.
Yes - they are exclusive.
This changes slightly in RDF 1.1 (not fully supported yet):
1/ If there is a language tag, the datatype is rdf:langString (no choice).
2/ Plain strings are always xsd:string
The spec of SPARQL 1.1 already assumes this and provides
DATATYPE("foo"@en) as rdf:langString in anticipation of RDF 1.1.
SPARQL 1.0 already had:
DATATYPE("foo") -> xsd:string
Andy