Label

class wikibase_api.models.Label(api)

Collection of API functions for labels

Example function call:

from wikibase_api import Wikibase

wb = Wikibase(
    # Parameters
)

r = wb.label.set("Q1", "univers", "fr")
print(r)
set(entity_id, label, language)

Set the label in the specified language for an entity

Parameters:
  • entity_id (str) – Entity identifier (e.g. "Q1")
  • label (str) – Value to set the label (site title) to (e.g. "Universe")
  • language (str) – Language of the description (e.g. "en")
Returns:

Response

Return type:

dict