public interface StatementGroup extends Collection<Statement>
Statement
objects
that use the same subject and the same property in the main snak of their
Claim
.Modifier and Type | Method and Description |
---|---|
StatementGroup |
getBestStatements()
Get the best statements of this group.
|
PropertyIdValue |
getProperty()
Get the property used in the main snak of the
Claim of each
statement in this group. |
List<Statement> |
getStatements()
Get the list of Statements of this group.
|
EntityIdValue |
getSubject()
Get the subject used in the
Claim of each statement in this
group. |
StatementGroup |
withStatement(Statement statement)
Returns a new version of this group, where the given
statement has been added.
|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray
List<Statement> getStatements()
StatementGroup getBestStatements()
StatementRank.PREFERRED
if they exists or the one with rank StatementRank.NORMAL
PropertyIdValue getProperty()
Claim
of each
statement in this group.EntityIdValue getSubject()
Claim
of each statement in this
group.StatementGroup withStatement(Statement statement)
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