public boolean equals(Object obj) {
if (super.equals(obj)) {
if (!(obj instanceof OWLSubPropertyAxiom)) {
return false;
}
OWLSubPropertyAxiom other = (OWLSubPropertyAxiom) obj;
return other.getSubProperty().equals(subProperty) && other.getSuperProperty().equals(superProperty);
}
return false;
}