Wikidata:Requests for permissions/Bot/Makrobot 2
The following discussion is closed. Please do not modify it. Subsequent comments should be made in a new section. A summary of the conclusions reached follows.
- Approved--Ymblanter (talk) 07:46, 20 October 2015 (UTC)[reply]
Makrobot 2 edit
Makrobot (talk • contribs • new items • new lexemes • SUL • Block log • User rights log • User rights • xtools)
Operator: Markus Krötzsch (talk • contribs • logs)
Task/s:
- Fix the precision of data for integer-valued quantity properties to be exact (±0) rather than ±1
- Start with property population (P1082)
Code:
- Java, Wikidata Toolkit (source code)
- Bot code: FixIntegerQuantityPrecisionsBot.java (link to current dev branch; will be in master in the future)
Function details: Many quantity values in Wikidata have unintended imprecision. In particular, we find many population (P1082) values that look like "11,150,516±1". This is clearly inadequate for integer numbers. It is also basically never supported by the given source. It reduces usability and, eventually, trust in Wikidata.
Fortunately, it is not hard to fix. This bot does it by the following rules:
- Iterate over all items that have a population (P1082) (based on a recent dump)
- Check the online data for population (P1082) values with a precision of (exactly!) ±1; other statements are not touched
- Change the value of the statement so that the value is exact instead ("±0", not displayed)
- Keep all qualifiers, references, and the rank as they were
If many statements in one item are fixed, then this happens in a single edit.
A small number of example edits have been made to show that it works:
- fixed 14 population numbers for Belgium, not touching the (correct) rest
- Ten further demo edits were made on: Uetersen (Q1404), Samara (Q894), Israel (Q801), Saint Petersburg (Q656) Vilnius (Q216), Germany (Q183), Brazil (Q155), People's Republic of China (Q148), San Francisco (Q62), Netherlands (Q55)
- Around 2,126 further items will be edited for population (P1082)
Using the same code, a similar scheme can be executed for other properties that have this problem (that is, essentially any "integer" property). --Markus Krötzsch (talk) 20:31, 17 October 2015 (UTC)[reply]
- Support --Pasleim (talk) 21:37, 17 October 2015 (UTC)[reply]
- Support Popcorndude (talk) 01:27, 18 October 2015 (UTC)[reply]
- Can you attempt to apply this only to quantities without units? --- Jura 10:08, 20 October 2015 (UTC)[reply]