Package org.hobbit.utils.rdf
Class TripleHashCalculator
java.lang.Object
org.hobbit.utils.rdf.TripleHashCalculator
A class for computing a SHA1 hash of
sorted and serialized resource properties.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcalculateHash(org.apache.jena.rdf.model.StmtIterator statements) private static StringserializeStatement(org.apache.jena.rdf.model.Statement stmt)
-
Field Details
-
HASH_SELF_URI
Replacement URI for the resource. Currently has no effect on actual hash computation.
-
-
Constructor Details
-
TripleHashCalculator
public TripleHashCalculator()
-
-
Method Details
-
calculateHash
- Parameters:
statements-- Returns:
- the computed hash.
-
serializeStatement
-