[
https://issues.apache.org/jira/browse/JENA-1423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16252693#comment-16252693
]
ASF GitHub Bot commented on JENA-1423:
--------------------------------------
GitHub user afs opened a pull request:
https://github.com/apache/jena/pull/309
JENA-1423: Command line parameter setting (tydb:unionDefaultGraph)
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/afs/jena JENA-1423-symbol
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/jena/pull/309.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #309
----
commit 13eee3f2d0f23b44b799ea780c4c75f6de261eea
Author: Andy Seaborne <[email protected]>
Date: 2017-11-14T18:31:53Z
Register parameter prefix once. Refactor constants.
commit e799636b2545fde098b6036cf25c385f29059f56
Author: Andy Seaborne <[email protected]>
Date: 2017-11-14T23:36:13Z
JENA-1423: TDB and TDB2 symbols
tdb:unionDefaultGraph
The TDB2 query engine understands the TDB1 setting.
----
> 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
> Assignee: Andy Seaborne
>
> 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)