}
Frame f = null;
if (entity instanceof OWLClass) {
f = getTermFrame(entity.asOWLClass());
} else if (entity instanceof OWLObjectProperty) {
f = getTypedefFrame(entity.asOWLObjectProperty());
} else if (entity instanceof OWLAnnotationProperty) {
for (OWLAxiom a : set) {
OWLAnnotationAssertionAxiom ax = (OWLAnnotationAssertionAxiom) a;
OWLAnnotationProperty prop = ax.getProperty();
String tag = owlObjectToTag(prop);