SmartDataAnalytics / DL-Learner

A tool for supervised Machine Learning in OWL and Description Logics
http://dl-learner.org
GNU General Public License v3.0
152 stars 34 forks source link

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

Open greenguy33 opened 1 year ago

greenguy33 commented 1 year ago

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.

CronosC commented 7 months ago

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

greenguy33 commented 7 months ago

@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.