public static boolean sameObject ( ObjectNode o1 , String o2 , boolean isLiteral , URI type , String lang ) { if ( o1 instanceof URIReference ) { return sameResource ( ( URIReference ) o1 , o2 ) ; } else if ( o1 instanceof Literal || isLiteral ) { return sameLiteral ( ( Literal ) o1 , o2 , type , lang ) ; } else { return false ; } }
Tells whether the given objects are equivalent with one given as a set of simple values .