Package | Description |
---|---|
org.wikidata.wdtk.datamodel.helpers |
Package for mostly static helper code to work with data objects.
|
org.wikidata.wdtk.datamodel.implementation |
Basic implementation for objects representing Wikibase data and related factories.
|
org.wikidata.wdtk.datamodel.interfaces |
Interfaces for representing Wikibase data and related factories.
|
org.wikidata.wdtk.dumpfiles |
Components for downloading and processing Wikibase dump files.
|
org.wikidata.wdtk.examples |
Package for example programs that demonstrate how to use Wikidata Toolkit in practice.
|
org.wikidata.wdtk.examples.bots |
Package for examples of bots that edit Wikidata.
|
org.wikidata.wdtk.rdf |
Serializer for RDF
|
org.wikidata.wdtk.wikibaseapi |
Components for accessing the Web API of a Wikibase website, such as wikidata.org.
|
Modifier and Type | Method and Description |
---|---|
ItemDocument |
ItemDocumentBuilder.build()
Returns the
ItemDocument that has been built. |
ItemDocument |
DatamodelConverter.copy(ItemDocument object)
Copies an
ItemDocument . |
ItemDocument |
JsonDeserializer.deserializeItemDocument(String json)
Deserializes a JSON string into an
ItemDocument . |
ItemDocument |
DatamodelFilter.filter(ItemDocument item) |
static ItemDocument |
Datamodel.makeItemDocument(ItemIdValue itemIdValue)
Creates an empty
ItemDocument . |
static ItemDocument |
Datamodel.makeItemDocument(ItemIdValue itemIdValue,
List<MonolingualTextValue> labels,
List<MonolingualTextValue> descriptions,
List<MonolingualTextValue> aliases,
List<StatementGroup> statementGroups,
Map<String,SiteLink> siteLinks)
Creates an
ItemDocument 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 an
ItemDocument . |
Modifier and Type | Method and Description |
---|---|
ItemDocument |
DatamodelConverter.copy(ItemDocument object)
Copies an
ItemDocument . |
static boolean |
Equality.equalsItemDocument(ItemDocument o1,
Object o2)
Returns
true if the parameters are two ItemDocument objects with
exactly the same data. |
ItemDocument |
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 an
ItemDocument 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.
|
Constructor and Description |
---|
ItemDocumentBuilder(ItemDocument initialDocument)
Constructor to start the build from an existing item.
|
Modifier and Type | Class and Description |
---|---|
class |
ItemDocumentImpl
Jackson implementation of
ItemDocument . |
Modifier and Type | Method and Description |
---|---|
ItemDocument |
DataObjectFactoryImpl.getItemDocument(ItemIdValue itemIdValue,
List<MonolingualTextValue> labels,
List<MonolingualTextValue> descriptions,
List<MonolingualTextValue> aliases,
List<StatementGroup> statementGroups,
Map<String,SiteLink> siteLinks,
long revisionId) |
ItemDocument |
ItemDocumentImpl.withAliases(String language,
List<MonolingualTextValue> aliases) |
ItemDocument |
ItemDocumentImpl.withDescription(MonolingualTextValue newDescription) |
ItemDocument |
ItemDocumentImpl.withEntityId(ItemIdValue itemId) |
ItemDocument |
ItemDocumentImpl.withLabel(MonolingualTextValue newLabel) |
ItemDocument |
ItemDocumentImpl.withoutStatementIds(Set<String> statementIds) |
ItemDocument |
ItemDocumentImpl.withRevisionId(long newRevisionId) |
ItemDocument |
ItemDocumentImpl.withStatement(Statement statement) |
Modifier and Type | Method and Description |
---|---|
ItemDocument |
DataObjectFactory.getItemDocument(ItemIdValue itemIdValue,
List<MonolingualTextValue> labels,
List<MonolingualTextValue> descriptions,
List<MonolingualTextValue> aliases,
List<StatementGroup> statementGroups,
Map<String,SiteLink> siteLinks,
long revisionId)
Creates an
ItemDocument . |
ItemDocument |
ItemDocument.withAliases(String language,
List<MonolingualTextValue> aliases) |
ItemDocument |
ItemDocument.withDescription(MonolingualTextValue newDescription) |
ItemDocument |
ItemDocument.withEntityId(ItemIdValue newEntityId)
Returns a new version of this document with updated ID.
|
ItemDocument |
ItemDocument.withLabel(MonolingualTextValue newLabel) |
ItemDocument |
ItemDocument.withoutStatementIds(Set<String> statementIds) |
ItemDocument |
ItemDocument.withRevisionId(long newRevisionId) |
ItemDocument |
ItemDocument.withStatement(Statement statement) |
Modifier and Type | Method and Description |
---|---|
default void |
EntityDocumentProcessor.processItemDocument(ItemDocument itemDocument)
Processes the given ItemDocument.
|
void |
EntityDocumentProcessorFilter.processItemDocument(ItemDocument itemDocument) |
void |
EntityDocumentProcessorBroker.processItemDocument(ItemDocument itemDocument) |
Modifier and Type | Method and Description |
---|---|
void |
EntityTimerProcessor.processItemDocument(ItemDocument itemDocument) |
Modifier and Type | Method and Description |
---|---|
void |
WorldMapProcessor.processItemDocument(ItemDocument itemDocument) |
void |
GreatestNumberProcessor.processItemDocument(ItemDocument itemDocument) |
void |
DataExtractionProcessor.processItemDocument(ItemDocument itemDocument) |
void |
ClassPropertyUsageAnalyzer.processItemDocument(ItemDocument itemDocument) |
void |
JsonSerializationProcessor.processItemDocument(ItemDocument itemDocument) |
void |
GenderRatioProcessor.processItemDocument(ItemDocument itemDocument) |
void |
LifeExpectancyProcessor.processItemDocument(ItemDocument itemDocument) |
void |
TutorialDocumentProcessor.processItemDocument(ItemDocument itemDocument)
Processes one item document.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
SetLabelsForNumbersBot.lacksSomeLanguage(ItemDocument itemDocument)
Returns true if the given item document lacks a label for at least one of
the languages covered.
|
void |
SetLabelsForNumbersBot.processItemDocument(ItemDocument itemDocument) |
void |
FixIntegerQuantityPrecisionsBot.processItemDocument(ItemDocument itemDocument) |
Modifier and Type | Method and Description |
---|---|
void |
RdfSerializer.processItemDocument(ItemDocument itemDocument) |
void |
RdfConverter.writeItemDocument(ItemDocument document) |
void |
AbstractRdfConverter.writeItemDocument(ItemDocument document) |
Modifier and Type | Method and Description |
---|---|
ItemDocument |
WikibaseDataEditor.createItemDocument(ItemDocument document,
String summary,
List<String> tags)
Creates new item document.
|
ItemDocument |
WikibaseDataEditor.editItemDocument(ItemDocument itemDocument,
boolean clear,
String summary,
List<String> tags)
Deprecated.
Use
WikibaseDataEditor.editEntityDocument(EntityUpdate, boolean, String, List) instead.
Writes the data for the given item document with the summary message as
given. Optionally, the existing data is cleared (deleted).
The id of the given item document is used to specify which item document should be changed. The site IRI will be ignored for this. The revision id of the given item document is used to specify the base revision, enabling the API to detect edit conflicts. The value 0 can be used to omit this. It is strongly recommended to give a revision id when making edits where the outcome depends on the previous state of the data (i.e., any edit that does not use "clear"). If the data is not cleared, then the existing data will largely be preserved. Statements with empty ids will be added without checking if they exist already; statements with (valid) ids will replace any existing statements with these ids or just be added if there are none. Labels, descriptions, and aliases will be preserved for all languages for which no data is given at all. For aliases this means that writing one alias in a language will overwrite all aliases in this language, so some care is needed. |
ItemDocument |
WikibaseDataEditor.updateStatements(ItemIdValue itemIdValue,
List<Statement> addStatements,
List<Statement> deleteStatements,
String summary,
List<String> tags)
Deprecated.
Use
WikibaseDataEditor.editEntityDocument(EntityUpdate, boolean, String, List) instead.
Updates the 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. |
ItemDocument |
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.
Use
WikibaseDataEditor.editEntityDocument(EntityUpdate, boolean, String, List) instead.
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. |
Modifier and Type | Method and Description |
---|---|
ItemDocument |
WikibaseDataEditor.createItemDocument(ItemDocument document,
String summary,
List<String> tags)
Creates new item document.
|
ItemDocument |
WikibaseDataEditor.editItemDocument(ItemDocument itemDocument,
boolean clear,
String summary,
List<String> tags)
Deprecated.
Use
WikibaseDataEditor.editEntityDocument(EntityUpdate, boolean, String, List) instead.
Writes the data for the given item document with the summary message as
given. Optionally, the existing data is cleared (deleted).
The id of the given item document is used to specify which item document should be changed. The site IRI will be ignored for this. The revision id of the given item document is used to specify the base revision, enabling the API to detect edit conflicts. The value 0 can be used to omit this. It is strongly recommended to give a revision id when making edits where the outcome depends on the previous state of the data (i.e., any edit that does not use "clear"). If the data is not cleared, then the existing data will largely be preserved. Statements with empty ids will be added without checking if they exist already; statements with (valid) ids will replace any existing statements with these ids or just be added if there are none. Labels, descriptions, and aliases will be preserved for all languages for which no data is given at all. For aliases this means that writing one alias in a language will overwrite all aliases in this language, so some care is needed. |
Copyright © 2014–2024 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage