public interface SenseDocument extends StatementDocument
Modifier and Type | Method and Description |
---|---|
SenseIdValue |
getEntityId()
Returns the ID of the entity that the data refers to
|
Map<String,MonolingualTextValue> |
getGlosses()
Return the human readable description of the sense indexed by Wikimedia language code
|
SenseDocument |
withEntityId(SenseIdValue newEntityId)
Returns a new version of this document with updated ID.
|
SenseDocument |
withGloss(MonolingualTextValue gloss) |
SenseDocument |
withoutStatementIds(Set<String> statementIds)
Returns a new version of this document where all statements matching
any of the statement ids provided have been removed.
|
SenseDocument |
withRevisionId(long newRevisionId)
Returns a copy of this document with an updated revision id.
|
SenseDocument |
withStatement(Statement statement)
Returns a new version of this document which includes the
statement provided.
|
findStatement, findStatement, findStatementEntityIdValue, findStatementEntityIdValue, findStatementGlobeCoordinatesValue, findStatementGlobeCoordinatesValue, findStatementGroup, findStatementGroup, findStatementItemIdValue, findStatementItemIdValue, findStatementMonolingualTextValue, findStatementMonolingualTextValue, findStatementPropertyIdValue, findStatementPropertyIdValue, findStatementQuantityValue, findStatementQuantityValue, findStatementStringValue, findStatementStringValue, findStatementTimeValue, findStatementTimeValue, findStatementValue, findStatementValue, getAllStatements, getStatementGroups, hasStatement, hasStatement, hasStatementValue, hasStatementValue, hasStatementValue, hasStatementValue
getRevisionId
SenseIdValue getEntityId()
getEntityId
in interface EntityDocument
Map<String,MonolingualTextValue> getGlosses()
SenseDocument withEntityId(SenseIdValue newEntityId)
newEntityId
- new ID of the documentSenseDocument withRevisionId(long newRevisionId)
withRevisionId
in interface EntityDocument
withRevisionId
in interface StatementDocument
SenseDocument withGloss(MonolingualTextValue gloss)
SenseDocument withStatement(Statement statement)
withStatement
in interface StatementDocument
statement
- the statement to add or update in the documentSenseDocument withoutStatementIds(Set<String> statementIds)
withoutStatementIds
in interface StatementDocument
statementIds
- the identifiers of the statements to removeCopyright © 2014–2024 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage