You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Andy Seaborne (JIRA)" <ji...@apache.org> on 2017/11/14 16:58:00 UTC

[jira] [Commented] (JENA-1423) tdbquery doesn't respect unionDefaultGraph setting

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

Andy Seaborne commented on JENA-1423:
-------------------------------------

TDB2 is stamping on the {{tdb:}} registration and making it {{http://jena.apache.org/tdb#}}.

Workaround: use the full name: {{--set http://jena.hpl.hp.com/TDB#unionDefaultGraph=true}}.

The ideal solution is that "tdb:" works naturally for both TDB1 and TDB2 without solely being set to {{jena.hpl.hp.com}}.


> 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)