W3C home > Mailing lists > Public > public-rdf-dawg-comments@w3.org > December 2011

Re: SPARQL 1.1 Update: minor inconsistency between text and grammar

From: Andy Seaborne <andy.seaborne@epimorphics.com>
Date: Thu, 08 Dec 2011 09:29:25 +0000
Message-ID: <4EE08375.1080107@epimorphics.com>
To: public-rdf-dawg-comments@w3.org


On 07/12/11 22:30, Jeen Broekstra wrote:
>
> Dear WG,
>
> In the SPARQL 1.1 Update spec, section 3
> (http://www.w3.org/TR/sparql11-update/#updateLanguage) it says the
> following:
>
> "A request is a sequence of operations and is terminated by EOF (End of
> File). Multiple operations are separated by a ';' (semicolon) character.
> A semicolon after the last operation in a request is optional. [...]"
>
> However, the actual BNF grammar
> (http://www.w3.org/TR/sparql11-query/#rUpdate) has the following
> production for an operation sequence:
>
> [30] Update ::= Prologue ( Update1 ( ';' Update )? )?
>
> So, is a semicolon after the last operation allowed, or not? The text
> says it is, the grammar says it isn't.

An "Update" can be empty.  Prologue can be empty and the whole of the 
rest of it is (...)?

So the last part, ( ';' Update )?, can be ';' <empty>
meaning  that a ";" at the end is legal by the grammar.

	Andy

>
> Best regards,
>
> Jeen
>
Received on Thursday, 8 December 2011 09:30:00 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 8 December 2011 09:30:00 GMT