/** * This method is used to compute the hash code of RDF statements. All implementation of * org.w3c.rdf.model.Statement MUST use this method. The hash code is computed as * * <blockquote> * * <pre> * ((s.hashCode() * 7) + p.hashCode()) * 7 + o.hashCode() * </pre> * * </blockquote> */ public static int statementHashCode(Resource s, Resource p, RDFNode o) { return ((s.hashCode() * 7) + p.hashCode()) * 7 + o.hashCode(); }