Commons:Bots/Requests

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
This project page in other languages:

Shortcut: COM:BRFA

If you want to run a bot on Commons, you must get permission first. To do so, file a request following the instructions below.

Please read Commons:Bots before making a request for bot permission.

Requests made on this page are automatically transcluded in Commons:Requests and votes for wider comment.

Requests for permission to run a bot

[edit]

Before making a bot request, please read the new version of the Commons:Bots page. Read Commons:Bots#Information on bots and make sure you have added the required details to the bot's page. A good example can be found here.

When complete, pages listed here should be archived to Commons:Bots/Archive.

Any user may comment on the merits of the request to run a bot. Please give reasons, as that makes it easier for the closing bureaucrat. Read Commons:Bots before commenting.

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

Bot's tasks for which permission is being sought: File upload from gallica.bnf.fr

Automatic or manually assisted: Automatic.

Edit type (e.g. Continuous, daily, one time run): Occasionally.

Maximum edit rate (e.g. edits per minute): About 20.

Bot flag requested: (Y/N): Nothing.

Programming language(s): PHP
After Commons:Bots/Requests/Gzen92Bot-4, I continued to upload files from Gallica (Category:Bibliothèque nationale de France), using the parameter "any fayes" = royalty free document (see API), without requesting bot authorization (the infobox is formatted the same).
But there is a problem with categories (see blocking Commons:Village pump#Obtuse bot created categories).
When to create a category? 2, 5, 10 files from the same id?
How to name the category? File name or only the id?
Without being able to answer this question automatically (there are a few million files available at the BnF), I will simply leave them in Category:Images from Gallica and Category:Files from Gallica needing categories (images). See 10 files uploaded.
Gzen92 (talk) 17:20, 1 November 2024 (UTC)[reply]

Discussion
Some topical categorization should be determined for every file uploaded, in addition to merely adding a source category.
Before uploading any new file. A cleanup plan for the thousand of categories created before (Commons:Village pump#Obtuse bot created categories) needs to be found and implemented (by the uploader or somebody else).
 ∞∞ Enhancing999 (talk) 08:11, 2 November 2024 (UTC)[reply]
No problem for this action, if it is the target. Gzen92 (talk) 10:12, 2 November 2024 (UTC)[reply]
Please outline your cleanup plan for the existing categories.
 ∞∞ Enhancing999 (talk) 11:38, 2 November 2024 (UTC)[reply]
I don't think this is the place to talk about this but it is easy to take the files out of the subcategories of Category:Files from Gallica needing categories (images) and put them in Category:Images from Gallica and Category:Files from Gallica needing categories (images).
The categories can be deleted easily (I don't have the bot permission to do that).
But I still think it's good to group the files, even if the category name could be improved.
Gzen92 (talk) 22:00, 2 November 2024 (UTC)[reply]
As a bot operator, I'd expect you to fix problems you created before potentially creating more of them. If you can't present a plan for your past uploads, I don't think this request should be approved. Commons is not a place to dump uncategorized files.
 ∞∞ Enhancing999 (talk) 10:43, 3 November 2024 (UTC)[reply]
Topical categorisation is not required, see Commons:Guide_to_batch_uploading#Categories. Also, before a "cleanup plan" has to be presented, clear arguments have to be presented as to why those existing categories are a problem. ~TheImaCow (talk) 22:04, 2 November 2024 (UTC)[reply]
Which part are you referring to? Uploaders are required to add categories. Merely adding a user category isn't sufficient.
 ∞∞ Enhancing999 (talk) 10:43, 3 November 2024 (UTC)[reply]
Section "Putting it into action" -> "every file you upload should have: a tracking/source category, Your files can have: topic categories". A source category + a {{Check categories}} (substituted with the "category needed" category here) is sufficient. ~TheImaCow (talk) 13:57, 3 November 2024 (UTC)[reply]
If we agree that both categories are enough, should we create categories to group files or not? For example this category includes a whole book but the name is long. Gzen92 (talk) 21:44, 3 November 2024 (UTC)[reply]
Anyone have an opinion ? With or without category creation ? I would like to continue the job ! Gzen92 (talk) 07:10, 7 November 2024 (UTC)[reply]

I don't understand what exactly is requested here. Please say again. --Krd 14:47, 7 November 2024 (UTC)[reply]

I upload files and create categories as soon as there are two files in the Gallica folder. Which creates a lot of categories: Category:Files from Gallica needing categories (images) 65,000 files and 7,200 categories which contain 139,000 files (average 19).
Remarks on Commons:Village pump#Obtuse bot created categories, I could create categories from 10 files. Gzen92 (talk) 07:43, 8 November 2024 (UTC)[reply]
I still cannot follow. Can you give an example? Krd 08:12, 8 November 2024 (UTC)[reply]
I create a lot of categories with few files (for example Category:Hotel de Roquelaure - Juillet 1906 - photographie - Atget - btv1b10516512m). So a lot of categories in Category:Files from Gallica needing categories (images). Two solutions (I don't know): threshold to create a category (10 files?) or no category at all in Category:Files from Gallica needing categories (images). Gzen92 (talk) 08:22, 8 November 2024 (UTC)[reply]
I think a bot request is not the right place to find a decision how to proceed. Perhaps this is better discussed as com:Village pump. Once there is a decision, we can perhaps discuss what is the best way to clean up, if required. (If I'm mistaken, please advise.) Krd 08:59, 8 November 2024 (UTC)[reply]

I am not sure if this is the right forum, but I am wondering how exactly the copyright status of the images is ascertained. For instance, this image has been uploaded as CC0 despite the linked source page containing:

Note(s) : Toute reproduction doit faire l'objet d'une autorisation préalable de(s) auteur(s), de ses (leur) ayants-droits ou de la société qui les représente

Reproduction : Numérisation effectuée par l'auteur d'une sélection de photographies argentiques

which to me sounds as if BNF does not own the right to the image in the first place. Could you elaborate? Felix QW (talk) 13:20, 11 November 2024 (UTC)[reply]

Hello, there is a parameter in the API Gallica "public domain". But you are right, in some html pages it is indicated "specific conditions of use", I know how to exclude them for the future. Gzen92 (talk) 16:29, 11 November 2024 (UTC)[reply]

@Krd: After discussions :
Subcategory by year in Category:Files from Gallica needing categories (images), for example Category:Files from Gallica needing categories (images of 1930).
No category for 2 files because often reverse sides (I will manually browse the categories by year to visually identify the reverse sides and move them to Category:Files from Gallica needing categories (images, reverse side).
Category with 3 or more files, also category by year, for example Category:Files from Gallica needing categories (images of 1870).
See see 25 edit.
Gzen92 (talk) 18:27, 22 November 2024 (UTC)[reply]

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

Bot's tasks for which permission is being sought: Tagging tiny taxon categories per this discussion and possibly cleaning up the user:WLKBot fiasco.

Automatic or manually assisted: Manually assisted (runs must be manually started, then run automatically). Considering the size of the runs, it would take at least 3 days of continuous editing to fix WLKBot, and longer for Taxon.)

Edit type (e.g. Continuous, Daily, one time run):As needed, currently 2 multiday runs.

Maximum edit rate (e.g. edits per minute):5-10 epm

Bot flag requested: (Y/N):Yes

Programming language(s):pywikibot

All the Best -- Chuck Talk 05:53, 1 November 2024 (UTC)[reply]

Discussion

 Comment source code: [1]. All the Best -- Chuck Talk 06:01, 1 November 2024 (UTC)[reply]

edit comment could be more neutral (ie. fixing categories of images uploaded by WLKBot in October or something) . --Zache (talk) 06:25, 1 November 2024 (UTC)[reply]
Please don't edit manualy with a bot account. --Krd 07:47, 1 November 2024 (UTC)[reply]
Please make test edits. --Krd 07:47, 1 November 2024 (UTC)[reply]
 On hold due to an unplanned toolforge migration taking much longer than anticipated. All the Best -- Chuck Talk 01:01, 4 November 2024 (UTC)[reply]
 Still on hold WLKBot issue has been dealt with by owner, currently retooling for taxon run All the Best -- Chuck Talk 19:06, 14 November 2024 (UTC)[reply]

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

Bot's tasks for which permission is being sought: File description cleanup and categorization for files uploaded with Reworkhelper tool. Per this request

Automatic or manually assisted: Automatic

Edit type (e.g. Continuous, daily, one time run): One time run

Maximum edit rate (e.g. edits per minute):

Bot flag requested: (Y/N): N (the bot already has a bot flag )

Programming language(s): Python

Ammarpad (talk) 18:25, 9 September 2024 (UTC)[reply]

Discussion

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

Bot's tasks for which permission is being sought: Add {{Information}} to Media missing infobox template. See exhaustive preparative discussion on Commons:Bots/Work_requests#Media_missing_infobox_template. The bot tries to put as much information as possible into SDC fields (author, source, captions, date), since {{Information}} uses those data as default.

Automatic or manually assisted: Manually assisted. The bot follows "divide and conquer" tactics. Since it seems to be impossible to apply one solutions to > 300,000 media files lacking an infobox template, it will work on sets of files, usually defined by same author / creator (assuming that those files share sufficient similarities). The bot will be run multiple times on that set of files in different modes. First, analyze the file page content and try to categorize each of its components, without modifying and content on Commons. This step will be repeated (manually) as often as needed to adapt the categorization patterns, until a pattern set that fits for all file pages of the current set has been found. Now, a "dry-run" ("simulation") generates an overview over the "planned" modifications (see txt and SQLite analysis and simulation results for Category:Media missing infobox template (maps t1)). Only if this simulation result seems acceptable, the bot will run in "doit" mode to apply the "proposed" edits.

Edit type (e.g. Continuous, daily, one time run): Multiple times a week, but not daily.

Maximum edit rate (e.g. edits per minute): Maybe 5-6 per Minute?

Bot flag requested: (Y/N): Y

Programming language(s): pywikibot

Fl.schmitt (talk) 21:56, 6 September 2024 (UTC)[reply]

Discussion

It sounds to me like mostly manual work, which should not be done with a bot account. Am I mistaken? --Krd 13:27, 26 September 2024 (UTC)[reply]

I don't know if this sort of task should be done by a bot account. I assumed that doing such edits automatically on numerous files using a script is a typical task for a bot.
Anyway, in my opinion it's mostly bot work, for example automatically checking the initial upload date of a file and using it as the latest value for SDC inception if there's no creation date available in the unstructured file description. That's work for a python script and not for a human being... Additionally, it's not feasibly to edit both SDC and text content of a file page manually, setting multiple SDC values for a single property (e.g. creator). In short: the focus lies on the script-based application of rules that were created "intellectually".
Of course, there's a "manual" part: checking and adapting the regex rules to identify/categorize the unstructured content, to detect patterns how e.g. creators are mentioned. Additionally, some files may require manual intervention if a rule would only apply to single files. But once the regex rules are defined, they can and should be applied to the complete input set. And that's a bot's task, isn't it? Fl.schmitt (talk) 15:46, 26 September 2024 (UTC)[reply]
You stated above it is working manually assisted, and I'd agree that fully automatically it's not even possible. E.g. in this: Special:Diff/922463275 edit the "source" is still a mess. Even if the bot is flagged, this edit IMO should not be done with a bot flag. (And perhaps it should not be done automatically at all if there is a risk of getting source and author information messed, because it may affect file attribution.) Different opinions welcome. Krd 19:04, 1 October 2024 (UTC)[reply]
Hmm - that "mess" could be done better if there were clear guidelines documented on {{Information}} how to reference WP imports as source. Using {{Source}} seemed the best option to me. If it isn't, I would be glad about advise how to do the "source" statement the correct way in such cases. But maybe it isn't worth the time, I've already wasted a lot of it trying to find a solution that looked viable. Fl.schmitt (talk) 19:27, 1 October 2024 (UTC)[reply]
Yes, this is much needed, please get this bot to work to add the standardized well-established expectable Information template which can be queried or displayed e.g. in apps etc. However, it probably needs many tests and examples to make it add much information to these templates or add categories for manual maintenance where needed. --Prototyperspective (talk) 10:51, 3 October 2024 (UTC)[reply]
I thought the bot would add the Information template to files that lack them. Sorry, I misunderstood. Prototyperspective (talk) 17:43, 11 October 2024 (UTC)[reply]
@Prototyperspective: no, that's exactly the bot's task - adding {{Information}} to file that lack them, but in combination with SDC. Since {{Information}} uses some SDC values as default, there's IMHO no need and no use to save those values in a redundand way woth in SDC and as template parameters. SDC can be queried, too. So, where's the misunderstanding? Fl.schmitt (talk) 19:18, 11 October 2024 (UTC)[reply]
Okay thanks for explaining then it's basically what I thought it was. Such a bot is much needed. Also see Commons:Village pump/Technical#How to search fields of files' Information template? (I think using the insource search operator combined with regex could be the solution to it). Prototyperspective (talk) 21:34, 11 October 2024 (UTC)[reply]

Is the whitespace around the "int:filedesc" intended? This appears uncommon and badly readable to me. --Krd 09:55, 11 October 2024 (UTC)[reply]

Good point - not sure why I've put it there. This is fixed now. Fl.schmitt (talk) 14:34, 11 October 2024 (UTC)[reply]
Well, the outer blanks are common, I'd suggest to remove only the inner ones. Krd 14:38, 11 October 2024 (UTC)[reply]
Done :-) Fl.schmitt (talk) 14:49, 11 October 2024 (UTC)[reply]

I think the bot could be flagged but should edit without actually setting bot action for an extended slow test run. Do you agree? --Krd 09:55, 11 October 2024 (UTC)[reply]

No problem, that's perfectly fine for me. Let's give it a try. Fl.schmitt (talk) 14:40, 11 October 2024 (UTC)[reply]
Ok, please make a slow start. Krd 14:57, 11 October 2024 (UTC)[reply]
Bot has done six additional edits (combination of SDC and page text update): Revision #938775515 / Revision #938776502 for Map of Canton Thurgau.png, Revision #938777401 / Revision #938778686 for Map of Canton Uri.png and Revision #938779544 / Revision #938780857 for File:Map of Canton Zug.png. It's exactly the same pattern as the previous test runs, except the modified headers. Preview for all pages that are current in category Category:Media missing infobox template (maps t1): simulate_result_61442.txt. That txt file shows the "proposed" SDC values to set (as JSON) and page text content to write (as wikitext). Please keep in mind that the page text (esp. the parameters of {{Information}} is "incomplete" because it relies on the SDC values that are used as defaults. Fl.schmitt (talk) 17:32, 11 October 2024 (UTC)[reply]
Please continue. Krd 05:01, 12 October 2024 (UTC)[reply]
Ok - now the bot is running continuously, but with a minimum delay of five minutes between filepages. So, the bot will visit 12 file pages per hour. Fl.schmitt (talk) 07:05, 12 October 2024 (UTC)[reply]
Update: had to fix an issue with captions - slowed bot down to 4 filepage visits per hour to keep better control. Fl.schmitt (talk) 18:14, 12 October 2024 (UTC)[reply]
Please do not remove the empty line above Categories, like in this edit [3]. This is standard in almost all files and simply reflects what is done and increases readability. --Schlurcher (talk) 08:50, 1 November 2024 (UTC)[reply]
Is the bot still running? Krd 14:44, 7 November 2024 (UTC)[reply]
No, currently not. The first "batch" of files is finished, so I'll have to adapt the regex patterns to the next batch, which will take some time. I'll report back if the bot is ready to run again. Fl.schmitt (talk) 20:01, 7 November 2024 (UTC)[reply]
What is the estimated time frame? Krd 04:00, 20 November 2024 (UTC)[reply]
Maybe mid december? The problem is that I can't simply start running the bot again, but have to adapt it to a new set of files. Anyway, I don't think there's a hurry for the bot's work, since most of the "target" files are lacking {{Information}} since almost 20 years. Fl.schmitt (talk) 13:00, 20 November 2024 (UTC)[reply]

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

Bot's tasks for which permission is being sought: Simple text replacement

Automatic or manually assisted: Automatic manually assisted

Edit type (e.g. Continuous, daily, one time run): One time run

Maximum edit rate (e.g. edits per minute): 6 edits per minute

Bot flag requested: (Y/N): Y

Programming language(s): Python Pywikibot

トトト (talk) 12:40, 30 August 2024 (UTC)[reply]

Discussion

If possible please put into the edit summary not only what is done but also why it is done. Please make another test run. --Krd 13:33, 26 September 2024 (UTC)[reply]

  • This has nothing to do with this request, but let me allow some testimony here. Recently I have updated templates regarding the monthly rail transport of 47 prefectures of Japan (i.e. {{Railtransportmonth-KanagawaPref}} 1). One of the purposes of these edits is to add a new category Category:(month name) in rail transport in xxxx prefecture to every page using these templates. However, the wiki system didn't make this revision effective unless there are some kind of edits to these pages. It means that I had to delete the last indention from all these pages manually. So at first I thought, well, then how about using pywiki-bot for these tasks? I tried replay.py replacing }}\s to }} for these pages (i.e this page). This is a simple enough task for a novice code learner. But the sad thing is, pywiki-bot said that such a task is unnecessary, and didn't execute anything. Certainly it might be a meaningless edit from the point of view of contents-creation, but I shall say it is necessary for page maintenance, i.e., in order to activate the latest revision of templates. So I ended up using AWB executing simple replacement tasks for all the pages. By pushing "Save" button for thousand time or so, these pages are to be re-defined. Letting pywiki-bot add a user-template-generated harmless characters such as <!-- --> to these pages is another idea, but I didn't like it because it polutes the edit history of these pages. So this is it. It will be good if my bot can execute auxiliary tasks to my manual edits, but since I am a novice in this field, currently I have no detailed plans how to use it. Thank you for reading this. --トトト (talk) 19:10, 26 September 2024 (UTC)--トトト (talk) 19:24, 26 September 2024 (UTC)[reply]
  • Taking this category for example. While {{prefjp/name}}Prefmonth is seen, it is actually using {{NaganoPrefmonth}}. And before {{Geogroup}} was added in the template itself in this edit, {{Geogroup}} was sporadically used when a category was created by a volunteer user, which means some Nagano prefecture by month categories are with {{Geogroup}}, but others are not. So, after {{NaganoPrefmonth}} is revised, making a bot remove those manually inserted {{Geogroup}} from categories is necessary. Under the condition that 50 or more such categories randamly existing, removing {{Geogroup}} one by one manually is simply a waste of time. Am I wrong? --トトト (talk) 17:58, 11 October 2024 (UTC)[reply]
  • I will try to improve edit summaries. But generally you cannot force anybody to use English in commons, can't you? Please also understand that up until recently, Dutch was the second language for most of Japanese people. --トトト (talk) 18:11, 11 October 2024 (UTC)[reply]
I didn't know that Dutch is the second language for most of Japanese people, but does it make sense to use a second language? --Krd 07:53, 1 November 2024 (UTC)[reply]

@トトト: Please report current status. --Krd 03:59, 20 November 2024 (UTC)[reply]

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

Bot's tasks for which permission is being sought: add the following structured data statement and qualifier to the file page of a new upload that is detected as a logo by this tool.

Automatic or manually assisted: automatic, supervised

Edit type (e.g. Continuous, daily, one time run): continuous

Maximum edit rate (e.g. edits per minute): it depends on the amount of image uploads and on the amount of images detected as a logo. Hard to tell for now 2 edits per minute. Please note that this is an anecdotal estimate based on test edits. See also #c-MFossati_(WMF)-20241015104800-Krd-20241011094700

Bot flag requested: (Y/N): Y

Programming language(s): Python, Pywikibot

Source code: https://gitlab.wikimedia.org/toolforge-repos/gogologo

MFossati (WMF) (talk) 12:19, 24 July 2024 (UTC)[reply]

Discussion
  • I think it'll much better application for bot it it could detect non-trivial logos or logos already deleted. --EugeneZelenko (talk) 14:41, 24 July 2024 (UTC)[reply]
  • Wouldn't it be better to add them with a separate property? While I'm in favor of adding more such ways to identify images, I don't think it mixes well with other statements. This was attempted and finally discarded with "depicts" statement a while back. Please make sure these statements can also be searched with Special:Search. Enhancing999 (talk) 14:53, 1 August 2024 (UTC)[reply]
    Hey Enhancing999, thanks for your comment. Could you please provide any specific pointers to the previous attempt you mentioned? MFossati (WMF) (talk) 11:29, 12 August 2024 (UTC)[reply]
    here Enhancing999 (talk) 11:31, 12 August 2024 (UTC)[reply]
  • Is this bot going to be used as "act once on new uploads", "act once on all existing files", "potentially act more than once on the same file", or what? Unless it only acts exactly once on any given file, what is to prevent it getting into an edit war if its edit is reverted or otherwise changed? - Jmabel ! talk 18:11, 1 August 2024 (UTC)[reply]
    Hi Jmabel, thanks for your question. The bot is expected to act once on new uploads. MFossati (WMF) (talk) 11:31, 12 August 2024 (UTC)[reply]
    • Good. Is there any chance that the bot could also look at the wikitext for {{Own work}} and add a maintenance category (call it Category:Own work logo to checked) if it appears to be a logo and is claimed as "own work"? We see that combination a lot, and it is almost never true. And possibly something similar for a logo + any CC license, because that's usually false as well: we very rarely get a license for any logo that is above the threshold of originality. - Jmabel ! talk 15:15, 12 August 2024 (UTC)[reply]
      I agree that the ability to search for logos plus own work and/or CC licenses would make a lot of sense. I think this is something we can do by querying structured data. For instance, we can already run a query like this to look for own work files with CC BY-SA 4.0. As soon as the proposed logo statements get added, we can then insert a wdt:P31 wd:Q1886349 constraint in the query. MFossati (WMF) (talk) 09:50, 14 August 2024 (UTC)[reply]
  •  Comment As requested by the rules, we've test-run the bot on 100 uploads randomly sampled from uploads made between Aug 21 and today, and here are the results:
    • 4 medias were deleted beforehand, so no edit
    • 1 media was skipped (maximum retries attempted due to maxlag without success), so no edit
    • 95 medias were successfully edited
It seems that it successfully worked, but we'll wait for community review. Sannita (WMF) (talk) 15:34, 30 August 2024 (UTC)[reply]
It appears each file is edited twice. Is that for technical reason, or can the edits be combined in any way? Krd 17:36, 30 August 2024 (UTC)[reply]
Great point, Krd! It made me realize that the current code first adds the claim, then adds the qualifier, thus producing two edits. I've just tried that we can do the other way around. So - yes - we can indeed combine them into a single edit. I've updated the code accordingly. Thanks a lot, this is really helpful. MFossati (WMF) (talk) 14:16, 9 September 2024 (UTC)[reply]
Can you use another property than P31 as suggested above? I think we should avoid a re-run of c-a t where WMF mostly ignored community input.
 ∞∞ Enhancing999 (talk) 17:52, 30 August 2024 (UTC)[reply]
Hi @Krd and @Enhancing999, thanks for your feedback and sorry for the late reply, for some reason your replies did not appear in my notifications.
While we wait for @MFossati (WMF) to be back in office for answering the first question, we are open to suggestion as to which property to use. @Enhancing999 do you already have one in mind? Sannita (WMF) (talk) 16:11, 5 September 2024 (UTC)[reply]
You can create one ad hoc.
 ∞∞ Enhancing999 (talk) 17:16, 5 September 2024 (UTC)[reply]
@Enhancing999 Sorry for the long answer, but I felt the need to clarify some things about the request.
We need to start somewhere to see if the experiment is of some value to the moderators. This is an experiment within the first quarter OKR work for FY24/25 (WE2.3.1). We don't think a new property would work, especially because the property proposal request would likely be considered too specific in scope to be accepted by the Wikidata community, not without reasons.
We can quickly and easily use an existing property, and see if it’s valuable. If not, we will rollback as quickly and easily. The property instance of (P31) seems like the best fit, because we think it’s specific and meaningful. More importantly, the property is indexed, thus enabling search queries both in Special:Search and in Special:MediaSearch. Furthermore, qualifiers are also indexed, so it will be possible for moderators to find media classified as a logo by this bot. You can either use a search query (example with Special:Search, example with Special:MediaSearch) or a SPARQL one to achieve it.
If detecting and tagging incoming logos does not help with easier logo moderation, then our plan is to rollback our own edits at the end of the experiment. If it does help, then we’re planning to investigate other ways to store and query such data, as we are considering other experiments in the near future as suggested by the community. Sannita (WMF) (talk) 15:09, 9 September 2024 (UTC)[reply]
Wikidata easily creates properties that are just meant to be used for Commons. This shouldn't take much time and compared to working speed of WMF (It's seven weeks since you asked for input), this shouldn't be an issue. Nothing prevents you for indexing this property as well.
If you think a separate property wont work, it means that ultimately this wouldn't work using instance of (P31) either. I think such implementations need more attention than once every month.
Given the massive community backlash WMF got from an ill-prepared, hastily implement, not community feedback driven, likely costly previous experiment mixing machine contribution with our highly valued volunteer contributors, I think it's good to take good care this time, especially as a simple way was suggested already seven weeks ago.
 ∞∞ Enhancing999 (talk) 15:43, 9 September 2024 (UTC)[reply]
@Enhancing999: unless there are a lot of false positives (and I don't think there are), the tagging of these as instance of (P31) : logo (Q1886349) seems at worst harmless. What would be the advantage of a distinct property? - Jmabel ! talk 04:45, 10 September 2024 (UTC)[reply]
There are likely few false positive in the first test set as it's still followed, but last time, it became problematic when person at WMF developing it moved on to something else.
Based on past experience, I guess you know what happens afterwards: you will have to wait 7 weeks for an acknowledgment, then you will be told to ask for a change in the next wishlist, and, even if everybody agrees with it, you will have to wait for the next annual plan to have it scheduled. Possibly somebody will then throw it out entirely, because they don't know how to fix it.
In any case, the idea is to classify also images where there is a lower confidence in the automatism so review is necessary.
Using two different properties allows users to easily switch between volunteer assessment and machine assessment, focus on volunteer assessment while excluding machine assessment if they happen to agree.
 ∞∞ Enhancing999 (talk) 11:12, 13 September 2024 (UTC)[reply]
Is a coat of arms or a military unit insignia or a sports uniform a logo per the definition a "logo"? --Krd 07:29, 13 September 2024 (UTC)[reply]
@Krd: we're targeting images similar to Category:Logos, thus making a distinction between other classes such as Category:Coats_of_arms or Category:Sports_kit_templates. MFossati (WMF) (talk) 13:45, 13 September 2024 (UTC)[reply]
In my personal opinion there are too many false positives. Krd 13:52, 13 September 2024 (UTC)[reply]
Special:Permalink/923690458 has a gallery of images edited by the bot. Personally, I don't think false positives are an issue as such, at least when they are clearly distinguished from manual edits (see separate property above).
 ∞∞ Enhancing999 (talk) 14:08, 13 September 2024 (UTC)[reply]
I agree that most of them are some kind of symbols or graphics, but I'd guess a third of them would not be put under Category:Logos, so "instance of logo" doesn't make much sense then. Am I mistaken? Krd 14:16, 13 September 2024 (UTC)[reply]
It really depends what the logo people want to do with it. Today it's "logos", but it could be just any image type or topic. The confidence level of the classification can also evolve or be changed.
 ∞∞ Enhancing999 (talk) 14:29, 13 September 2024 (UTC)[reply]
Come to think of it, maybe the statement with the new property should be qualified with the confidence level (for the classification of the image) and the program version being used (if not available, the current date).
 ∞∞ Enhancing999 (talk) 09:08, 17 September 2024 (UTC)[reply]
That makes sense to me. Krd 11:46, 17 September 2024 (UTC)[reply]
You read my mind: this is definitely something I wanted to propose. MFossati (WMF) (talk) 13:53, 17 September 2024 (UTC)[reply]
I've just realized that the bot has made accidental edits that weren't meant to be there, sorry for that! I've manually reverted them. Please refer to the test edits. MFossati (WMF) (talk) 13:58, 17 September 2024 (UTC)[reply]
Similar to Special:Permalink/923690458 can you do a gallery that shows all images that you consider valid test cases (ideally include the confidence level for the classification as a legend).
 ∞∞ Enhancing999 (talk) 09:21, 21 September 2024 (UTC)[reply]
The (determination method or standard (P459), machine learning (Q2539)) qualifier distinguishes the bot's edits from manual ones. The queries mentioned here retrieve the bot's ones. You can compare these two queries: with qualifier (bot's edits) VS no qualifier (non-bot's edits). As a side note, nothing prevent us from trivially looking at the bot's contributions, too. MFossati (WMF) (talk) 13:46, 17 September 2024 (UTC)[reply]
You can't distinguish them any more when someone thinks they are correct and also adds a P31. Or would they have to remove the qualifiers? And no, looking at individual files and/or edits is definitely not a solution. Please make sure the results can be view by querying both with search and on SDC portal (hopefully eventually open).
 ∞∞ Enhancing999 (talk) 09:16, 21 September 2024 (UTC)[reply]
We could also create a Wikidata item for this bot and use it as the qualifier value, instead of machine learning (Q2539). MFossati (WMF) (talk) 14:01, 17 September 2024 (UTC)[reply]
It's better to use a separate property and qualify that with the program version being used. A year or two later, one will otherwise have a hard time which version of the bot considered what by which threshold. I suggest we create to properties:
  • "Commons machine image type"
  • "Commons machine image subject"
The second for later uses, if you wan't to try to determine a logo topic.
 ∞∞ Enhancing999 (talk) 09:20, 21 September 2024 (UTC)[reply]
  • I'd like to highlight the main goal of this experimental bot, namely to help moderators find potentially problematic media. MFossati (WMF) (talk) 14:06, 17 September 2024 (UTC)[reply]
    What is the commitment of WMF to maintain this going forward? How much time will you spend maintaining it in the next months each week? Or will it be discontinued after a month?
     ∞∞ Enhancing999 (talk) 09:23, 21 September 2024 (UTC)[reply]
    We are committed to maintaining this bot for as long as it needs to be. As already mentioned, this is one of our priorities for the year, and definitely won’t be dropped after one month. On the other hand - after careful consideration with the team - we won’t be pursuing the path of creating new Wikidata properties, nor adding the confidence score as structured data, as part of this work of identifying and providing a way for easier moderation of logos.
    While we agree that probabilistic statements supported by confidence scores are a very relevant topic, to the best of our knowledge no available Wikidata property can express so yet, and we see the need for a cross-community broad discussion that is outside of this experiment’s scope. If no consensus is reached on this bot request, the alternative is that we periodically release lists of potential logos to be considered (this time with confidence score), like we recently did. Sannita (WMF) (talk) 13:42, 25 September 2024 (UTC)[reply]
    Creating appropriate properties is a fairly straightforward process. As you seem to have some issues with having these created for that data, I think the dataset approach is preferable.
    It also wont leave us with data the community needs to clean up next year, once the experiment has ended, as last time.
     ∞∞ Enhancing999 (talk) 12:20, 29 September 2024 (UTC)[reply]
    Do we have moderators who use the output of the bot for anything? I think it hasn't been outlined above, so I'm still trying without offense to understand who is in need of that, or if it may be a solution looking for a problem. Krd 13:36, 26 September 2024 (UTC)[reply]
    Hi @Krd, sorry for the late reply, but notifications aren't working on this page for some reason. As of now, as far as we know no one is using the output of the bot, mostly because it has not been approved yet and we are waiting on approval to fully resume our work. But the reactions on the admins' noticeboard to our dataset about potential logos seems to show that our work is effectively useful to identify potentially problematic logos, and can let admins and moderators focus on a narrower set of images, instead of relying on reports on last uploads. Plus, as we already stated, this proposal comes from several discussions and user interviews we had in the past months with the community where the need for machine detection tools was raised, so it is a solution to a problem that the community raised. Sannita (WMF) (talk) 13:54, 3 October 2024 (UTC)[reply]
    I think users would prefer categories, but dataset seem to work too. Given the problems with getting the statements right and the closed nature of SDC statements, I think it's preferable to pursue the two other ways (dataset, categories).
     ∞∞ Enhancing999 (talk) 16:56, 9 October 2024 (UTC)[reply]
  • Looks like a great way to reduce mod/admin maintenance workload and reduce the number of copyvios on WMC. Please extend it or create similar bots to also detect other copyvios as proposed here or similar. Thanks for developing it, it seems very useful! --Prototyperspective (talk) 11:37, 21 September 2024 (UTC)[reply]
    Hi @Prototyperspective, thanks for your positive feedback and suggestions (and also sorry for the late reply, but notifications aren't working properly on this page). We do think this work is valuable and we heard good feedback. Before engaging in new bot requests, though, we think it would be better to close the current request with enough consensus to go on. We are going to do another experiment for automated detection in the next months as part of our planned work, but we also don't want to operate without or against community consensus. For now, as the current bot request has not been approved, you can access logos identified by the logo detection through exported datasets. Sannita (WMF) (talk) 13:56, 3 October 2024 (UTC)[reply]

@MFossati (WMF): You didn't specify the edit rate in the request. What do you expect the daily edit count to be, and how many edits will be required to classify existing files? Does it make sense to start with one edit per minute for an extended test run? --Krd 09:47, 11 October 2024 (UTC)[reply]

What do you expect the daily edit count to be

The test edits indicate 1 edit every 33 seconds on average, with an estimated daily count of 2,600 circa.

how many edits will be required to classify existing files

Please note that the currently requested task only accounts for new uploads. We may consider scaling the bot up to existing files in a subsequent request, if that's useful for the community (broader discussion needed). However, we can't compute the total amount of edits beforehand, because we'll have to run (or dry-run at least) the classifier over existing files first.

Does it make sense to start with one edit per minute for an extended test run?

I think it would be reasonable to stick to the average edit rate to do so, i.e., 2 edits per minute. MFossati (WMF) (talk) 10:48, 15 October 2024 (UTC)[reply]
Please put it live as suggested, as extended test run. Krd 10:56, 15 October 2024 (UTC)[reply]
✓ Done The bot is running and will edit 3,833 recent uploads, detected as logos between Aug 21 and today. See also the initial test. MFossati (WMF) (talk) 15:02, 16 October 2024 (UTC)[reply]

Please do not manually edit with the bot account. --Krd 07:18, 20 October 2024 (UTC)[reply]

I addressed a user request and also noticed incidental duplicate statements, so I took care of them. The affected pages were edited through pywikibot code, so no manual edits happened. Not sure why those edits got the manual revert tag, though. MFossati (WMF) (talk) 09:49, 21 October 2024 (UTC)[reply]
Special:Diff/945223918 is a manual edit, isn't it? Krd 10:15, 21 October 2024 (UTC)[reply]
That wasn't intended: I forgot to logout from the bot account and login to my user one before signing that edit. I've fixed the signature one minute later, see Special:Diff/945224965. MFossati (WMF) (talk) 13:37, 21 October 2024 (UTC)[reply]
  • The extended run of the bot has finished, ~3,800 images have been edited and identified as a logo, you can take a look at the bot's contributions to evaluate them. What do you think of the results? Do you think the bot could be now allowed to run? Sannita (WMF) (talk) 16:56, 24 October 2024 (UTC)[reply]
    • First thought is that all of the "BSicon" stuff is wrong, none of those are logos. - Jmabel ! talk 19:41, 24 October 2024 (UTC)[reply]
    • Picking 10 others at random:
      1. File:MEFA Logo.svg already appropriately categorized as a logo, clearly below TOO.
      2. File:Bridger Aerospace logo.svg Like the previous one. I did add Category:Logos of companies of the United States because uploader hadn't thought to say what country.
      3. File:Club América de Palpa.png might be problematic; claimed as "own work" (which might be true for the particular PNG); roughly in the neighborhood of TOO, I don't know rules for Peru, someone might want to take a look at this. Needs categories, in any case.
      4. File:Avelonia Logo 2024.png similar case to the last, although in this case I can't even quickly tell what country.
      5. File:2gotravellogo.png needs categories, from Philippines, appears to be below TOO.
      6. File:CTree RootNet Bubble blue rev 05 interim 600dpi.png. No idea what this is, needs cats, might be a logo or not, doesn't say what country, below TOO almost anywhere.
      7. File:BR Verkehr Variante.svg appropriately categorized, clearly below TOO, unproblematic.
      8. File:Auliq Records wordmark.png clearly below TOO, heavily but poorly categorized, already nominated for deletion as out of scope (on which I have no opinion).
      9. File:Filebrowser - banner.svg already correctly identified as a free software logo, the claimed license is indeed granted at specified source (but might be below TOO anyway).
      10. File:ALoSeguro.svg not clearly a logo (just text form of a slogan) though categorized as such, clearly below TOO, appropriately categorized.
    • So the usefulness of this is supposed to be …? - Jmabel ! talk 20:04, 24 October 2024 (UTC)[reply]
      Thanks for your proactive feedback! I think it really follows the direction of our long-term goal, namely to help moderators find problematic media.
      • Re: BSicon - this was already raised in a previous request and fixed;
      • re: random examples - you can find more information along the lines of your comments in the reports we published. For instance, categories and own work are there. See [4], [5], and [6].
      MFossati (WMF) (talk) 14:15, 25 October 2024 (UTC)[reply]
      • @MFossati (WMF): I'm an admin, and based on my sample above, I don't see how this is any more help in finding problematic media than looking at any random collection of newly uploaded files. Can you clarify how this is supposed to be more useful in finding problematic files than just a random selection of recent uploads? - Jmabel ! talk 18:45, 25 October 2024 (UTC)[reply]
        @Jmabel Thanks for your feedback. Marco is currently out of office, so I'll try to take a stab at it: we're trying to narrow down the number of potentially problematic files, by highlighting only the potential logos among the quite high number of uploads that everyday are made on Commons.
        We received already some positive feedback about our work in the last six months, and according to our findings our experimental tool can detect ~47% more files that are not correctly categorized as logos or are not correctly pointed out as such. This does not substitute the need for a human eye to evaluate them, but at least should be enough to help said human eye to find what they need to find, without resorting to check a "random collection of newly uploaded files". This is also what we're trying to do with our datasets published on the Admins' noticeboard.
        Anyway, if this bot request is just not enough useful, we'll stick to publishing datasets for you admins to consider. Sannita (WMF) (talk) 19:02, 29 October 2024 (UTC)[reply]
        • Is there any "control" for this experiment? E.g. any pre-bot baseline on some task or tasks that we can measure against to see whether the bot is actually helping anything happen any better than before? - Jmabel ! talk 21:18, 29 October 2024 (UTC)[reply]