Commons:Bots/Requests/AskeBot

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

AskeBot (talk · contribs)

Operator: Askeuhd (talk · contributions · Statistics · Recent activity · block log · User rights log · uploads · Global account information)

Bot's tasks for which permission is being sought: Batch uploading images from eol.jsc.nasa.gov, easing availability and ensuring as much metadata is added to SDC as possible.

Automatic or manually assisted: Manually assisted

Edit type (e.g. Continuous, daily, one time run): Intermittent batch runs, based on prepared data. Stops on errors.

Maximum edit rate (e.g. edits per minute): 1 edit pr. 5 seconds.

Bot flag requested: (Y/N): Y

Programming language(s): Go and its various libraries + MariaDB database for handling the vast amount of metadata and avoiding duplicate uploads.

Askeuhd (talk) 09:11, 23 May 2022 (UTC)[reply]

Discussion

I have already uploaded a large amount of material. Since the uploads occur based on limited ranges of prepared sets, I philosophically did not see as a bot. However Nosferattus requested that I should formally file a bot request in October, and I did see the merit of this request. So I have avoided working on this project before I was able to give it my full attention again, which is now, and why I am filing this request. Askeuhd (talk) 09:17, 23 May 2022 (UTC)[reply]

I also wanted to add some explanation as to the mechanics of the program I have written for this purpose:
Images with lots of geoinformation (as provided by NASA) are categorized and named as explicitly as possible using a matching database I created. Example.
Where available images are categorized with "Taken with..." categories, based on EXIF metadata and NASA metadata using a matching database I created for the purpose.
SDC templates are used for coordinates, and object location is used in addition on all images where this information is available.
Data for the uploads are imported from NASA, and subsequently manually edited and curated in SQL to ensure only entries with high resolution images are uploaded, and images with complete metadata, etc.
SDC is added based on this discussion [1]
--Askeuhd (talk) 13:00, 23 May 2022 (UTC)[reply]

Please make test run. --EugeneZelenko (talk) 14:35, 23 May 2022 (UTC)[reply]

@EugeneZelenko: Thank you for replying. Test run is performed - it ran as expected, except for the fact that I cannot perform the API action "Edit", as I am presented with a captcha request that is currently incompatible with my code - the code runs as expected on my main user, and is not presented with a captcha request, so I am assuming this has to do with the currently limited rights of the very recently created bot user? I use the edit action to add the {{Location}} template after adding SDC data. Askeuhd (talk) 09:46, 24 May 2022 (UTC)[reply]
Please use template or Wikidata item for Author field values. --EugeneZelenko (talk) 14:26, 24 May 2022 (UTC)[reply]
@EugeneZelenko: I apologize, but I am unsure as to what change you are looking for? I use the creator (P170) property in SDC and I always fill in the "author" parameter in the {{Information}} template. Could you perhaps clarify a bit more? --Askeuhd (talk) 15:05, 24 May 2022 (UTC)[reply]
Currently English text is used in Author filed, so internationalization is impossible. --EugeneZelenko (talk) 18:57, 24 May 2022 (UTC)[reply]
@EugeneZelenko: the Author parameter in {{Information}} reads Earth Science and Remote Sensing Unit, NASA Johnson Space Center - this is the credit line requested by NASA. I am not sure that should be internationalized, but I would be happy to wrap this in {{En}} if you prefer? Like this: |author={{en|Earth Science and Remote Sensing Unit, NASA Johnson Space Center}} If this is not what you meant, could you possibly link to a file that follows the paradigm you want, so that I can try and understand what I need to implement? Thank you in advance --Askeuhd (talk) 06:23, 25 May 2022 (UTC)[reply]
Language tag is OK, but Wikidata item (if exists) would be better. --EugeneZelenko (talk) 14:16, 25 May 2022 (UTC)[reply]
@EugeneZelenko: Thank you for the clarification. I believe we are on the same page now. I suggest setting the author parameter as follows: |Author={{Creator|Wikidata=Q96376871}} which will render like this:
Earth Science and Remote Sensing Unit   wikidata:Q96376871
 
Authority file
creator QS:P170,Q96376871
Would that be acceptable? --Askeuhd (talk) 15:38, 25 May 2022 (UTC)[reply]
If a lot of material from same part of NASA is expected, it'll be good idea to create dedicated creator template. --EugeneZelenko (talk) 14:33, 26 May 2022 (UTC)[reply]
@EugeneZelenko: Thank for your input, rather than just creating a creator based template, I went ahead, and created a full template {{ESRS-image}} based on {{Information}}. I already had a lot of extra fields that I added to each image, so it made a lot of sense to consolidate them into a single template. The author field is filled with {{Label}} now, so it should be internationalized automatically. I have performed a short test run to demonstrate it. I hope this is what you were hoping for. --Askeuhd (talk) 08:44, 27 May 2022 (UTC)[reply]
Sure, it's better solution. New uploads seem OK for me. It'll be good idea to replace template on older uploads. --EugeneZelenko (talk) 14:08, 27 May 2022 (UTC)[reply]
@EugeneZelenko: - no problem, I will set this up as a task for the bot as well. --Askeuhd (talk) 14:17, 27 May 2022 (UTC)[reply]
@EugeneZelenko: - I have done a short test run for the template replacements as well. I hope this is all satisfactory to obtain the bot flag. Thank you. --Askeuhd (talk) 06:29, 29 May 2022 (UTC)[reply]
Replacement looks OK for me. --EugeneZelenko (talk) 14:15, 29 May 2022 (UTC)[reply]

If there are no objections, I think bot status should be granted. --EugeneZelenko (talk) 14:15, 29 May 2022 (UTC)[reply]