Page MenuHomePhabricator

[WikidataFish] Add flag to detect different-precision dates as duplicates
Closed, DeclinedPublic5 Estimated Story Points

Description

Implemented for the KB upload in T202400. Since it's batch-specific, it automatically compares birth/death dates in the YYYY/YYYYMMDD formats and prevents a lower-precision duplicate from being uploaded.

In order to make it more general, we could:

  • Add a flag that can be passed as an argument to WikidataItem.add_statement() โ€“ then it would apply to any datetime statement, not just birth/death. It would also prevent it from applying to all birth/death dates by default.
  • Test it on timestamps that include months โ€“ i.e. is YYYYMM recognized as a duplicate of YYYYMMDD? Can't tell from the top of my head.

Event Timeline

Aklapper subscribed.

Removing task assignee due to inactivity, as this open task has been assigned to the same person for more than two years (see the emails sent to the task assignee on Oct27 and Nov23). Please assign this task to yourself again if you still realistically [plan to] work on this task - it would be welcome.
(See https://www.mediawiki.org/wiki/Bug_management/Assignee_cleanup for tips how to best manage your individual work in Phabricator.)

WikiFish has been abandoned in favour of OpenRefine