Description¶
-
class
wikibase_api.models.Description(api)¶ Collection of API functions for descriptions
Example function call:
from wikibase_api import Wikibase wb = Wikibase( # Parameters ) r = wb.description.set("Q1", "totality of space and all matter and radiation in it") print(r)
-
set(entity_id, description, language)¶ Set the title in the specified language for an entity
Parameters: - entity_id (str) – Entity identifier (e.g.
"Q1") - description (str) – Value to set the description to (e.g.
"third planet from the Sun in the Solar System") - language (str) – Language of the description (e.g.
"en")
Returns: Response
Return type: dict
- entity_id (str) – Entity identifier (e.g.
-