W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > July to September 2010

Re: Trailing dot in update grammar

From: Steve Harris <steve.harris@garlik.com>
Date: Tue, 3 Aug 2010 12:24:28 +0100
Cc: "public-rdf-dawg@w3.org Group" <public-rdf-dawg@w3.org>
Message-Id: <2CDF2493-379F-4DC4-B224-5DA1A8FBDC64@garlik.com>
To: Andy Seaborne <andy.seaborne@epimorphics.com>
On 2010-08-03, at 11:22, Andy Seaborne wrote:
> 
> 
> On 03/08/2010 10:54 AM, Steve Harris wrote:
>> Apologies if this is a known problem.
>> 
>> According to our implementation of the Update grammar, you can have a trailing dot in INSERT DATA, so:
>>    INSERT DATA { GRAPH<G>  {<s>  <p>  <o>  . } }
>> doesn't match the grammar, as far as we can see.
> 
> Could you explain the route through the grammar that forbids it? It would be helpful to know how you are going through the grammar rules and where you end up that forbids it.
> 
> A series of test cases to cover what you expect, and don't expect, would be good too :-)
> 
>> The goes against the spirit of SPARQL 1.0, and some examples given in the Update document, e.g. the example in 4.1.1 (though that example doesn't use the GRAPH keyword, so it's not exactly the same).
>> 
>> - Steve
>> 
> 
> [34] Insert ::= 'INSERT' ( 'DATA' QuadData | .... )
> [46] QuadData ::= '{' Quads '}'
> [43] Quads ::= TriplesTemplate?
>              ( QuadsNotTriples '.'? TriplesTemplate? )*
> [44] QuadsNotTriples ::= 'GRAPH' VarOrIRIref '{' TriplesTemplate '}'
> [45] TriplesTemplate  ::= TriplesSameSubject ( '.' TriplesTemplate? )?
> 
> and
> ( '.' TriplesTemplate? )?
> 
> can be a single '.'

OK, I think that makes sense. It hurts my head trying to unravel it though, and I guess our guy who turned it into a Lemon grammar made some mistake as well.

I'll contribute the syntax tests from our Update tests when I finish them.

Thanks Andy.

- Steve

-- 
Steve Harris, CTO, Garlik Limited
1-3 Halford Road, Richmond, TW10 6AW, UK
+44 20 8439 8203  http://www.garlik.com/
Registered in England and Wales 535 7233 VAT # 849 0517 11
Registered office: Thames House, Portsmouth Road, Esher, Surrey, KT10 9AD
Received on Tuesday, 3 August 2010 11:25:08 GMT

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