Osma Suominen created JENA-1423:
-----------------------------------

             Summary: tdbquery doesn't respect unionDefaultGraph setting
                 Key: JENA-1423
                 URL: https://issues.apache.org/jira/browse/JENA-1423
             Project: Apache Jena
          Issue Type: Bug
          Components: Cmd line tools
    Affects Versions: Jena 3.5.0
         Environment: Ubuntu 16.04
            Reporter: Osma Suominen


I noticed that the command line tool tdbquery doesn't respect the 
tdb:unionDefaultGraph setting anymore.

My dataset:

{noformat}
<http://example.org/graph1> <http://example.org/prop> <http://example.org/obj> 
<http://example.org/graph1> .
<http://example.org/graph2> <http://example.org/prop> <http://example.org/obj> 
<http://example.org/graph2> .
{noformat}

I've loaded this into a TDB1 using

{noformat}
tdbloader --loc tdb graphs.nq
{noformat}

This is my query:

{noformat}
SELECT * { ?s ?p ?o }
{noformat}

Jena 3.4.0 tdbquery:

{noformat}
$ apache-jena-3.4.0/bin/tdbquery --loc=tdb --set tdb:unionDefaultGraph=true 
--query query.rq 
--------------------------------------------------------------------------------------
| s                           | p                         | o                   
     |
======================================================================================
| <http://example.org/graph1> | <http://example.org/prop> | 
<http://example.org/obj> |
| <http://example.org/graph2> | <http://example.org/prop> | 
<http://example.org/obj> |
--------------------------------------------------------------------------------------
{noformat}

Jena 3.5.0 gives no results:

{noformat}
$ apache-jena-3.5.0/bin/tdbquery --loc=tdb --set tdb:unionDefaultGraph=true 
--query query.rq 
-------------
| s | p | o |
=============
-------------
{noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to