W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > July to September 2009

RE: Exact format for XML Literals?

From: Seaborne, Andy <andy.seaborne@hp.com>
Date: Mon, 14 Sep 2009 10:18:31 +0000
To: W3C SPARQL Working Group <public-rdf-dawg@w3.org>
Message-ID: <B6CF1054FDC8B845BF93A6645D19BEA3693DEB1DF8@GVW1118EXC.americas.hpqcorp.net>
> So if I have the data as
> <> ex:a "1.00"^^xsd:float .
> then
> ASK WHERE { ?a ex:b "1.0"^^xsd:float . }
> should return false? 

SPARQL says nothing about how the graph is input and stored so the loading process may have turned "1.00"^^xsd:float into "1.0"^^xsd:float which confuses the issue here.

But this not the XMLLiteral issue - both are legal xsd:floats.

Your example has a string of characters that is not in the lexical space of XMLLiteral so "hello"^^xsd:float is a better example.

The XML literal defn says nothing if the supplied characters do not meet the requirement - and the situation is the same as like "<b>"^^rdf:XMLLiteral (unbalanced) or "<b"^^rdf:XMLLiteral (not well formed). 


Received on Monday, 14 September 2009 10:23:58 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:00:57 UTC