public static boolean sameResource ( URIReference u1 , String u2 ) { return u1 . getURI ( ) . toString ( ) . equals ( u2 ) ; }
Tells whether the given resources are equivalent with one given as a URI string .