Open smalyshev opened 5 years ago
@mielvds maybe you know what's wrong there?
Let me see. What did you change? Can you post the new pom.xml
?
I set all Jena versions to 3.10.0. Also, I added dataset.begin(ReadWrite.WRITE);
to JenaTDBDataSourceTest.java on line 63, otherwise it threw "Not in a transaction" there. You can see our full pom.xml here: https://gist.github.com/smalyshev/b8045f8e15f0c926df003f67ecbaf492 - it's a bit different from master since we did other fixes but close enough. I think you'd be able to see it just replacing all Jena component versions to 3.10.0 and running mvn install
.
No idea really, maybe @barthanssens can answer this?
I'm mainly working with RDF4J, so I'm guessing here based on some quick googling :-)
It appears to be that there were changes in Jena, and things like qexec.execConstruct(triples); (line 116) seems to be valid only in a transaction...
If you prefer some syntactic sugar, there is also a convenience library ´Txn´ for handling transactions in a lambda expression: http://jena.apache.org/documentation/txn/txn.html
I tried to upgrade this package to Jena 3.10.0 (since 3.1.0 has dependencies which have some security issues) and I get
Not in a transaction
exceptions in tests, e.g.:Looks like something needs to be done to keep compatibility with latest Jena?