Page MenuHomePhabricator

Support for Lexicographical data/WikibaseLexeme in Pywikibot
Open, MediumPublicFeature

Description

The initial version was deployed to Wikidata in May 2018.

With the WikibaseLexeme extension largely stabilized time has come to implement support for it in Pywikibot.

In addition to three classes for Lexemes, Forms and Senses (see the data model) there should probably be a new site class which implements them.

The design for these should probably be done in conjuncture with T223820: Properly implement structured data access on Commons in Pywikibot and T186200: Rewrite Wikibase data model implementation

Event Timeline

Xqt triaged this task as Medium priority.Dec 3 2018, 8:49 PM
Lokal_Profil renamed this task from Support for Lexicographical data to Support for Lexicographical data/WikibaseLexeme in Pywikibot.Jun 25 2019, 2:44 PM
Lokal_Profil updated the task description. (Show Details)
Lokal_Profil changed the subtype of this task from "Task" to "Feature Request".Jun 25 2019, 2:46 PM

Change 522597 had a related patch set uploaded (by Matěj Suchánek; owner: Matěj Suchánek):
[pywikibot/core@master] [FEAT] Introduce WikibaseEntity class

https://gerrit.wikimedia.org/r/522597

Change 522597 merged by jenkins-bot:
[pywikibot/core@master] [FEAT] Introduce WikibaseEntity class

https://gerrit.wikimedia.org/r/522597

Change 461372 had a related patch set uploaded (by Matěj Suchánek; owner: Rua):
[pywikibot/core@master] [FEAT] Add support for Lexicographical data

https://gerrit.wikimedia.org/r/461372

As a side note WBI is currently being rewritten (to support lexemes fully). See https://github.com/LeMyst/WikibaseIntegrator/tree/rewrite-wbi

The code is MIT licensed.

Change 461372 merged by jenkins-bot:

[pywikibot/core@master] [FEAT] Add support for Lexicographical data

https://gerrit.wikimedia.org/r/461372

Not everything is done, some methods are stubs that just raise an error.

Change 776902 had a related patch set uploaded (by Matěj Suchánek; author: Matěj Suchánek):

[pywikibot/core@master] [bugfix] Fix regressions from lexeme support

https://gerrit.wikimedia.org/r/776902

Change 776902 merged by jenkins-bot:

[pywikibot/core@master] [bugfix] Fix regressions from lexeme support

https://gerrit.wikimedia.org/r/776902

Has support been fully implemented now? Note that https://www.wikidata.org/wiki/Wikidata:Pywikibot_-_Python_3_Tutorial still claims that pywikibot currently doesn't support lexemes at all, which doesn't appear to be the case anymore.

There are still some gaps, and the support is somewhat lame (e.g., not possible to create a lexeme). I had already updated a similar warning on https://www.wikidata.org/wiki/Wikidata:Creating_a_bot.