Page MenuHomePhabricator

Harvest lists of items from a single infobox field
Closed, ResolvedPublic

Description

harvest_template should be able to create multiple statements for infobox fields that contain a list of items. For example, creating multiple has_part statements from past_members and current_members fields of Infobox musical artist.

Event Timeline

Ejegg raised the priority of this task from to Needs Triage.
Ejegg updated the task description. (Show Details)
Ejegg added a project: Pywikibot-Wikidata.
Ejegg subscribed.
Restricted Application added subscribers: Aklapper, Unknown Object (MLST). · View Herald TranscriptJan 27 2015, 10:18 PM

I should highlight that importing multiple values is okay only by certain parameters (like the mentioned ones). For example, place_of_birth may contain more links but only the first one is valid.

Just to make it clear.

XXN subscribed.

Useful suggestion. Needed also for such common properties like "occupation" for people, and P150 (contains administrative territorial entity) and P1383 (contains settlement) for administrative subdivisions of countries.
I support implementing it.

To implement this, there should be added one more command line option (something like ~"-listok" / "-multiple") which will tell to script that is ok to harvest all listed values in a template parameter; but by default this should be disabled (it is not always safe, as Matej said above).

Change 364475 had a related patch set uploaded (by Matěj Suchánek; owner: Matěj Suchánek):
[pywikibot/core@master] [IMPR] Enhance argument management in harvest_template.py

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

Change 364475 merged by jenkins-bot:
[pywikibot/core@master] [IMPR] Enhance argument management in harvest_template.py

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

Change 371586 had a related patch set uploaded (by Ejegg; owner: Ejegg):
[pywikibot/core@master] [WIP] harvest multiple values from one parameter

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

Change 377182 had a related patch set uploaded (by Ejegg; owner: Ejegg):
[pywikibot/core@master] WIP Split lists to harvest multiple things

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

Change 371586 merged by jenkins-bot:
[pywikibot/core@master] Harvest multiple values from one parameter

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

Xqt assigned this task to matej_suchanek.

Change 377182 abandoned by Ejegg:
Split lists to harvest multiple things

Reason:
alternate approach was merged

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