ReasonerConfiguration reasonerConfig = new ReasonerConfigurationImp();
reasonerConfig.addRemoteReasoner("Pellet", "remotePellet", host, port);
heraklesServer = new HeraklesOWLlinkServer();
heraklesServer.start(reasonerConfig);
OWLlinkReasonerConfiguration reasonerConfiguration1 = new OWLlinkReasonerConfiguration(new URL("http://127.0.0.1:8080"));
heraklesReasonerFactory = new OWLlinkHTTPXMLReasonerFactory();
heraklesReasoner = (OWLlinkHTTPXMLReasoner) heraklesReasonerFactory.createReasoner(ontology, reasonerConfiguration1);
// Set up reference reasoner
OWLlinkReasonerConfiguration reasonerConfiguration2 = new OWLlinkReasonerConfiguration(new URL("http://" + host + ":" + port));
referenceReasonerFactory = new OWLlinkHTTPXMLReasonerFactory();
referenceReasoner = (OWLlinkHTTPXMLReasoner) referenceReasonerFactory.createReasoner(ontology, reasonerConfiguration2);
}