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

Re: GRAPH details and test cases

From: Steve Harris <steve.harris@garlik.com>
Date: Thu, 17 Aug 2006 11:05:55 +0100
Message-Id: <408F343F-3714-4627-A425-3CC609F10559@garlik.com>
To: dawg mailing list <public-rdf-dawg@w3.org>


On 17 Aug 2006, at 10:27, Seaborne, Andy wrote:

>
>
>
> Lee Feigenbaum wrote:
> . . .
>> The test is source-named/nested-graph-001 (for lack of a better  
>> place to put it). Data:
>> (no default graph)
>> <ng1.n3>
>> @prefix : <http://example.org/ns#> .
>> :s :p :o, :o1.
>> <ng2.n3>
>> @prefix : <http://example.org/ns#> .
>> :s :p :o, :o2.
>> Query:
>> <nested-graph-query.rq>
>> PREFIX : <http://example.org/ns#>
>> SELECT ?o
>> FROM NAMED <ng1.n3>
>> FROM NAMED <ng2.n3>
>> {
>>   GRAPH <ng1.n3> {
>>   GRAPH <ng2.n3> {
>>       :s :p ?o .
>>   }
>>   }
>> }
>> Results:
>> <nested-graph-query-result.n3>
>> @prefix rs:      <http://www.w3.org/2001/sw/DataAccess/tests/ 
>> result-set#> .
>> []  <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
>>                 rs:ResultSet ;
>>     rs:resultVariable "o";
>>     rs:solution [ rs:binding  [ rs:value    <http://example.org/ 
>> ns#o> ;
>>                                 rs:variable "o"
>>                               ]                 ] ,
>>                 [ rs:binding  [ rs:value    <http://example.org/ 
>> ns#o2> ;
>>                                 rs:variable "o"
>>                               ]                 ]                 .
>> The test runs successfully in my engine.
>
> ARQ passes this test.

FWIW, JXT fails it, rasqal 0.9.12 gets the GRAPHs upside down, though  
I'm not chasing CVS. Also I get a warning, "WHERE omitted".

I only just noticed that WHERE is optional in the grammar. For the  
record I suspect this is not a good idea, and we shouldn't do it in  
testcases.

- Steve
Received on Thursday, 17 August 2006 10:05:40 GMT

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