User:PreferentialBot

From Wikidata
Jump to navigation Jump to search
Wikidata Bot This user account is a bot with a bot flag. The bot is operated by Laboramus.
  • Block this bot if it is malfunctioning.
  • Check its work.
  • Contact the operator about mistakes.
  • See all Requests for Permissions related to this bot: 1
  • License:

Bot task[edit]

If the item has multiple claims for the property, having start time (P580) and end time (P582), with one claim having only start time (P580), meaning this is the current state, then this claim is set to have preferred rank.

If the property already has preferred rank statement, or has more than one eligible statement, the bot ignores those for now. Also, items with date of death (P570) are ignored (those tend to be historic humans for whom "current" has little meaning).

Example: People's Republic of China (Q148) has a number of entries for head of government (P6), but current one isn't preferred. The bot would fix that.

Properties currently processed:

The list will change depending on the data quality and further needs. Please monitor this page for updates.

Source[edit]

https://github.com/smalyshev/pywikibot-core/blob/prefer3/prefer.py

Logs