CountyBot (talk • contribs • new items • new lexemes • SUL • Block log • User rights log • User rights • xtools)
Operator: Owain (talk • contribs • logs)
Task/s: To add historic county (P7959) to places and natural features in United Kingdom (Q145) and Ireland (Q27), and for connected purposes.
Code: Not available online: Python script using Pywikibot to calculate and assign historic county (P7959).
Function details: Create list of items in United Kingdom (Q145) and Ireland (Q27) using SPARQL generator; Iterate over items with point-in-polygon analysis using each item's coordinate location (P625) and border data from http://county-borders.co.uk to calculate correct county; Create claim historic county (P7959) on each item accordingly. --Owain (talk) 07:47, 11 March 2020 (UTC)[reply]