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:
- Re: Turtle and decimals (from gavin@carothers.name on 2012-06-13)
- Re: PN_LOCAL_ESC (from gavin@carothers.name on 2012-06-13)
- PN_LOCAL_ESC (from andy.seaborne@epimorphics.com on 2012-06-13)
- Turtle and decimals (from andy.seaborne@epimorphics.com on 2012-06-12)
- Re: Turtle and SPARQL 1.1 last call (from andy.seaborne@epimorphics.com on 2011-04-20)
- Turtle and SPARQL 1.1 last call (from andy.seaborne@epimorphics.com on 2011-04-20)
- Re: Comments on this afternoon session on Turtle (from lee@thefigtrees.net on 2011-04-14)
- Re: Comments on this afternoon session on Turtle (from eric@w3.org on 2011-04-14)
- Re: Comments on this afternoon session on Turtle (from lee@thefigtrees.net on 2011-04-14)
- Comments on this afternoon session on Turtle (from antoine.zimmermann@deri.org on 2011-04-14)
- Re: ISSUE-18: How do we parse '18.' in Turtle? (from david.wood@talis.com on 2011-04-01)
- Re: ISSUE-18: How do we parse '18.' in Turtle? (from sandro@w3.org on 2011-04-01)
- Re: ISSUE-18: How do we parse '18.' in Turtle? (from david.wood@talis.com on 2011-04-01)
- Re: ISSUE-18: How do we parse '18.' in Turtle? (from andy.seaborne@epimorphics.com on 2011-04-01)
- Re: ISSUE-18: How do we parse '18.' in Turtle? (from andy.seaborne@epimorphics.com on 2011-04-01)
- Re: ISSUE-18: How do we parse '18.' in Turtle? (from steve.harris@garlik.com on 2011-04-01)
- Re: ISSUE-18: How do we parse '18.' in Turtle? (from sandro@w3.org on 2011-03-31)
- Re: ISSUE-18: How do we parse '18.' in Turtle? (from alexhall@revelytix.com on 2011-03-30)
- Re: ISSUE-18: How do we parse '18.' in Turtle? (from phayes@ihmc.us on 2011-03-30)
- Re: ISSUE-18: How do we parse '18.' in Turtle? (from andy.seaborne@epimorphics.com on 2011-03-30)
- Re: ISSUE-18: How do we parse '18.' in Turtle? (from pfps@research.bell-labs.com on 2011-03-30)
- Re: ISSUE-18: How do we parse '18.' in Turtle? (from andy.seaborne@epimorphics.com on 2011-03-30)
- Re: ISSUE-18: How do we parse '18.' in Turtle? (from pfps@research.bell-labs.com on 2011-03-30)
- Re: ISSUE-18: How do we parse '18.' in Turtle? (from nathan@webr3.org on 2011-03-30)
- Re: ISSUE-18: How do we parse '18.' in Turtle? (from pfps@research.bell-labs.com on 2011-03-30)
- Re: ISSUE-18: How do we parse '18.' in Turtle? (from nathan@webr3.org on 2011-03-30)
- Re: ISSUE-18: How do we parse '18.' in Turtle? (from phayes@ihmc.us on 2011-03-30)
- Re: ISSUE-18: How do we parse '18.' in Turtle? (from andy.seaborne@epimorphics.com on 2011-03-30)
- Re: ISSUE-18: How do we parse '18.' in Turtle? (from sandro@w3.org on 2011-03-30)
- Re: ISSUE-18: How do we parse '18.' in Turtle? (from nathan@webr3.org on 2011-03-30)
- Re: ISSUE-18: How do we parse '18.' in Turtle? (from pfps@research.bell-labs.com on 2011-03-30)
- Re: ISSUE-18: How do we parse '18.' in Turtle? (from antoine.zimmermann@insa-lyon.fr on 2011-03-30)
- Re: ISSUE-18: How do we parse '18.' in Turtle? (from Yves.Raimond@bbc.co.uk on 2011-03-30)
- Re: ISSUE-18: How do we parse '18.' in Turtle? (from nathan@webr3.org on 2011-03-30)
- 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:29Resolution 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
Display change log