Parsing "18." in SPARQL

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 UTC