Re: GRAPH details and test cases

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 UTC