public boolean equals(Object obj) {
   if (obj == this) {
     return true;
   }
   if (!(obj instanceof OWLAnnotationPropertyDomainAxiom)) {
     return false;
   }
   OWLAnnotationPropertyDomainAxiom other = (OWLAnnotationPropertyDomainAxiom) obj;
   return property.equals(other.getProperty())
       && domain.equals(other.getDomain())
       && getAnnotations().equals(other.getAnnotations());
 }
 @Override
 public boolean equals(Object obj) {
   if (super.equals(obj)) {
     // superclass is responsible for null, identity, owlaxiom type and
     // annotations
     if (!(obj instanceof OWLAnnotationPropertyRangeAxiom)) {
       return false;
     }
     OWLAnnotationPropertyRangeAxiom other = (OWLAnnotationPropertyRangeAxiom) obj;
     return property.equals(other.getProperty()) && range.equals(other.getRange());
   }
   return false;
 }