I have my data in more than one model in TDB and I am trying to write a query 
that spans across them.

I did try using the following FROM clause.
FROM <urn:x-arq:UnionGraph>
This worked, but there was a long delay in producing results (as compared to 
running against one named graph).
So I am guessing that what took so long was that a union was literally being 
created before the query was executed.
My hope was that this would just do the query across all the graphs in the 
database.

Something else I am trying to get working is using the following in my Ant 
script that runs tdbquery.
        <target name="tdb.query" >
                <java classname="tdb.tdbquery" fork="true" >
                        <classpath refid="tdb.classpath" />
                        <arg value="--tdb=${assembler.file}" />
                        <arg value="--set tdb:unionDefaultGraph=true" />
                        <arg value="--query=${query}" />
                </java>
        </target>

Executing 'C:\Program Files\Java\jdk1.6.0_21\jre\bin\java.exe' with arguments:
'-classpath'
'C:\Documents and Settings\davjor\My Documents\Jena\TDB-0.8.11-SNAPSHOT\lib\arq-
Documents\Jena\TDB-0.8.11-SNAPSHOT\lib\jena-2.6.4.jar;C:\Documents and 
Settings\                     I cut this off, too long.
b\tdb-0.8.11-SNAPSHOT.jar;C:\Documents and Settings\davjor\My Documents\Jena\TDB
'tdb.tdbquery'
'--tdb=db.ttl'
'--set tdb:unionDefaultGraph=true'
'--query=query/haslungcancer.rq'

The ' characters around the executable and arguments are not part of the 
command.
Unknown argument: set tdb

The documentation was not clear at all whether there was a particular value to 
set unionDefaultGraph to. Is this correct?
Also, any ideas why tdbquery is having a problem with the : ?

I really want to avoid having a union computed up front of the graphs that I 
need.
When I directly use named graphs in the query, things don’t work right when I 
use a variable spanning across multiple graphs.

David Jordan
Software Developer
SAS Institute Inc.
Health & Life Sciences, Research & Development
Bldg R ▪ Office 4467
600 Research Drive ▪ Cary, NC 27513
Tel: 919 531 1233 ▪ [email protected]<mailto:[email protected]>
www.sas.com<http://www.sas.com>
SAS® … THE POWER TO KNOW®



Reply via email to