Set<OWLClassAssertionAxiom> axioms;
axioms = o.getClassAssertionAxioms( POSITIVE_ENTAILMENT_TEST.getOWLClass() );
if( axioms != null ) {
for( OWLClassAssertionAxiom ax : axioms ) {
final OWLNamedIndividual i = ax.getIndividual().asOWLNamedIndividual();
final PositiveEntailmentTest<O> t = factory.getPositiveEntailmentTestCase( o, i );
if( filter.accepts( t ) )
cases.put( i, t );
}
}
axioms = o.getClassAssertionAxioms( NEGATIVE_ENTAILMENT_TEST.getOWLClass() );
if( axioms != null ) {
for( OWLClassAssertionAxiom ax : axioms ) {
final OWLNamedIndividual i = ax.getIndividual().asOWLNamedIndividual();
final NegativeEntailmentTest<O> t = factory.getNegativeEntailmentTestCase( o, i );
if( filter.accepts( t ) )
cases.put( i, t );
}
}
axioms = o.getClassAssertionAxioms( CONSISTENCY_TEST.getOWLClass() );
if( axioms != null ) {
for( OWLClassAssertionAxiom ax : axioms ) {
final OWLNamedIndividual i = ax.getIndividual().asOWLNamedIndividual();
/*
* Verify the identifier is not already in the map because both
* entailment tests may also be marked as consistency tests.
*/
if( cases.containsKey( i ) )
continue;
final ConsistencyTest<O> t = factory.getConsistencyTestCase( o, i );
if( filter.accepts( t ) && !cases.containsKey( i ) )
cases.put( i, t );
}
}
axioms = o.getClassAssertionAxioms( INCONSISTENCY_TEST.getOWLClass() );
if( axioms != null ) {
for( OWLClassAssertionAxiom ax : axioms ) {
final OWLNamedIndividual i = ax.getIndividual().asOWLNamedIndividual();
final InconsistencyTest<O> t = factory.getInconsistencyTestCase( o, i );
if( filter.accepts( t ) )
cases.put( i, t );
}
}