Page MenuHomePhabricator

Update harvest_template.py to use wbparsevalue and accept arbitrary datatypes
Open, MediumPublic

Description

Currently harvest_template.py supports some hard coded data types (images, strings and items). For other types it should try to have wbparsevalue parse it and use that output to add the claim.

An example would be to add birth dates based on fields in an infobox. https://en.wikipedia.org/wiki/Vincent_van_Gogh contains "birth_date = 30 March 1853" and we want to add https://www.wikidata.org/wiki/Property:P569 -> https://www.wikidata.org/w/api.php?action=wbparsevalue&datatype=time&values=30%20March%201853