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

Re: ISSUE: Malformed literals and non-lexical literals

From: Seaborne, Andy <andy.seaborne@hp.com>
Date: Thu, 17 Aug 2006 10:20:49 +0100
Message-ID: <44E434F1.6030703@hp.com>
To: Pat Hayes <phayes@ihmc.us>
CC: Bijan Parsia <bparsia@cs.man.ac.uk>, RDF Data Access Working Group <public-rdf-dawg@w3.org>

Output from ARQ (using the standalone expression evaluator because it explains 
what is going on; ASK queries mask this):

Reformatted for email.

==== Test 1

arq.qexpr "'-5'^^xsd:positiveInteger < 5" ==> error

10:06:46 WARN  NodeValue
     Datatype format exception: "-5"^^xsd:positiveInteger
Exception: Can't compare 
"-5"^^<http://www.w3.org/2001/XMLSchema#positiveInteger> and 5

==== Test 2

arq.qexpr "isLiteral('-5'^^xsd:positiveInteger)" ==> true

10:06:46 WARN  NodeValue
     Datatype format exception: "-5"^^xsd:positiveInteger

The warnings are execution logging warnings and do not affect the results.
It is trying to consider things as one of the understood types/values, and 
falling back to a plain RDF literal (but not it's value).

Testing for valid literals is done with Xerces.

Received on Thursday, 17 August 2006 09:21:31 UTC

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