Hi,

On Thu, 2011-09-22 at 13:56 +0000, David Jordan wrote: 
> 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.

I believe that is what happens. 

The slow down may be due to the query having a lot more data visible to
it.

> 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

Try with:
    <arg value="--set" />
    <arg value="tdb:unionDefaultGraph=true" />

Dave


Reply via email to