W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > April to June 2011

Parsing "18." in SPARQL

From: Lee Feigenbaum <lee@thefigtrees.net>
Date: Wed, 13 Apr 2011 08:27:44 -0400
Message-ID: <4DA596C0.10205@thefigtrees.net>
To: SPARQL Working Group <public-rdf-dawg@w3.org>
At the F2F today, the RDF WG resolved that Turtle require digits after a 
decimal point for xsd:decimal's. That is,

:s :p 18.

would parse as the integer 18 and then a period that terminates the 
triple. To write an xsd:decimal, you'll need to write:

:s :p 18.0 .

This is consistent with how XSD defines the canonicalization of 
xsd:decimal's.

SPARQL currently parses "18." as an xsd:decimal. The RDF WG suggests 
that this is a bug in SPARQL.

(The RDF WG issue for this is: 
http://www.w3.org/2011/rdf-wg/track/issues/18 )

Our options:

1) Agree that this was an error in SPARQL 1.0. Make the same change to 
the grammar for SPARQL 1.1. This makes some previously legal queries 
invalid. It also changes the meaning of some queries that were valid 
before and would still be valid now.

2) Decline to make a change. SPARQL triple pattern syntax and Turtle 
syntax will continue to diverge in this particular instance.

3) Ask the RDF WG to reconsider the decision.

Thoughts?

Lee
Received on Wednesday, 13 April 2011 12:28:21 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:15:46 GMT