ReasonerConfiguration reasonerConfig = new ReasonerConfigurationImp();
reasonerConfig.loadRemoteReasonerConfiguration(new File("reasoner.xml"));
OWLReasonerFactory reasonerFactory = new HeraklesReasonerFactory( reasonerConfig, "de.fzi.herakles.strategy.impl.BasicLoadStrategy", "de.fzi.herakles.strategy.impl.ScreechAnytimeStrategy" );
AnytimeOWLReasoner reasoner = (AnytimeOWLReasoner) reasonerFactory.createReasoner( ont );
System.out.println("Creating AnytimeListener...");
AnytimeListener<OWLNamedIndividual> listener = new AnytimeListenerImpl();
OWLClass cls = factory.getOWLClass( IRI.create( CLASS_URI ) );
System.out.println( "Retrieving all individuals assigned to " + CLASS_URI + " ..." );
reasoner.getIndividuals( cls, listener );
// System.out.println( "\nIndividuals of " + CLASS_URI + ":" );
// for( OWLIndividual ind : inds )
// System.out.println( ind );