Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Jena 3.5.0
-
None
-
Ubuntu 16.04
Description
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:
<http://example.org/s> <http://example.org/p> <http://example.org/o> .
Loading into the default graph works:
$ tdb2.tdbloader --loc=defaultgraph example.nt 09:16:22 INFO TDB2 :: Finished: 1 example.nt 0,05s (Avg: 19)
Loading into a named graph using --graph option throws an exception:
$ 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)
Attachments
Issue Links
- links to