Properties newOptions = new PropertiesBuilder().set( "USE_TRACING", "true" ).set(
"USE_ROLE_ABSORPTION", "true" ).build();
Properties savedOptions = PelletOptions.setOptions( newOptions );
try {
ATermAppl A = ATermUtils.makeTermAppl( "A" );
ATermAppl B = ATermUtils.makeTermAppl( "B" );
ATermAppl p = ATermUtils.makeTermAppl( "p" );
KnowledgeBase kb = new KnowledgeBase();
kb.addClass( A );
kb.addClass( B );
kb.addObjectProperty( p );
ATermAppl or1 = or( A, some( p, A ) );
ATermAppl or2 = or( B, some( p, B ) );
ATermList list = ATermUtils.toSet( new ATerm[] { or1, or2 }, 2 );
kb.addDisjointClasses( list );
assertTrue( kb.isConsistent() );
ATermAppl disjoint = ATermUtils.makeDisjoints( list );
assertFalse( kb.removeAxiom( disjoint ) );
} finally {
PelletOptions.setOptions( savedOptions );
}
}