boolean avfSubClass(OwlClass other){
  for (  OwlClass avfClass : this.avfClasses) {
    Set<Resource> intersection=avfClass.getSuperClasses();
    intersection.retainAll(other.allValuesFrom());
    if (!intersection.isEmpty()) {
      return true;
    }
  }
  return false;
}

boolean avfSubClass ( OwlClass other ) { for ( OwlClass avfClass : this . avfClasses ) { Set < Resource > intersection = avfClass . getSuperClasses ( ) ; intersection . retainAll ( other . allValuesFrom ( ) ) ; if ( ! intersection . isEmpty ( ) ) { return true ; } } return false ; }
compares somevaluesfrom target classes , and returns true if this one ' s is a subclass of the other ' s .
