On Feb 11, 2013, at 5:07 AM, Andy Seaborne wrote:
> On 11/02/13 00:40, David Jordan wrote:
>>
>> It works when I specify the UnionGraph in the query, but when using sdbquery
>> it is not clear how to set SDB.unionDefaultGraph to true.
>>
>> I tried the following approaches, but they did not work:
>> sdbquery --query=query1.rq --set SDB.unionDefaultGraph=true
>> (got no result)
>
> SDB.unionDefaultGraph is the Java constant which is
>
> http://jena.hpl.hp.com/SDB/symbol#unionDefaultGraph
I understood that from looking at the documentation. But my question concerned
sdbquery.
I had already said I had it working in Java.
>
> I think using sdb: should work:
>
> sdbquery --query=query1.rq --set sdb:unionDefaultGraph=true
That did not work either.
>
> Andy
> (SDB is not set up on this machine to test that)
>
>>
>> sdbquery --query=query1.rq --set unionDefaultGraph=true
>> (got no result)
>>
>> sdbquery --query=query1.rq --base=<urn:x-arq:UnionGraph>
>> (got syntax error)
>
> WHERE { GRAPH <urn:x-arq:UnionGraph> { .... } }
I had already tried that, by putting it in the query and that has worked.
What is considered best practice?
Putting the "graph scope" of the query directly in the query itself or in an
outside context?