User:PreferentialBot
This user account is a bot with a bot flag. The bot is operated by Laboramus. |
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:
- head of government (P6)
- country (P17)
- spouse (P26)
- head of state (P35)
- capital (P36)
- flag image (P41)
- coat of arms image (P94)
- home venue (P115)
- league or competition (P118)
- publisher (P123)
- maintained by (P126)
- operator (P137)
- named after (P138)
- logo image (P154)
- headquarters location (P159)
- chief executive officer (P169)
- manufacturer (P176)
- coat of arms (P237)
- military branch (P241)
- ISO 3166-2 code (P300)
- chairperson (P488)
- commander of (DEPRECATED) (P598)
- NUTS code (P605)
- coordinate location (P625)
- located on street (P669)
- diocese (P708)
- parent organization (P749)
- family name (P734)
- pennant number (P879)
- Austrian municipality key (P964)
- director / manager (P1037)
- rector (P1075)
- officeholder (P1308)
- heritage designation (P1435)
- legal form (P1454)
- title (P1476)
- native label (P1705)
- short name (P1813)
- UCI code of cycling team (P1998)
- software version identifier (P348)
- population (P1082)
- quantity (P1114)
- number of households (P1538)
- female population (P1539)
- male population (P1540)
- area (P2046)
- member count (P2124)
- nominal GDP (P2131)
- nominal GDP per capita (P2132)
- total reserves (P2134)
- total revenue (P2139)
- count of students (P2196)
- life expectancy (P2250)
- net profit (P2295)
- PPP GDP per capita (P2299)
- total assets (P2403)
- number of out-of-school children (P2573)
- common equity tier 1 capital ratio (CETI) (P2663)
- budget (P2769)
- operating income (P3362)
- GDP (PPP) (P4010)
- number of houses (P4080)
- total fertility rate (P4841)
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