[
https://issues.apache.org/jira/browse/JENA-1422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16257998#comment-16257998
]
ASF subversion and git services commented on JENA-1422:
-------------------------------------------------------
Commit f030d2258ec74989ddef7fc560399b714cc98a52 in jena's branch
refs/heads/master from [~andy.seaborne]
[ https://git-wip-us.apache.org/repos/asf?p=jena.git;h=f030d22 ]
JENA-1422: Transactional, switchable, TDB2 graphs.
Including tdb2.tbdloader loading one graph.
> tdb2.tdbloader fails when trying to load to named graph
> -------------------------------------------------------
>
> Key: JENA-1422
> URL: https://issues.apache.org/jira/browse/JENA-1422
> Project: Apache Jena
> Issue Type: Bug
> Components: TDB2
> Affects Versions: Jena 3.5.0
> Environment: Ubuntu 16.04
> Reporter: Osma Suominen
> Assignee: Andy Seaborne
>
> I'm using Jena 3.5.0 and testing the new TDB2 store. I tried to load a
> dataset directly into a named graph using tdb2.tdbloader.
> This is my dataset:
> {noformat}
> <http://example.org/s> <http://example.org/p> <http://example.org/o> .
> {noformat}
> Loading into the default graph works:
> {noformat}
> $ tdb2.tdbloader --loc=defaultgraph example.nt
> 09:16:22 INFO TDB2 :: Finished: 1 example.nt 0,05s (Avg: 19)
> {noformat}
> Loading into a named graph using --graph option throws an exception:
> {noformat}
> $ tdb2.tdbloader --graph=http://example.org/g --loc=namedgraph example.nt
> java.lang.ClassCastException: org.apache.jena.tdb2.store.GraphViewSwitchable
> cannot be cast to org.apache.jena.tdb2.store.GraphTDB
> at tdb2.cmdline.CmdTDBGraph.getGraph(CmdTDBGraph.java:70)
> at tdb2.tdbloader.loadNamedGraph(tdbloader.java:123)
> at tdb2.tdbloader.exec(tdbloader.java:113)
> at jena.cmd.CmdMain.mainMethod(CmdMain.java:93)
> at jena.cmd.CmdMain.mainRun(CmdMain.java:58)
> at jena.cmd.CmdMain.mainRun(CmdMain.java:45)
> at tdb2.tdbloader.main(tdbloader.java:54)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)