W3C home > Mailing lists > Public > public-rdf-dawg-comments@w3.org > June 2005

SPARQL Query Language for RDF errata

From: Richard Newman <r.newman@reading.ac.uk>
Date: Sat, 18 Jun 2005 14:14:12 +0100
Message-Id: <84468495-E555-4A85-90F0-99952EE5CA02@reading.ac.uk>
To: public-rdf-dawg-comments@w3.org

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:14:48 GMT