SPARQL Query Language for RDF errata

Hi,
   I believe I've found some minor errata in the EBNF grammar. This  
is looking at the edition marked "W3C Working Draft 19 April 2005" at  
<http://www.w3.org/TR/rdf-sparql-query/>.

* <AT>, as used in production 74, is not defined in this grammar (or,  
at least, I can't find it if it is!).

* Production 73 seems to be missing its outer brackets:

<VAR>  ::=  '?'|'$') (<NCNAME2>|<NCNAME1>

* Table 11.1 defines the regex operator as:

     regex(STRING, PATTERN [, FLAGS])

and 11.2.3.6 uses it accordingly:

     regex(str(?mbox), "@work.example")

but line 4 of production 54 mandates the second comma:

     'regex' '(' Expression ',' String ',' String? ')'

This part of the production should probably be

     'regex' '(' Expression ',' String (',' String)? ')'

* Likewise for production 57:

     ArgList  ::=  ( Expression ',' Expression* )?

* I haven't thoroughly examined the expansion for production 27, so  
I'm probably wrong, but it looks like it allows intermediate triples  
to avoid having closing '.'s. (This point is more a note to self to  
check my own generated parser for this possibility.)

   Thoughts welcome.

   Regards,
-Richard

Received on Saturday, 18 June 2005 13:14:24 UTC