I'm experimenting with the new TDB2 but I get some errors. I've copied the 
config file described in 
https://jena.apache.org/documentation/tdb2/tdb2_fuseki.html into 
"run/config.ttl". This seems to work fine, because I can start the endpoint and 
see the empty dataset. The problems are when creating the TDB2 store.
I've downloaded Fuseki, then downloaded Jena inside the Fuseki root directory.

$ ./jena-3.5.0/bin/tdb2.tdbloader --tdb run/config.ttl --desc run/config.ttl 
--verbose file.nt

15:22:08 WARN  ModTDBDataset        :: Unexpected: Not a TDB2 dataset for type 
DatasetTDB2

^--- I get this warning but otherwise the graph loads fine (as far as I can 
tell).

$ ./jena-3.5.0/bin/tdb2.tdbloader --tdb run/config.ttl --desc run/config.ttl 
--graph g:mygraph --verbose file.nt

15:22:08 WARN  ModTDBDataset        :: Unexpected: Not a TDB2 dataset for type 
DatasetTDB2
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)

^--- Here I can't load the graph at all.

Reply via email to