Wikidata:Requests for permissions/Bot/MatSuBot 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) 17:27, 21 September 2015 (UTC)[reply]
MatSuBot 2 edit
MatSuBot (talk • contribs • new items • new lexemes • SUL • Block log • User rights log • User rights • xtools)
Operator: Matěj Suchánek (talk • contribs • logs)
Task: move property metadata from talk pages to property statements
Code: https://github.com/matejsuchanek/metabot (Pywikibot)
Function details: This is my first Python script. I'm not much familiar with object-oriented programming (Q79872), so it may suffer from some newbie mistakes. Basically, the bot checks properties' talk pages and harvest all possible data which are present there but not on property statements. It currently supports parameters |subject item=
[1], |source=
[2], |formatter URL=
and |example=
. I took some inspiration from mw:Manual:Pywikibot/harvest_template.py.
(Note that pywikibot does not support all datatypes and statements on properties yet, so I did some hacks in my local files to make it work.)
I will welcome any suggestions as well as pull requests on GitHub. --Matěj Suchánek (talk) 15:34, 13 September 2015 (UTC)[reply]
Open questions:
- On hold adding inception (P571) to all properties (15:40, 13 September 2015 (UTC))
- Comment adding imported from Wikimedia project (P143)?
- removing data from talk pages after they have been moved (19:53, 14 September 2015 (UTC))
- maybe a separate task?
- Support looks good to me. Popcorndude (talk) 18:06, 13 September 2015 (UTC)[reply]
+ Additionaly I've added support for harvesting |pattern=
from {{Constraint:Format}}
[3]. These are needed to validate given examples. Matěj Suchánek (talk) 19:53, 14 September 2015 (UTC)[reply]
- Is the task fully blocked, or are there some things which can be done now?--Ymblanter (talk) 19:55, 15 September 2015 (UTC)[reply]
- As qualifiers are only needed by adding examples, they are the only blocked part. The other stuff should work. Although there are still open questions, I can ignore them for now and get back to them later. Matěj Suchánek (talk) 20:03, 15 September 2015 (UTC)[reply]
- Adding examples using P1859 (P1859) etc. is anyway controversial, see the deletion request on WD:PFD --Pasleim (talk) 23:37, 15 September 2015 (UTC)[reply]
- As qualifiers are only needed by adding examples, they are the only blocked part. The other stuff should work. Although there are still open questions, I can ignore them for now and get back to them later. Matěj Suchánek (talk) 20:03, 15 September 2015 (UTC)[reply]
- @Ymblanter: FYI, I have been hacking a bit, so this task is no longer blocked. Resolving the blocking tasks will make the code look cleaner and change the importing process a little. I have some troubles with GitHub (or GitHub has some troubles with me?), so the newest code still isn't there. However, inverse claims are now added. Matěj Suchánek (talk) 19:55, 19 September 2015 (UTC)[reply]
|subject item=
,|source=
,|formatter URL=
,|pattern=
and inverse claims looks good to me and can imo be approved --Pasleim (talk) 13:39, 21 September 2015 (UTC)[reply]