DL-Learner icon indicating copy to clipboard operation
DL-Learner copied to clipboard

Deprecated Jena method setTimeout called in org.dllearner.reasoning.SPARQLReasoner.executeSelectQuery

Open greenguy33 opened this issue 1 year ago • 2 comments

At line 2627 of org.dllearner.reasoning.SPARQLReasoner.executeSelectQuery, the deprecated Jena method qe.setTimeout(timeout, timeoutUnits) is called.

As seen in the Jena code here, this method is deprecated. This leads to an java.lang.UnsupportedOperationException: Not Implemented. error thrown by the Jena code.

This error is preventing the SPARQLReasoner class from being able to launch queries against a remote endpoint.

greenguy33 avatar Jul 25 '23 16:07 greenguy33

I have just run into the same issue. Did you/anyone find some way around it?

CronosC avatar Apr 05 '24 12:04 CronosC

@CronosC, no I just didn't use dl-learner. The axioms I was trying to apply were simple enough that it was trivial to write my own code. However, if you're able to build the Maven project, the fix should be simply to remove the setTimeout line.

greenguy33 avatar Apr 08 '24 09:04 greenguy33