Re: meaning of GRAPH ?g {}

Strictly speaking I believe that yes you should get back <aa> and <bb>

{} always matches - it returns a multiset with a single empty row thus
since GRAPH is defined as being the UNION over applying the graph pattern
over each named graph you should get a single row with ?g bound for each
named graph in the store.

This is likely a triple store defect

Rob

On 7/30/13 1:00 PM, "Jeremy J Carroll" <jjc@syapse.com> wrote:

>
>If I have a dataset
>
><aa> { <sa> <pa> <oa> }
>
><bb> { <sb> <pb> <ob> }
>
>And ask
>
>SELECT ?g
>{ GRAPH ?g {}
>}
>
>what should I get back.
>I thought it should be <aa> and <bb> but to get that I had to rewrite the
>query as
>
>SELECT DISTINCT ?g
>{ GRAPH ?g { ?s ?p ?o}
>}
>
>Should I report this as a triple store defect?
>
>
>
>Jeremy J Carroll
>Principal Architect
>Syapse, Inc.
>
>
>
>

Received on Tuesday, 30 July 2013 20:23:05 UTC