public class RankBuffer extends Object
EntityDocument
and the
corresponding statement to generate BestRank triples.
Ignores deprecated statementsConstructor and Description |
---|
RankBuffer() |
Modifier and Type | Method and Description |
---|---|
void |
add(StatementRank rank,
org.eclipse.rdf4j.model.Resource subject)
Adds a Statement.
|
void |
clear()
Clears the buffer.
|
Set<org.eclipse.rdf4j.model.Resource> |
getBestRankedStatements()
Returns the statements with the highest rank.
|
public void clear()
public void add(StatementRank rank, org.eclipse.rdf4j.model.Resource subject)
rank
- rank of the statementsubject
- rdf resource that refers to the statementpublic Set<org.eclipse.rdf4j.model.Resource> getBestRankedStatements()
Copyright © 2014–2024 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage