Class and Description |
---|
org.wikidata.wdtk.wikibaseapi.StatementUpdate
Use
WikibaseDataEditor.editEntityDocument(EntityUpdate, boolean, String, List) instead.
Class to plan a statement update operation. |
org.wikidata.wdtk.wikibaseapi.TermStatementUpdate
Use
WikibaseDataEditor.editEntityDocument(EntityUpdate, boolean, String, List) instead.
This class extends StatementUpdate to support update to terms (labels,
descriptions and aliases).
Various safeguards are implemented in this interface:
- aliases are added and deleted independently
- duplicate aliases cannot be added
- adding an alias in a language that does not have a label sets the label instead |
Method and Description |
---|
org.wikidata.wdtk.wikibaseapi.WikibaseDataEditor.editItemDocument(ItemDocument, boolean, String, List<String>)
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. |
org.wikidata.wdtk.wikibaseapi.WikibaseDataEditor.editMediaInfoDocument(MediaInfoDocument, boolean, String, List<String>)
Use
WikibaseDataEditor.editEntityDocument(EntityUpdate, boolean, String, List) instead.
Writes the data for the given media info document with the summary message
as given. Optionally, the existing data is cleared (deleted).
It creates the media info if needed.
The id of the given media info document is used to specify which media info document should be changed or created. The site IRI will be ignored for this. The revision id of the given media info 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 will be preserved for all languages for which no data is given at all. For aliases this means that writing one alias in |
org.wikidata.wdtk.wikibaseapi.WikibaseDataEditor.editPropertyDocument(PropertyDocument, boolean, String, List<String>)
Use
WikibaseDataEditor.editEntityDocument(EntityUpdate, boolean, String, List) instead.
Writes the data for the given property document with the summary message
as given. Optionally, the existing data is cleared (deleted).
The id of the given property document is used to specify which property document should be changed. The site IRI will be ignored for this. The revision id of the given property 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. |
org.wikidata.wdtk.datamodel.helpers.PropertyDocumentBuilder.forPropertyIdAndDatatype(PropertyIdValue, String) |
org.wikidata.wdtk.datamodel.interfaces.DataObjectFactory.getDatatypeIdValue(String) |
org.wikidata.wdtk.datamodel.interfaces.DatatypeIdValue.getIri()
use org.wikidata.wdtk.rdf.AbstractRdfConverter.getDatatypeIri() from the wdtk-rdf module
|
org.wikidata.wdtk.datamodel.implementation.DatatypeIdImpl.getJsonDatatypeFromDatatypeIri(String)
this method is unreliable and will be removed in a future release.
|
org.wikidata.wdtk.datamodel.implementation.DataObjectFactoryImpl.getQuantityValue(BigDecimal, BigDecimal, BigDecimal, String) |
org.wikidata.wdtk.datamodel.interfaces.DataObjectFactory.getQuantityValue(BigDecimal, BigDecimal, BigDecimal, String) |
org.wikidata.wdtk.datamodel.interfaces.DataObjectFactory.getQuantityValue(BigDecimal, String) |
org.wikidata.wdtk.datamodel.helpers.Datamodel.makeDatatypeIdValue(String) |
org.wikidata.wdtk.wikibaseapi.WikibaseDataEditor.nullEdit(ItemIdValue)
Use
WikibaseDataEditor.nullEdit(EntityIdValue) instead.
Performs a null edit on an item. This has some effects on Wikibase,
such as refreshing the labels of the referred items in the UI. |
org.wikidata.wdtk.wikibaseapi.WikibaseDataEditor.nullEdit(PropertyIdValue)
Use
WikibaseDataEditor.nullEdit(EntityIdValue) instead.
Performs a null edit on a property. This has some effects on Wikibase,
such as refreshing the labels of the referred items in the UI. |
org.wikidata.wdtk.wikibaseapi.WikibaseDataEditor.updateStatements(ItemIdValue, List<Statement>, List<Statement>, String, List<String>)
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. |
org.wikidata.wdtk.wikibaseapi.WikibaseDataEditor.updateStatements(PropertyIdValue, List<Statement>, List<Statement>, String, List<String>)
Use
WikibaseDataEditor.editEntityDocument(EntityUpdate, boolean, String, List) instead.
Updates the statements of the property document identified by the given
property id. The computation of updates is the same as for
WikibaseDataEditor.updateStatements(ItemIdValue, List, List, String, List) . |
org.wikidata.wdtk.wikibaseapi.WikibaseDataEditor.updateStatements(T, List<Statement>, List<Statement>, String, List<String>)
Use
WikibaseDataEditor.editEntityDocument(EntityUpdate, boolean, String, List) instead.
Updates statements of the given document. The document should be the
current revision of the data that is to be updated. The updates are
computed with respect to the data found in the document, making sure that
no redundant deletions or duplicate insertions happen. The references of
duplicate statements will be merged.
The generic type T of this method must be a general interface such as
|
org.wikidata.wdtk.wikibaseapi.WikibaseDataEditor.updateTermsStatements(ItemIdValue, List<MonolingualTextValue>, List<MonolingualTextValue>, List<MonolingualTextValue>, List<MonolingualTextValue>, List<Statement>, List<Statement>, String, List<String>)
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. |
org.wikidata.wdtk.wikibaseapi.WikibaseDataEditor.updateTermsStatements(T, List<MonolingualTextValue>, List<MonolingualTextValue>, List<MonolingualTextValue>, List<MonolingualTextValue>, List<Statement>, List<Statement>, String, List<String>)
Use
WikibaseDataEditor.editEntityDocument(EntityUpdate, boolean, String, List) instead.
Updates the terms and statements of the current document.
The updates are computed with respect to the current data in the document,
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. |
Constructor and Description |
---|
org.wikidata.wdtk.datamodel.implementation.DatatypeIdImpl(String) |
org.wikidata.wdtk.datamodel.implementation.QuantityValueImpl(BigDecimal, BigDecimal, BigDecimal, String)
supply the unit as an ItemIdValue instead
|
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