- From: Pablo Avila <pabloavila.k@gmail.com>
- Date: Mon, 8 Jun 2009 10:12:20 +0200
- To: public-owl-dev@w3.org
Hi all, I am writing an application in Java where I have to query some information from an ontology created with Protege. For this reason I have decided to use the Pellet reasoner. The problem is that after creating the reasoner when I call it (for example: reasoner.getSubclasses) an error of reasoner not connected or conexion refused. I have also opened the port in windows for the reasoner... just in case. Here I write you my code maybe someone can give an idea or suggest other way to do it. ReasonerManager reasonerManager = ReasonerManager.getInstance(); ProtegeOWLReasoner reasoner = reasonerManager.getReasoner(owlModel); reasoner.setURL("http://localhost:8081"); if (!reasoner.isConnected()) { System.out.println("not Connected to reasoner"); } Thank you in advance! Best Regards Pablo
Received on Tuesday, 9 June 2009 07:32:58 UTC