// for the ATerm->OWLObject translation to work we need
// all the entities referred in the ATerm to be defined
// entities. therefore, we add a dummy axiom to the KB
// that will add the definitions for each entity.
OWLAxiom axiom = null;
if( object instanceof OWLDescription ) {
OWLDescription c = (OWLDescription) object;
axiom = factory.getOWLSubClassAxiom( c, c );
}
else if( object instanceof OWLObjectProperty ) {
OWLObjectProperty p = (OWLObjectProperty) object;
axiom = factory.getOWLSubObjectPropertyAxiom( p, p );
}
else if( object instanceof OWLDataProperty ) {
OWLDataProperty p = (OWLDataProperty) object;
axiom = factory.getOWLSubDataPropertyAxiom( p, p );
}
else if( object instanceof OWLIndividual ) {
OWLIndividual ind = (OWLIndividual) object;
axiom = factory.getOWLClassAssertionAxiom( ind, factory.getOWLThing() );
}
if( axiom != null )
axiom.accept( atermConverter );
OWLObject converted = owlapiConverter.convert( aterm );
assertEquals( object, converted );
} catch( Exception e ) {