Package org.wikidata.wdtk.rdf
Class RankBuffer
java.lang.Object
org.wikidata.wdtk.rdf.RankBuffer
Holds information about the highest rank in an
EntityDocument
and the
corresponding statement to generate BestRank triples.
Ignores deprecated statements- Author:
- Michael Guenther
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(StatementRank rank, org.eclipse.rdf4j.model.Resource subject) Adds a Statement.void
clear()
Clears the buffer.Set<org.eclipse.rdf4j.model.Resource>
Returns the statements with the highest rank.
-
Constructor Details
-
RankBuffer
public RankBuffer()
-
-
Method Details
-
clear
public void clear()Clears the buffer. This function should be called after each export of an entity document. -
add
Adds a Statement.- Parameters:
rank
- rank of the statementsubject
- rdf resource that refers to the statement
-
getBestRankedStatements
Returns the statements with the highest rank.- Returns:
- statement resource with the highest rank.
-