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 ItemIdValueDatamodel.makeItemIdValue(String id, String siteIri) Creates anItemIdValue.static ItemIdValueDatamodel.makeWikidataItemIdValue(String id) Creates anItemIdValuefor Wikidata.Methods in org.wikidata.wdtk.datamodel.helpers with parameters of type ItemIdValueModifier and TypeMethodDescriptionDatamodelConverter.copy(ItemIdValue object) Copies anItemIdValue.static ItemUpdateBuilderItemUpdateBuilder.forBaseRevisionId(ItemIdValue itemId, long revisionId) Creates new builder object for constructing update of item entity with given revision ID.static ItemUpdateBuilderItemUpdateBuilder.forEntityId(ItemIdValue itemId) Creates new builder object for constructing update of item entity with given ID.static ItemDocumentBuilderItemDocumentBuilder.forItemId(ItemIdValue itemIdValue) Starts the construction of anItemDocumentwith the given id.static ItemDocumentDatamodel.makeItemDocument(ItemIdValue itemIdValue) Creates an emptyItemDocument.static ItemDocumentDatamodel.makeItemDocument(ItemIdValue itemIdValue, List<MonolingualTextValue> labels, List<MonolingualTextValue> descriptions, List<MonolingualTextValue> aliases, List<StatementGroup> statementGroups, Map<String, SiteLink> siteLinks) Creates anItemDocumentwith empty revision id.static ItemDocumentDatamodel.makeItemDocument(ItemIdValue itemIdValue, List<MonolingualTextValue> labels, List<MonolingualTextValue> descriptions, List<MonolingualTextValue> aliases, List<StatementGroup> statementGroups, Map<String, SiteLink> siteLinks, long revisionId) Creates anItemDocument.static ItemUpdateDatamodel.makeItemUpdate(ItemIdValue entityId, long revisionId, TermUpdate labels, TermUpdate descriptions, Map<String, AliasUpdate> aliases, StatementUpdate statements, Collection<SiteLink> modifiedSiteLinks, Collection<String> removedSiteLinks) Creates newItemUpdate.static LexemeDocumentDatamodel.makeLexemeDocument(LexemeIdValue lexemeIdValue, ItemIdValue lexicalCategory, ItemIdValue language, List<MonolingualTextValue> lemmas) Creates an emptyLexemeDocument.static LexemeDocumentDatamodel.makeLexemeDocument(LexemeIdValue lexemeIdValue, ItemIdValue lexicalCategory, ItemIdValue language, List<MonolingualTextValue> lemmas, List<StatementGroup> statementGroups, List<FormDocument> forms, List<SenseDocument> senses) Creates aLexemeDocument.static LexemeUpdateDatamodel.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 QuantityValueDatamodel.makeQuantityValue(BigDecimal numericValue, BigDecimal lowerBound, BigDecimal upperBound, ItemIdValue unit) Creates aQuantityValue.static QuantityValueDatamodel.makeQuantityValue(BigDecimal numericValue, ItemIdValue unit) Creates aQuantityValuewithout bounds.LexemeUpdateBuilder.setLanguage(ItemIdValue language) Sets lexeme language.LexemeUpdateBuilder.setLexicalCategory(ItemIdValue category) Sets lexical category of the lexeme.static StringToString.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 FormUpdateDatamodel.makeFormUpdate(FormIdValue entityId, long revisionId, TermUpdate representations, Collection<ItemIdValue> grammaticalFeatures, StatementUpdate statements) Creates newFormUpdate.static SiteLinkDatamodel.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 ItemIdValueModifierConstructorDescriptionprotectedItemDocumentBuilder(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.protectedItemDocumentImpl(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 ItemIdValueItemIdValue.NULLFixedItemIdValuethat refers to a non-existing item.Methods in org.wikidata.wdtk.datamodel.interfaces that return ItemIdValueModifier and TypeMethodDescriptiondefault ItemIdValueStatementDocument.findStatementItemIdValue(String propertyId) Returns the uniqueItemIdValuefor the given property, or null if there are zero or many such values given in statements for this property.default ItemIdValueStatementDocument.findStatementItemIdValue(PropertyIdValue propertyIdValue) Returns the uniqueItemIdValuefor 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 theItemIdValueof 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 theItemIdValueof 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 aQuantityValuewithout 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 voidSetLabelsForNumbersBot.addLabelForNumbers(ItemIdValue itemIdValue) Fetches the current online data for the given item, and adds numerical labels if necessary.protected voidFixIntegerQuantityPrecisionsBot.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.