ISSUE-18: How do we parse "18." in Turtle?

Whitespace in Turtle

How do we parse "18." in Turtle?

State:
CLOSED
Product:
RDF Turtle
Raised by:
Opened on:
2011-03-30
Description:
The Turtle grammar doesn't forbid statements like:

<#me> <#age> 28.

However, this is not so clear. It says that a decimal is (among others)

[0-9]+ '.' [0-9]*

so, "18." is decimal. Then, it says:

White space (production ws) is used to separate two tokens which would
otherwise be (mis-)recognized as one token.



Related Actions Items:
No related actions
Related emails:
  1. Re: Turtle and decimals (from gavin@carothers.name on 2012-06-13)
  2. Re: PN_LOCAL_ESC (from gavin@carothers.name on 2012-06-13)
  3. PN_LOCAL_ESC (from andy.seaborne@epimorphics.com on 2012-06-13)
  4. Turtle and decimals (from andy.seaborne@epimorphics.com on 2012-06-12)
  5. Re: Turtle and SPARQL 1.1 last call (from andy.seaborne@epimorphics.com on 2011-04-20)
  6. Turtle and SPARQL 1.1 last call (from andy.seaborne@epimorphics.com on 2011-04-20)
  7. Re: Comments on this afternoon session on Turtle (from lee@thefigtrees.net on 2011-04-14)
  8. Re: Comments on this afternoon session on Turtle (from eric@w3.org on 2011-04-14)
  9. Re: Comments on this afternoon session on Turtle (from lee@thefigtrees.net on 2011-04-14)
  10. Comments on this afternoon session on Turtle (from antoine.zimmermann@deri.org on 2011-04-14)
  11. Re: ISSUE-18: How do we parse '18.' in Turtle? (from david.wood@talis.com on 2011-04-01)
  12. Re: ISSUE-18: How do we parse '18.' in Turtle? (from sandro@w3.org on 2011-04-01)
  13. Re: ISSUE-18: How do we parse '18.' in Turtle? (from david.wood@talis.com on 2011-04-01)
  14. Re: ISSUE-18: How do we parse '18.' in Turtle? (from andy.seaborne@epimorphics.com on 2011-04-01)
  15. Re: ISSUE-18: How do we parse '18.' in Turtle? (from andy.seaborne@epimorphics.com on 2011-04-01)
  16. Re: ISSUE-18: How do we parse '18.' in Turtle? (from steve.harris@garlik.com on 2011-04-01)
  17. Re: ISSUE-18: How do we parse '18.' in Turtle? (from sandro@w3.org on 2011-03-31)
  18. Re: ISSUE-18: How do we parse '18.' in Turtle? (from alexhall@revelytix.com on 2011-03-30)
  19. Re: ISSUE-18: How do we parse '18.' in Turtle? (from phayes@ihmc.us on 2011-03-30)
  20. Re: ISSUE-18: How do we parse '18.' in Turtle? (from andy.seaborne@epimorphics.com on 2011-03-30)
  21. Re: ISSUE-18: How do we parse '18.' in Turtle? (from pfps@research.bell-labs.com on 2011-03-30)
  22. Re: ISSUE-18: How do we parse '18.' in Turtle? (from andy.seaborne@epimorphics.com on 2011-03-30)
  23. Re: ISSUE-18: How do we parse '18.' in Turtle? (from pfps@research.bell-labs.com on 2011-03-30)
  24. Re: ISSUE-18: How do we parse '18.' in Turtle? (from nathan@webr3.org on 2011-03-30)
  25. Re: ISSUE-18: How do we parse '18.' in Turtle? (from pfps@research.bell-labs.com on 2011-03-30)
  26. Re: ISSUE-18: How do we parse '18.' in Turtle? (from nathan@webr3.org on 2011-03-30)
  27. Re: ISSUE-18: How do we parse '18.' in Turtle? (from phayes@ihmc.us on 2011-03-30)
  28. Re: ISSUE-18: How do we parse '18.' in Turtle? (from andy.seaborne@epimorphics.com on 2011-03-30)
  29. Re: ISSUE-18: How do we parse '18.' in Turtle? (from sandro@w3.org on 2011-03-30)
  30. Re: ISSUE-18: How do we parse '18.' in Turtle? (from nathan@webr3.org on 2011-03-30)
  31. Re: ISSUE-18: How do we parse '18.' in Turtle? (from pfps@research.bell-labs.com on 2011-03-30)
  32. Re: ISSUE-18: How do we parse '18.' in Turtle? (from antoine.zimmermann@insa-lyon.fr on 2011-03-30)
  33. Re: ISSUE-18: How do we parse '18.' in Turtle? (from Yves.Raimond@bbc.co.uk on 2011-03-30)
  34. Re: ISSUE-18: How do we parse '18.' in Turtle? (from nathan@webr3.org on 2011-03-30)
  35. ISSUE-18: How do we parse '18.' in Turtle? (from sysbot+tracker@w3.org on 2011-03-30)

Related notes:

Some Turtle parsers seems to reject this document (e.g. SWI-Prolog), rapper makes a best guess (parsing 18 as an xsd:decimal), but throws a syntax error, and the SemWeb.NET library parses it as an xsd:integer without any errors or warnings. This suggests an ambiguity in the spec.

Yves Raimond, 30 Mar 2011, 15:35:29

Resolution at Amsterdam FTF: close ISSUE-18 by requiring digits after the decimal point, as in "18.0"
http://www.w3.org/2011/rdf-wg/meeting/2011-04-13#resolution_2

Guus Schreiber, 26 Apr 2011, 20:43:27

Display change log ATOM feed


Guus Schreiber <guus.schreiber@vu.nl>, Chair, Ivan Herman <ivan@w3.org>, Sandro Hawke <sandro@w3.org>, Staff Contacts
Tracker: documentation, (configuration for this group), originally developed by Dean Jackson, is developed and maintained by the Systems Team <w3t-sys@w3.org>.
$Id: 18.html,v 1.1 2014-07-09 12:17:59 carine Exp $