Пример #1
0
 private boolean applyRule(ClassifierStatus status, int subClass, int superClass) {
   return applyRule(
       status.getExtendedOntology(),
       (Integer r) -> (Integer x) -> (Integer b) -> status.addNewREntry(r, x, b),
       subClass,
       superClass);
 }
Пример #2
0
 private boolean apply2(ClassifierStatus status, int r2, int y, int z) {
   boolean ret = false;
   for (int s : status.getSuperObjectProperties(r2)) {
     if (status.getExtendedOntology().getTransitiveObjectProperties().contains(s)) {
       for (int r1 : status.getSubObjectProperties(s)) {
         for (int x : status.getFirstBySecond(r1, y)) {
           ret |= status.addNewREntry(s, x, z);
         }
       }
     }
   }
   return ret;
 }