[ 
https://issues.apache.org/jira/browse/JENA-1824?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17021161#comment-17021161
 ] 

Elie Roux commented on JENA-1824:
---------------------------------

Here's what happened in my mind: I thought there was an indication of an 
assembler file in the content of a tdb directory, so I thought that by 
providing --loc, tdbquery would look at that reference and open the assembler 
file. I realize now that this is not the case and that there might not be a 
reference to an assembler file in the content of a tdb directory, which may be 
obvious to you but wasn't to me.

Re "--set tdb:unionDefaultGraph=true": right, that's a very useful command line 
argument! Here's a patch to add it as an example to 
https://jena.apache.org/documentation/tdb/optimizer.html

{noformat}
Any filter expression of a basic graph pattern is placed
immediately after all it's variables will be bound. Conjunctions at
the top level in filter expressions are broken into their
constituent pieces and placed separately.

## UnionGraph

If tdbquery is invoked with just the `--loc` argument on a
database that was created with UnionDefaultGraph, it will
need `--set tdb:unionDefaultGraph=true` to behave like it
does in Fuseki.

## Investigating what is going on
{noformat}

> documenting loc vs. tdb option in tdbquery
> ------------------------------------------
>
>                 Key: JENA-1824
>                 URL: https://issues.apache.org/jira/browse/JENA-1824
>             Project: Apache Jena
>          Issue Type: Improvement
>          Components: Cmd line tools
>    Affects Versions: Jena 3.14.0
>            Reporter: Elie Roux
>            Priority: Minor
>
> In tdbquery, the arguments loc and tdb are mutually exclusive, which can make 
> the user think they're equivalent.
> But they're not: using the tdb argument gives many more indications to 
> tdbquery, including the UnionGraph mechanism (which is otherwise impossible 
> to convey in the command line).
> This should be made clear in the command line help message, and perhaps in 
> the command line error message saying "Only one of an assembler file and a 
> location".



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to