Wikidata:Requests for permissions/Bot/YBot
From Wikidata
Jump to navigation
Jump to search
- 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.
- Not done @Superyetkin: This request seems to be abandoned, please reopen it if that is not the case. Thanks. Mike Peel (talk) 19:39, 21 July 2020 (UTC)[reply]
YBot (talk • contribs • new items • new lexemes • SUL • Block log • User rights log • User rights • xtools)
Operator: Superyetkin (talk • contribs • logs)
Task/s: import data from Turkish Wikipedia
Code: The bot, currently active on trwiki, uses the Wikibot framework.
Function details: The code imports data (properties and identifiers) from trwiki, aiming to ease the path to Wikidata Phase 3 (to have items that store the data served on infoboxes) --Superyetkin (talk) 16:42, 12 January 2017 (UTC)[reply]
- It would be good if you could check for constraint violations insteaf of just blindly copying data from trwiki. These violations are probably all caused by the bot. --Pasleim (talk) 19:26, 15 January 2017 (UTC)[reply]
- @Superyetkin: Are you still interested in this request, or should I close it? — PinkAmpers&(Je vous invite à me parler) 00:13, 4 March 2018 (UTC)[reply]
- Yes, I am still interested in this. --Superyetkin (talk) 12:20, 4 March 2018 (UTC)[reply]
- @Superyetkin: If that is the case, can you take away concerns as indicated by Pasleim, by showing how you'll avoid the constraint violations? Lymantria (talk) 13:53, 31 May 2018 (UTC)[reply]
- Yes, I am still interested in this. --Superyetkin (talk) 12:20, 4 March 2018 (UTC)[reply]
- I think I can check for constraint violations using the related API method --Superyetkin (talk) 17:55, 1 June 2018 (UTC)[reply]
- @Pasleim: Would that be sufficient? Lymantria (talk) 09:10, 3 June 2018 (UTC)[reply]
- That API method works only for statements which are already added to Wikidata. It would be good if some consistency check could be made prior adding a statement. For example, the unique value constraint of YerelNet village ID (P2123) can be checked be downloading all current values [1], importing them into an array and then prior saving a statement the bot checks if the value is already in the array. Format constraint can be realized in php by
preg_match()
. Item constraints don't need be be checked because they only indicate missing data but not wrong data. --Pasleim (talk) 17:52, 3 June 2018 (UTC)[reply]
- That API method works only for statements which are already added to Wikidata. It would be good if some consistency check could be made prior adding a statement. For example, the unique value constraint of YerelNet village ID (P2123) can be checked be downloading all current values [1], importing them into an array and then prior saving a statement the bot checks if the value is already in the array. Format constraint can be realized in php by
- @Pasleim: Would that be sufficient? Lymantria (talk) 09:10, 3 June 2018 (UTC)[reply]
- I think I can check for constraint violations using the related API method --Superyetkin (talk) 17:55, 1 June 2018 (UTC)[reply]