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)
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):
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)
I would just use VIAF ID (P214) as statement in a reference (S214 with QuickStatements). − Pintoch (talk) 22:05, 11 May 2017 (UTC)
@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)
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)
The above discussion is preserved as an archive. Please do not modify it. Subsequent comments should be made in a new section.