Interface LexemeUpdate
- All Superinterfaces:
EntityUpdate
,StatementDocumentUpdate
- All Known Implementing Classes:
LexemeUpdateImpl
Collection of changes that can be applied to lexeme entity.
-
Method Summary
Modifier and TypeMethodDescriptionReturns new forms added to the lexeme in this update.Returns new senses added to the lexeme in this update.Returns ID of the entity that is being updated.Returns new lexeme language assigned in this update.Returns changes in lemmas.Returns new lexical category assigned to the lexeme in this update.Returns IDs of forms removed from the lexeme in this update.Returns IDs of senses removed from the lexeme in this update.Returns lexeme forms modified in this update.Returns lexeme senses modified in this update.Methods inherited from interface org.wikidata.wdtk.datamodel.interfaces.EntityUpdate
getBaseRevisionId, isEmpty
Methods inherited from interface org.wikidata.wdtk.datamodel.interfaces.StatementDocumentUpdate
getStatements
-
Method Details
-
getEntityId
LexemeIdValue getEntityId()Description copied from interface:EntityUpdate
Returns ID of the entity that is being updated.- Specified by:
getEntityId
in interfaceEntityUpdate
- Returns:
- ID of the updated entity
-
getLanguage
Optional<ItemIdValue> getLanguage()Returns new lexeme language assigned in this update. If language code is not changing, this method returnsOptional.empty()
.- Returns:
- new lexeme language or
Optional.empty()
if it is not changing
-
getLexicalCategory
Optional<ItemIdValue> getLexicalCategory()Returns new lexical category assigned to the lexeme in this update. If lexical category is not changing, this method returnsOptional.empty()
.- Returns:
- new lexical category or
Optional.empty()
if it is not changing
-
getLemmas
TermUpdate getLemmas()Returns changes in lemmas.- Returns:
- update of lemmas, possibly empty
-
getAddedForms
List<FormDocument> getAddedForms()Returns new forms added to the lexeme in this update. Existing forms are preserved by default.- Returns:
- list of new forms
-
getUpdatedForms
Map<FormIdValue,FormUpdate> getUpdatedForms()Returns lexeme forms modified in this update. Forms not listed here are preserved by default.- Returns:
- modified forms indexed by ID
-
getRemovedForms
Set<FormIdValue> getRemovedForms()Returns IDs of forms removed from the lexeme in this update.- Returns:
- IDs of removed lexeme forms
-
getAddedSenses
List<SenseDocument> getAddedSenses()Returns new senses added to the lexeme in this update. Existing senses are preserved by default.- Returns:
- list of new senses
-
getUpdatedSenses
Map<SenseIdValue,SenseUpdate> getUpdatedSenses()Returns lexeme senses modified in this update. Senses not listed here are preserved by default.- Returns:
- modified senses indexed by ID
-
getRemovedSenses
Set<SenseIdValue> getRemovedSenses()Returns IDs of senses removed from the lexeme in this update.- Returns:
- IDs of removed lexeme senses
-