SPARQL Update grammar tweak: INSERT ... DATA

  [39]  InsertData  ::=  'INSERT DATA' QuadData
  [40]  DeleteData  ::=  'DELETE DATA' QuadData
  [41]  DeleteWhere  ::=  'DELETE WHERE' QuadPattern
could be liberalized it a bit to:
  [39]  InsertData  ::=  INSERT_DATA QuadData
  [40]  DeleteData  ::=  DELETE_DATA QuadData
  [41]  DeleteWhere  ::=  DELETE_WHERE QuadPattern
  ...
  [130] INSERT_DATA  ::= "INSERT" WS+ "DATA"
  [131] DELETE_DATA  ::= "DELETE" WS+ "DATA"
  [132] DELETE_WHERE ::= "DELETE" WS+ "WHERE"

Also, we can formalize comments with:
  [130] <COMMENT> ::= "#" [^\r\n]*
  ...
  [157] <WS> 	  ::= " " | "\t" | "\r" | "\n" | COMMENT [\r\n]
  ...
  PASSED TOKENS   ::= ([ \t\r\n])+ | "#" ([^\r\n])*

You can play at http://www.w3.org/2005/01/yacker/uploads/SPARQL_11?text=INSERT%0D%0A++DATA+{+%3Cs%3E+%3Cp%3E+%3Co%3E+}&action=validate+text

-- 
-ericP

Received on Saturday, 26 November 2011 15:07:14 UTC