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/18 09:45:00 UTC
[jira] [Assigned] (JENA-1422) tdb2.tdbloader fails when trying to
load to named graph
[ https://issues.apache.org/jira/browse/JENA-1422?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andy Seaborne reassigned JENA-1422:
-----------------------------------
Assignee: Andy Seaborne
> 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)