Uses of Interface
org.wikidata.wdtk.datamodel.interfaces.ItemIdValue
Packages that use ItemIdValue
Package
Description
Package for mostly static helper code to work with data objects.
Basic implementation for objects representing Wikibase data and related factories.
Interfaces for representing Wikibase data and related factories.
Package for examples of bots that edit Wikidata.
Components for accessing the Web API of a Wikibase website, such as wikidata.org.
-
Uses of ItemIdValue in org.wikidata.wdtk.datamodel.helpers
Methods in org.wikidata.wdtk.datamodel.helpers that return ItemIdValueModifier and TypeMethodDescriptionDatamodelConverter.copy
(ItemIdValue object) Copies anItemIdValue
.static ItemIdValue
Datamodel.makeItemIdValue
(String id, String siteIri) Creates anItemIdValue
.static ItemIdValue
Datamodel.makeWikidataItemIdValue
(String id) Creates anItemIdValue
for Wikidata.Methods in org.wikidata.wdtk.datamodel.helpers with parameters of type ItemIdValueModifier and TypeMethodDescriptionDatamodelConverter.copy
(ItemIdValue object) Copies anItemIdValue
.static ItemUpdateBuilder
ItemUpdateBuilder.forBaseRevisionId
(ItemIdValue itemId, long revisionId) Creates new builder object for constructing update of item entity with given revision ID.static ItemUpdateBuilder
ItemUpdateBuilder.forEntityId
(ItemIdValue itemId) Creates new builder object for constructing update of item entity with given ID.static ItemDocumentBuilder
ItemDocumentBuilder.forItemId
(ItemIdValue itemIdValue) Starts the construction of anItemDocument
with the given id.static ItemDocument
Datamodel.makeItemDocument
(ItemIdValue itemIdValue) Creates an emptyItemDocument
.static ItemDocument
Datamodel.makeItemDocument
(ItemIdValue itemIdValue, List<MonolingualTextValue> labels, List<MonolingualTextValue> descriptions, List<MonolingualTextValue> aliases, List<StatementGroup> statementGroups, Map<String, SiteLink> siteLinks) Creates anItemDocument
with empty revision id.static ItemDocument
Datamodel.makeItemDocument
(ItemIdValue itemIdValue, List<MonolingualTextValue> labels, List<MonolingualTextValue> descriptions, List<MonolingualTextValue> aliases, List<StatementGroup> statementGroups, Map<String, SiteLink> siteLinks, long revisionId) Creates anItemDocument
.static ItemUpdate
Datamodel.makeItemUpdate
(ItemIdValue entityId, long revisionId, TermUpdate labels, TermUpdate descriptions, Map<String, AliasUpdate> aliases, StatementUpdate statements, Collection<SiteLink> modifiedSiteLinks, Collection<String> removedSiteLinks) Creates newItemUpdate
.static LexemeDocument
Datamodel.makeLexemeDocument
(LexemeIdValue lexemeIdValue, ItemIdValue lexicalCategory, ItemIdValue language, List<MonolingualTextValue> lemmas) Creates an emptyLexemeDocument
.static LexemeDocument
Datamodel.makeLexemeDocument
(LexemeIdValue lexemeIdValue, ItemIdValue lexicalCategory, ItemIdValue language, List<MonolingualTextValue> lemmas, List<StatementGroup> statementGroups, List<FormDocument> forms, List<SenseDocument> senses) Creates aLexemeDocument
.static LexemeUpdate
Datamodel.makeLexemeUpdate
(LexemeIdValue entityId, long revisionId, ItemIdValue language, ItemIdValue lexicalCategory, TermUpdate lemmas, StatementUpdate statements, Collection<SenseDocument> addedSenses, Collection<SenseUpdate> updatedSenses, Collection<SenseIdValue> removedSenses, Collection<FormDocument> addedForms, Collection<FormUpdate> updatedForms, Collection<FormIdValue> removedForms) Creates newLexemeUpdate
.static QuantityValue
Datamodel.makeQuantityValue
(BigDecimal numericValue, BigDecimal lowerBound, BigDecimal upperBound, ItemIdValue unit) Creates aQuantityValue
.static QuantityValue
Datamodel.makeQuantityValue
(BigDecimal numericValue, ItemIdValue unit) Creates aQuantityValue
without bounds.LexemeUpdateBuilder.setLanguage
(ItemIdValue language) Sets lexeme language.LexemeUpdateBuilder.setLexicalCategory
(ItemIdValue category) Sets lexical category of the lexeme.static String
ToString.toString
(ItemIdValue o) Returns a human-readable string representation of the given object.ItemDocumentBuilder.withSiteLink
(String title, String siteKey, ItemIdValue... badges) Adds an additional site link to the constructed document.Method parameters in org.wikidata.wdtk.datamodel.helpers with type arguments of type ItemIdValueModifier and TypeMethodDescriptionstatic FormUpdate
Datamodel.makeFormUpdate
(FormIdValue entityId, long revisionId, TermUpdate representations, Collection<ItemIdValue> grammaticalFeatures, StatementUpdate statements) Creates newFormUpdate
.static SiteLink
Datamodel.makeSiteLink
(String title, String siteKey, List<ItemIdValue> badges) Creates aSiteLink
.FormUpdateBuilder.setGrammaticalFeatures
(Collection<ItemIdValue> features) Sets grammatical features of the form.Constructors in org.wikidata.wdtk.datamodel.helpers with parameters of type ItemIdValueModifierConstructorDescriptionprotected
ItemDocumentBuilder
(ItemIdValue itemIdValue) Constructor to start the build from a blank item. -
Uses of ItemIdValue in org.wikidata.wdtk.datamodel.implementation
Classes in org.wikidata.wdtk.datamodel.implementation that implement ItemIdValueMethods in org.wikidata.wdtk.datamodel.implementation that return ItemIdValueModifier and TypeMethodDescriptionItemDocumentImpl.getEntityId()
ItemUpdateImpl.getEntityId()
GlobeCoordinatesValueImpl.getGlobeItemId()
DataObjectFactoryImpl.getItemIdValue
(String id, String siteIri) LexemeDocumentImpl.getLanguage()
LexemeDocumentImpl.getLexicalCategory()
TimeValueImpl.getPreferredCalendarModelItemId()
QuantityValueImpl.getUnitItemId()
Methods in org.wikidata.wdtk.datamodel.implementation that return types with arguments of type ItemIdValueModifier and TypeMethodDescriptionSiteLinkImpl.getBadges()
FormDocumentImpl.getGrammaticalFeatures()
FormUpdateImpl.getGrammaticalFeatures()
LexemeUpdateImpl.getLanguage()
LexemeUpdateImpl.getLexicalCategory()
Methods in org.wikidata.wdtk.datamodel.implementation with parameters of type ItemIdValueModifier and TypeMethodDescriptionDataObjectFactoryImpl.getItemDocument
(ItemIdValue itemIdValue, List<MonolingualTextValue> labels, List<MonolingualTextValue> descriptions, List<MonolingualTextValue> aliases, List<StatementGroup> statementGroups, Map<String, SiteLink> siteLinks, long revisionId) DataObjectFactoryImpl.getItemUpdate
(ItemIdValue entityId, long revisionId, TermUpdate labels, TermUpdate descriptions, Map<String, AliasUpdate> aliases, StatementUpdate statements, Collection<SiteLink> modifiedSiteLinks, Collection<String> removedSiteLinks) DataObjectFactoryImpl.getLexemeDocument
(LexemeIdValue lexemeIdValue, ItemIdValue lexicalCategory, ItemIdValue language, List<MonolingualTextValue> lemmas, List<StatementGroup> statementGroups, List<FormDocument> forms, List<SenseDocument> senses, long revisionId) DataObjectFactoryImpl.getLexemeUpdate
(LexemeIdValue entityId, long revisionId, ItemIdValue language, ItemIdValue lexicalCategory, TermUpdate lemmas, StatementUpdate statements, Collection<SenseDocument> addedSenses, Collection<SenseUpdate> updatedSenses, Collection<SenseIdValue> removedSenses, Collection<FormDocument> addedForms, Collection<FormUpdate> updatedForms, Collection<FormIdValue> removedForms) DataObjectFactoryImpl.getQuantityValue
(BigDecimal numericValue, BigDecimal lowerBound, BigDecimal upperBound, ItemIdValue unit) DataObjectFactoryImpl.getQuantityValue
(BigDecimal numericValue, ItemIdValue unit) ItemDocumentImpl.withEntityId
(ItemIdValue itemId) FormDocumentImpl.withGrammaticalFeature
(ItemIdValue grammaticalFeature) LexemeDocumentImpl.withLanguage
(ItemIdValue newLanguage) LexemeDocumentImpl.withLexicalCategory
(ItemIdValue newLexicalCategory) Method parameters in org.wikidata.wdtk.datamodel.implementation with type arguments of type ItemIdValueModifier and TypeMethodDescriptionDataObjectFactoryImpl.getFormUpdate
(FormIdValue entityId, long revisionId, TermUpdate representations, Collection<ItemIdValue> grammaticalFeatures, StatementUpdate statements) DataObjectFactoryImpl.getSiteLink
(String title, String siteKey, List<ItemIdValue> badges) Constructors in org.wikidata.wdtk.datamodel.implementation with parameters of type ItemIdValueModifierConstructorDescriptionItemDocumentImpl
(ItemIdValue id, List<MonolingualTextValue> labels, List<MonolingualTextValue> descriptions, List<MonolingualTextValue> aliases, List<StatementGroup> statements, List<SiteLink> siteLinks, long revisionId) Constructor.protected
ItemDocumentImpl
(ItemIdValue subject, Map<String, MonolingualTextValue> labels, Map<String, MonolingualTextValue> descriptions, Map<String, List<MonolingualTextValue>> aliases, Map<String, List<Statement>> claims, Map<String, SiteLink> siteLinks, long revisionId) Protected constructor, meant to be used to create modified copies of instances.ItemUpdateImpl
(ItemIdValue entityId, long revisionId, TermUpdate labels, TermUpdate descriptions, Map<String, AliasUpdate> aliases, StatementUpdate statements, Collection<SiteLink> modifiedSiteLinks, Collection<String> removedSiteLinks) Initializes new item update.LexemeUpdateImpl
(LexemeIdValue entityId, long revisionId, ItemIdValue language, ItemIdValue lexicalCategory, TermUpdate lemmas, StatementUpdate statements, Collection<SenseDocument> addedSenses, Collection<SenseUpdate> updatedSenses, Collection<SenseIdValue> removedSenses, Collection<FormDocument> addedForms, Collection<FormUpdate> updatedForms, Collection<FormIdValue> removedForms) Initializes new entity update.QuantityValueImpl
(BigDecimal numericValue, BigDecimal lowerBound, BigDecimal upperBound, ItemIdValue unit) Constructor.Constructor parameters in org.wikidata.wdtk.datamodel.implementation with type arguments of type ItemIdValueModifierConstructorDescriptionFormUpdateImpl
(FormIdValue entityId, long revisionId, TermUpdate representations, Collection<ItemIdValue> grammaticalFeatures, StatementUpdate statements) Initializes new form update.SiteLinkImpl
(String title, String site, List<ItemIdValue> badges) Constructor. -
Uses of ItemIdValue in org.wikidata.wdtk.datamodel.interfaces
Fields in org.wikidata.wdtk.datamodel.interfaces declared as ItemIdValueModifier and TypeFieldDescriptionstatic final ItemIdValue
ItemIdValue.NULL
FixedItemIdValue
that refers to a non-existing item.Methods in org.wikidata.wdtk.datamodel.interfaces that return ItemIdValueModifier and TypeMethodDescriptiondefault ItemIdValue
StatementDocument.findStatementItemIdValue
(String propertyId) Returns the uniqueItemIdValue
for the given property, or null if there are zero or many such values given in statements for this property.default ItemIdValue
StatementDocument.findStatementItemIdValue
(PropertyIdValue propertyIdValue) Returns the uniqueItemIdValue
for the given property, or null if there are zero or many such values given in statements for this property.ItemDocument.getEntityId()
Return the ID of the item that the data refers to.ItemUpdate.getEntityId()
GlobeCoordinatesValue.getGlobeItemId()
Get theItemIdValue
of the globe that these coordinates refer to.DataObjectFactory.getItemIdValue
(String id, String siteIri) Creates anItemIdValue
.LexemeDocument.getLanguage()
Return the ID of the language to which the lexeme belongs (French, British English...)LexemeDocument.getLexicalCategory()
Return the ID of the lexical category to which the lexeme belongs (noun, verb...)TimeValue.getPreferredCalendarModelItemId()
Get theItemIdValue
of the preferred calendar model that should be used to display this date (and that was presumably used when entering it).QuantityValue.getUnitItemId()
Methods in org.wikidata.wdtk.datamodel.interfaces that return types with arguments of type ItemIdValueModifier and TypeMethodDescriptionSiteLink.getBadges()
Get the list of badges of the linked article.FormDocument.getGrammaticalFeatures()
Return the IDs of the grammatical features of the form (masculine, singular...)FormUpdate.getGrammaticalFeatures()
Returns new grammatical features of the form assigned in this update.LexemeUpdate.getLanguage()
Returns new lexeme language assigned in this update.LexemeUpdate.getLexicalCategory()
Returns new lexical category assigned to the lexeme in this update.Methods in org.wikidata.wdtk.datamodel.interfaces with parameters of type ItemIdValueModifier and TypeMethodDescriptionDataObjectFactory.getItemDocument
(ItemIdValue itemIdValue, List<MonolingualTextValue> labels, List<MonolingualTextValue> descriptions, List<MonolingualTextValue> aliases, List<StatementGroup> statementGroups, Map<String, SiteLink> siteLinks, long revisionId) Creates anItemDocument
.DataObjectFactory.getItemUpdate
(ItemIdValue entityId, long revisionId, TermUpdate labels, TermUpdate descriptions, Map<String, AliasUpdate> aliases, StatementUpdate statements, Collection<SiteLink> modifiedSiteLinks, Collection<String> removedSiteLinks) Creates newItemUpdate
.DataObjectFactory.getLexemeDocument
(LexemeIdValue lexemeIdValue, ItemIdValue lexicalCategory, ItemIdValue language, List<MonolingualTextValue> lemmas, List<StatementGroup> statementGroups, List<FormDocument> forms, List<SenseDocument> senses, long revisionId) Creates anLexemeDocument
.DataObjectFactory.getLexemeUpdate
(LexemeIdValue entityId, long revisionId, ItemIdValue language, ItemIdValue lexicalCategory, TermUpdate lemmas, StatementUpdate statements, Collection<SenseDocument> addedSenses, Collection<SenseUpdate> updatedSenses, Collection<SenseIdValue> removedSenses, Collection<FormDocument> addedForms, Collection<FormUpdate> updatedForms, Collection<FormIdValue> removedForms) Creates newLexemeUpdate
.DataObjectFactory.getQuantityValue
(BigDecimal numericValue, BigDecimal lowerBound, BigDecimal upperBound, ItemIdValue unit) Creates aQuantityValue
.DataObjectFactory.getQuantityValue
(BigDecimal numericValue, ItemIdValue unit) Creates aQuantityValue
without bounds.ItemDocument.withEntityId
(ItemIdValue newEntityId) Returns a new version of this document with updated ID.FormDocument.withGrammaticalFeature
(ItemIdValue grammaticalFeature) LexemeDocument.withLanguage
(ItemIdValue newLanguage) LexemeDocument.withLexicalCategory
(ItemIdValue newLexicalCategory) Method parameters in org.wikidata.wdtk.datamodel.interfaces with type arguments of type ItemIdValueModifier and TypeMethodDescriptionDataObjectFactory.getFormUpdate
(FormIdValue entityId, long revisionId, TermUpdate representations, Collection<ItemIdValue> grammaticalFeatures, StatementUpdate statements) Creates newFormUpdate
.DataObjectFactory.getSiteLink
(String title, String siteKey, List<ItemIdValue> badges) Creates aSiteLink
. -
Uses of ItemIdValue in org.wikidata.wdtk.examples.bots
Methods in org.wikidata.wdtk.examples.bots with parameters of type ItemIdValueModifier and TypeMethodDescriptionprotected void
SetLabelsForNumbersBot.addLabelForNumbers
(ItemIdValue itemIdValue) Fetches the current online data for the given item, and adds numerical labels if necessary.protected void
FixIntegerQuantityPrecisionsBot.fixIntegerPrecisions
(ItemIdValue itemIdValue, String propertyId) Fetches the current online data for the given item, and fixes the precision of integer quantities if necessary. -
Uses of ItemIdValue in org.wikidata.wdtk.wikibaseapi
Methods in org.wikidata.wdtk.wikibaseapi with parameters of type ItemIdValueModifier and TypeMethodDescription<T extends StatementDocument>
voidWikibaseDataEditor.nullEdit
(ItemIdValue itemId) Deprecated.WikibaseDataEditor.updateStatements
(ItemIdValue itemIdValue, List<Statement> addStatements, List<Statement> deleteStatements, String summary, List<String> tags) Deprecated.WikibaseDataEditor.updateTermsStatements
(ItemIdValue itemIdValue, List<MonolingualTextValue> addLabels, List<MonolingualTextValue> addDescriptions, List<MonolingualTextValue> addAliases, List<MonolingualTextValue> deleteAliases, List<Statement> addStatements, List<Statement> deleteStatements, String summary, List<String> tags) Deprecated.
WikibaseDataEditor.nullEdit(EntityIdValue)
instead.