I want to use Jena TDB in a project. This is what I added in my POM:
<dependency>
<groupId>org.apache.jena</groupId>
<artifactId>apache-jena-libs</artifactId>
<version>3.7.0</version>
<type>pom</type>
</dependency>
These are my jena-related imports:
import org.apache.jena.query.*;
import org.apache.jena.tdb.TDBFactory;
Interestingly, the code compiles and everything seems to be fine. I can even create a data set and read from it.
Dataset dataset = TDBFactory.createDataset(repoLocation);
As I am writing a multi-thread application, I am calling the begin
method as recommended in the documentation:
dataset.begin(ReadWrite.READ);
Which leads to:
Exception in thread "main" java.lang.AbstractMethodError: Class "org.apache.jena.tdb.transaction.DatasetGraphTransaction" does not implement the requested method
I appreciate your help!