-
ClassDescriptionUse
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
-
FieldDescriptionuse org.wikidata.wdtk.rdf.Vocabulary.DT_COMMONS_MEDIAuse org.wikidata.wdtk.rdf.Vocabulary.DT_EDTFuse org.wikidata.wdtk.rdf.Vocabulary.DT_EXTERNAL_IDuse org.wikidata.wdtk.rdf.Vocabulary.DT_FORMuse org.wikidata.wdtk.rdf.Vocabulary.DT_GEO_SHAPEuse org.wikidata.wdtk.rdf.Vocabulary.DT_GLOBE_COORDINATESuse org.wikidata.wdtk.rdf.Vocabulary.DT_ITEMuse org.wikidata.wdtk.rdf.Vocabulary.DT_LEXEMEuse org.wikidata.wdtk.rdf.Vocabulary.DT_MATHuse org.wikidata.wdtk.rdf.Vocabulary.DT_MEDIA_INFOuse org.wikidata.wdtk.rdf.Vocabulary.DT_MONOLINGUAL_TEXTuse org.wikidata.wdtk.rdf.Vocabulary.DT_PROPERTYuse org.wikidata.wdtk.rdf.Vocabulary.DT_QUANTITYuse org.wikidata.wdtk.rdf.Vocabulary.DT_SENSEuse org.wikidata.wdtk.rdf.Vocabulary.DT_STRINGuse org.wikidata.wdtk.rdf.Vocabulary.DT_TABULAR_DATAuse org.wikidata.wdtk.rdf.Vocabulary.DT_TIMEuse org.wikidata.wdtk.rdf.Vocabulary.DT_URL
-
MethodDescriptionthis method is unreliable and will be removed in a future release.use org.wikidata.wdtk.rdf.AbstractRdfConverter.getDatatypeIri() from the wdtk-rdf moduleUse
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.
UseWikibaseDataEditor.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
UseWikibaseDataEditor.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.
UseWikibaseDataEditor.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.UseWikibaseDataEditor.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.UseWikibaseDataEditor.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.UseWikibaseDataEditor.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 forWikibaseDataEditor.updateStatements(ItemIdValue, List, List, String, List)
.UseWikibaseDataEditor.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
ItemDocument
,PropertyDocument
, orStatementDocument
. Specific implementations of these interfaces are not permitted.UseWikibaseDataEditor.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.UseWikibaseDataEditor.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.
-
ConstructorDescriptionsupply the unit as an ItemIdValue instead
WikibaseDataEditor.editEntityDocument(EntityUpdate, boolean, String, List)
instead. Class to plan a statement update operation.