OWLOntology ontology = OWL.Ontology( ontologyAxioms );
PelletReasonerFactory reasonerFactory = PelletReasonerFactory.getInstance();
reasoner = reasonerFactory.createReasoner( ontology );
TransactionAwareSingleExpGen singleExpGen = useGlassBox
? new GlassBoxExplanation( reasoner )
: new BlackBoxExplanation( ontology, reasonerFactory, reasoner ) {
protected boolean isFirstExplanation() {
return false;
}