Wikidata:Requests for permissions/Bot/JneubertAutomated
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) 18:21, 14 May 2017 (UTC)[reply]
JneubertAutomated edit
JneubertAutomated (talk • contribs • new items • new lexemes • SUL • Block log • User rights log • User rights • xtools)
Operator: Jneubert (talk • contribs • logs)
Task/s: Use of QuickStatements / QuickStatements2 for adding external identifiers in bulk
Code: - (no own code, but interactive use of the tools)
Function details: I want to add a large number (about 12,000) GND identifiers programmatically derived from VIAF, as described in the project chat. There I received the advice to apply for a bot flag for my account JneubertAutomated for a massive use of QuickStatements2.
Example for the generated statements:
Q72474|P227|"1055279814"|S248|Q54919|S813|+2017-04-01T00:00:00Z/10
--Jneubert (talk) 14:31, 8 May 2017 (UTC)[reply]
- If there are multiple VIAF ids on an item, will you add a GND for each of them? (I did that mistake for ISNI / Ringgold before…). Also, I think it would be great if you could add the VIAF id as reference. I wonder if there are established guidelines to pull identifiers using external mappings (this seems to be a fairly common type of bot). Thanks a lot for volunteering to do this! − Pintoch (talk) 18:40, 11 May 2017 (UTC)[reply]
- Thanks for the input, it came just in time! In my second batch of thousand, I came across some strange cases (and investigated, because there were more input lines than I had expected):
- 1. Two gndo:DifferentedPersons for Jordi Sevilla (Q3108429) - have to be merged on the GND side
- 2. 26 pairs of identical gnd ids (e.g. Q3260623 : 109338499 109338499). I could not figure out why/how that occurs, the Wikidata as well as the VIAF records look fine.
- I did not come across the case you mentioned (multiple VIAF ids), but this may be related to the relatively small set. For now, I consider inserting a group by ?wdItem having(?count=1) clause into my query, to get rid of any such cases.
- Adding the VIAF id seems a good idea. Do have a suggestion on how to best do this? Jneubert (talk) 19:21, 11 May 2017 (UTC)[reply]
- I would just use VIAF ID (P214) as statement in a reference (
S214
with QuickStatements). − Pintoch (talk) 22:05, 11 May 2017 (UTC)[reply]- @pintoch: What a beautiful simple idea! For
Q3187679|P227|"140805192"|S248|Q54919|S214|64050370|S813|+2017-04-01T00:00:00Z/10
, Import in quickstatements2 worked, but "Run" resulted in an error (screenshot). I'm not sure if I can somehow access the actual error message. Is there some kind of validation which enforces the guidelines in Help:Sources? Jneubert - Well, figured it out myself - I had a syntax error in the above statement, in missing the quotes for the viaf id value. Jneubert (talk) 16:35, 12 May 2017 (UTC)[reply]
- @pintoch: What a beautiful simple idea! For
- I would just use VIAF ID (P214) as statement in a reference (
- A set of thousand statements ran for more than two and a half hour. So it would be great if a bot flag could speed that up a bit (as @pigsonthewing: suggested in the project chat). Jneubert (talk) 19:27, 11 May 2017 (UTC)[reply]