Resource implements Node, Serializable { @Override public boolean equals(Object o) { if (o == this) { return true; } return (o instanceof Resource) && ((Resource) o)._data.equals(_data); } Resource(String iri);  Resource(String iri, boolean isNTriples); URI toURI(); @Deprecated String getUriString(); @Override String getLabel(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object o); @Override int compareTo(Node n); static final long serialVersionUID; }
@Test public void test() { System.err.println(new Resource("asd").equals(new Resource("asd"))); System.err.println(new Resource("asd").equals(new Resource("asdf"))); System.err.println(new Resource("bsd").equals(new Resource("asd"))); }