public class RdfLiteralHash extends Object
http://fake.com/delete?sub="http://bob"&pred="http://hasNickName"&stmtHash="23443434"
This could request the deletion of a the statement for Bob's nickname where the
literal matched the hash 23443434.
The hash is for the whole statement, not just the literal part. The has will only match
if the subject, predicate, datetype/language and literal match.| Constructor and Description |
|---|
RdfLiteralHash() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
doesStmtMatchHash(DataPropertyStatement stmt,
int hash) |
static DataPropertyStatement |
getPropertyStmtByHash(String subjectUri,
String predicateUri,
int hash,
org.apache.jena.rdf.model.Model model)
Forward to either getDataPropertyStmtByHash or getRdfsLabelStatementByHash, depending on the property.
|
static int |
makeRdfLiteralHash(DataPropertyStatement stmt)
Make a hash based on individual, property, literal and (lang or datatype).
|
static int |
makeRdfsLabelLiteralHash(Individual subject,
String value,
org.apache.jena.rdf.model.Model model) |
public static int makeRdfLiteralHash(DataPropertyStatement stmt)
stmt - Data statementpublic static boolean doesStmtMatchHash(DataPropertyStatement stmt, int hash)
stmt - Data statementhash - Hashpublic static DataPropertyStatement getPropertyStmtByHash(String subjectUri, String predicateUri, int hash, org.apache.jena.rdf.model.Model model)
subjectUri - Subject URIpredicateUri - Predicate URIhash - Hashmodel, - may not be nullpublic static int makeRdfsLabelLiteralHash(Individual subject, String value, org.apache.jena.rdf.model.Model model)
Copyright © 2021. All rights reserved.