boolean onSubProperty(OwlClass other){
  Set<URI> otherProp=other.getOnProperty();
  for (  OwlProperty prop : this.properties) {
    Set<URI> intersection=prop.getSuperProperties();
    intersection.retainAll(otherProp);
    if (!intersection.isEmpty()) {
      return true;
    }
  }
  return false;
}

boolean onSubProperty ( OwlClass other ) { Set < URI > otherProp = other . getOnProperty ( ) ; for ( OwlProperty prop : this . properties ) { Set < URI > intersection = prop . getSuperProperties ( ) ; intersection . retainAll ( otherProp ) ; if ( ! intersection . isEmpty ( ) ) { return true ; } } return false ; }
compares onproperty properties , and returns true if this one ' s is a subproperty of the other ' s .
