code: public static boolean samePredicate(PredicateNode p1, PredicateNode p2) {
          return sameResource((URIReference) p1, (URIReference) p2);
      }
docs: Tells whether the given predicates are equivalent.
  <p>
  Two predicates are equivalent if they match according to the rules for
  resources.
  
  @param p1
  first predicate.
  @param p2
  second predicate.
  @return true if equivalent, false otherwise.