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

SPARQL Update grammar tweak: INSERT ... DATA

From: Eric Prud'hommeaux <eric@w3.org>
Date: Sat, 26 Nov 2011 10:06:40 -0500
To: public-rdf-dawg@w3.org
Message-ID: <20111126150638.GA29120@w3.org>
  [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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:15:47 GMT