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

Re: GRAPH details and test cases

From: Seaborne, Andy <andy.seaborne@hp.com>
Date: Thu, 17 Aug 2006 10:27:13 +0100
Message-ID: <44E43671.2070200@hp.com>
To: Lee Feigenbaum <feigenbl@us.ibm.com>
CC: Kendall Clark <kendall@monkeyfist.com>, dawg mailing list <public-rdf-dawg@w3.org>



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.

	Andy

> 
> Lee
Received on Thursday, 17 August 2006 09:27:44 GMT

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