Osma Suominen created JENA-1422: ----------------------------------- Summary: 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
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)