Uses of Interface
org.wikidata.wdtk.datamodel.interfaces.ItemDocument
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.
Components for downloading and processing Wikibase dump files.
Package for example programs that demonstrate how to use Wikidata Toolkit in practice.
Package for examples of bots that edit Wikidata.
Serializer for RDF
Components for accessing the Web API of a Wikibase website, such as wikidata.org.
-
Uses of ItemDocument in org.wikidata.wdtk.datamodel.helpers
Modifier and TypeMethodDescriptionItemDocumentBuilder.build()
Returns theItemDocument
that has been built.DatamodelConverter.copy
(ItemDocument object) Copies anItemDocument
.JsonDeserializer.deserializeItemDocument
(String json) Deserializes a JSON string into anItemDocument
.DatamodelFilter.filter
(ItemDocument item) 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
.Modifier and TypeMethodDescriptionDatamodelConverter.copy
(ItemDocument object) Copies anItemDocument
.static boolean
Equality.equalsItemDocument
(ItemDocument o1, Object o2) Returnstrue
if the parameters are twoItemDocument
objects with exactly the same data.DatamodelFilter.filter
(ItemDocument item) static ItemUpdateBuilder
ItemUpdateBuilder.forBaseRevision
(ItemDocument revision) Creates new builder object for constructing update of given base item entity revision.static ItemDocumentBuilder
ItemDocumentBuilder.fromItemDocument
(ItemDocument initialDocument) Starts the construction of anItemDocument
from an existing value.static String
JsonSerializer.getJsonString
(ItemDocument itemDocument) Serializes the given object in JSON and returns the resulting string.static int
Hash.hashCode
(ItemDocument o) Returns a hash code for the given object.void
JsonSerializer.processItemDocument
(ItemDocument itemDocument) static String
ToString.toString
(ItemDocument o) Returns a human-readable string representation of the given object.ModifierConstructorDescriptionprotected
ItemDocumentBuilder
(ItemDocument initialDocument) Constructor to start the build from an existing item. -
Uses of ItemDocument in org.wikidata.wdtk.datamodel.implementation
Modifier and TypeMethodDescriptionDataObjectFactoryImpl.getItemDocument
(ItemIdValue itemIdValue, List<MonolingualTextValue> labels, List<MonolingualTextValue> descriptions, List<MonolingualTextValue> aliases, List<StatementGroup> statementGroups, Map<String, SiteLink> siteLinks, long revisionId) ItemDocumentImpl.withAliases
(String language, List<MonolingualTextValue> aliases) ItemDocumentImpl.withDescription
(MonolingualTextValue newDescription) ItemDocumentImpl.withEntityId
(ItemIdValue itemId) ItemDocumentImpl.withLabel
(MonolingualTextValue newLabel) ItemDocumentImpl.withoutStatementIds
(Set<String> statementIds) ItemDocumentImpl.withRevisionId
(long newRevisionId) ItemDocumentImpl.withStatement
(Statement statement) -
Uses of ItemDocument in org.wikidata.wdtk.datamodel.interfaces
Modifier 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
.ItemDocument.withAliases
(String language, List<MonolingualTextValue> aliases) ItemDocument.withDescription
(MonolingualTextValue newDescription) ItemDocument.withEntityId
(ItemIdValue newEntityId) Returns a new version of this document with updated ID.ItemDocument.withLabel
(MonolingualTextValue newLabel) ItemDocument.withoutStatementIds
(Set<String> statementIds) ItemDocument.withRevisionId
(long newRevisionId) ItemDocument.withStatement
(Statement statement) Modifier and TypeMethodDescriptiondefault void
EntityDocumentProcessor.processItemDocument
(ItemDocument itemDocument) Processes the given ItemDocument.void
EntityDocumentProcessorBroker.processItemDocument
(ItemDocument itemDocument) void
EntityDocumentProcessorFilter.processItemDocument
(ItemDocument itemDocument) -
Uses of ItemDocument in org.wikidata.wdtk.dumpfiles
Modifier and TypeMethodDescriptionvoid
EntityTimerProcessor.processItemDocument
(ItemDocument itemDocument) -
Uses of ItemDocument in org.wikidata.wdtk.examples
Modifier and TypeMethodDescriptionvoid
ClassPropertyUsageAnalyzer.processItemDocument
(ItemDocument itemDocument) void
DataExtractionProcessor.processItemDocument
(ItemDocument itemDocument) void
GenderRatioProcessor.processItemDocument
(ItemDocument itemDocument) void
GreatestNumberProcessor.processItemDocument
(ItemDocument itemDocument) void
JsonSerializationProcessor.processItemDocument
(ItemDocument itemDocument) void
LifeExpectancyProcessor.processItemDocument
(ItemDocument itemDocument) void
TutorialDocumentProcessor.processItemDocument
(ItemDocument itemDocument) Processes one item document.void
WorldMapProcessor.processItemDocument
(ItemDocument itemDocument) -
Uses of ItemDocument in org.wikidata.wdtk.examples.bots
Modifier and TypeMethodDescriptionprotected boolean
SetLabelsForNumbersBot.lacksSomeLanguage
(ItemDocument itemDocument) Returns true if the given item document lacks a label for at least one of the languages covered.void
FixIntegerQuantityPrecisionsBot.processItemDocument
(ItemDocument itemDocument) void
SetLabelsForNumbersBot.processItemDocument
(ItemDocument itemDocument) -
Uses of ItemDocument in org.wikidata.wdtk.rdf
Modifier and TypeMethodDescriptionvoid
RdfSerializer.processItemDocument
(ItemDocument itemDocument) void
AbstractRdfConverter.writeItemDocument
(ItemDocument document) void
RdfConverter.writeItemDocument
(ItemDocument document) -
Uses of ItemDocument in org.wikidata.wdtk.wikibaseapi
Modifier and TypeMethodDescriptionWikibaseDataEditor.createItemDocument
(ItemDocument document, String summary, List<String> tags) Creates new item document.WikibaseDataEditor.editItemDocument
(ItemDocument itemDocument, boolean clear, String summary, List<String> tags) 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.Modifier and TypeMethodDescriptionWikibaseDataEditor.createItemDocument
(ItemDocument document, String summary, List<String> tags) Creates new item document.WikibaseDataEditor.editItemDocument
(ItemDocument itemDocument, boolean clear, String summary, List<String> tags) Deprecated.
WikibaseDataEditor.editEntityDocument(EntityUpdate, boolean, String, List)
instead.