320321322323324325326327328329330
for( OWLAxiom axiom : explanation ) { if( log.isLoggable( Level.FINER ) ) log.finer( "Try pruning " + axiom ); if( !incremental) { reasoner.dispose(); } OntologyUtils.removeAxioms( debuggingOntology, axiom ); if( !incremental) {
347348349350351352353354355356357
} } if( incremental ) { // remove the listener and the ontology to avoid memory leaks reasoner.dispose(); } OWL.manager.removeOntology( debuggingOntology ); OWL.manager.removeOntologyChangeListener( defTracker );
113114115116117118119120121122123
assertTrue( modular3.isRealized() ); assertInstancesEquals( unified, modular3 ); assertTypesEquals( unified, modular3 ); unified.dispose(); modular.dispose(); modular2.dispose(); modular3.dispose(); } finally {
8384858687888990919293
assertClassificationEquals( unified, modular2 ); assertTrue( testFile.delete() ); unified.dispose(); modular.dispose(); modular2.dispose(); } finally { OWL.manager.removeOntology( ontology );
135136137138139140141142143144145
PelletReasoner reasoner = PelletReasonerFactory.getInstance().createReasoner( ont ) ; try { testOWL2Reasoner( ns, reasoner ); } finally { reasoner.dispose(); } } @Test public void testOWL2Incremental() throws OWLException {
485486487488489490491492493494495
reasoner.getKB().realize(); testFamily( ns, reasoner ); } finally { reasoner.dispose(); } } @Test public void testFamilyIncremental() {