public ItemDocument updateTermsStatements ( ItemIdValue itemIdValue , List < MonolingualTextValue > addLabels , List < MonolingualTextValue > addDescriptions , List < MonolingualTextValue > addAliases , List < MonolingualTextValue > deleteAliases , List < Statement > addStatements , List < Statement > deleteStatements , String summary ) throws MediaWikiApiErrorException , IOException { ItemDocument currentDocument = ( ItemDocument ) this . wikibaseDataFetcher . getEntityDocument ( itemIdValue . getId ( ) ) ; return updateTermsStatements ( currentDocument , addLabels , addDescriptions , addAliases , deleteAliases , addStatements , deleteStatements , summary ) ; }
Updates the terms and statements of the item document identified by the given item id . The updates are computed with respect to the current data found online making sure that no redundant deletions or duplicate insertions happen . The references of duplicate statements will be merged . The labels and aliases in a given language are kept distinct .