W3C home > Mailing lists > Public > public-rdf-comments@w3.org > July 2012

Turtle parsing - follow up

From: Paul Gearon <pgearon@revelytix.com>
Date: Thu, 19 Jul 2012 11:13:47 -0400
Message-ID: <CAOQ8B2EUD1kRyur_csa46sK=mt-Shw=QX=_y5t9OsVgkn2rBnQ@mail.gmail.com>
To: public-rdf-comments@w3.org

Since Turtle refers to SPARQL using it for TriplesBlock production, I
went there as a comparison.

SPARQL Query 4.1.2 "Syntax for Literals" points out that numbers can
be written directly (without quotes or datatype) as a convenience. The
text points out that the text remains unchanged, which is supported by
the example that is provided:
  1.300, which is the same as "1.300"^^xsd:decimal

So my presumption that canonicalization may be required appears to be incorrect.

Of course, any system that parses RDF may choose to canonicalize its
data. My point is that this is not a test that should be applied to
the parser.

Paul Gearon
Received on Thursday, 19 July 2012 15:14:18 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:59:30 UTC