Commons:Bots/Requests/GeertivpBot
< Commons:Bots | Requests
GeertivpBot (talk · contribs)
Operator: Geertivp (talk · contributions · Statistics · Recent activity · block log · User rights log · uploads · Global account information)
Bot's tasks for which permission is being sought:
- Add missing SDC depict statements on media files (File namespace)
- Add missing Wikidata Infobox template to Category pages (Category namespace)
Automatic or manually assisted: Automatically, but monitored
Edit type (e.g. Continuous, daily, one time run): Intermittently
Maximum edit rate (e.g. edits per minute): 8 edits per minute
Bot flag requested: (Y/N): Y
Programming language(s): Pywikibot, Python scripts are on GitHub:
- https://github.com/geertivp/Pywikibot/blob/main/add_image_from_sdc.py
- https://github.com/geertivp/Pywikibot/blob/main/copy_label.py
Test runs are here.
Geert Van Pamel (talk) 22:29, 3 January 2024 (UTC)
- Discussion
- Could you please elaborate how `depicts` is filled? For example, File:Novosibirsk Regional Museum at night 2.jpg should depict building and condition of shoot (night shoot) should be qualifier. --EugeneZelenko (talk) 15:40, 4 January 2024 (UTC)
- The image depicts a "night view of the Royal museum", expressed as SDC depicts (P180) nighttime view (Q28333482) with qualifier of (P642) City Trade House (Q19908752), based upon and generated by the original Wikidata statement Q19908752#P3451 City Trade House (Q19908752) nighttime view (P3451) (M19171168). By doing so, both the SDC depict statement in Wikimedia Commons and the Wikidata statement are describing the same fact.
- What qualifier would you use instead? Can you please elaborate more about the exact statement that you would create? Thanks. Geert Van Pamel (talk) 16:23, 4 January 2024 (UTC)
- Maybe you would like to see: depicts (P180) City Trade House (Q19908752) with qualifier depicted format (P7984) nighttime view (Q28333482)? Please give your point of view/preferences. Geert Van Pamel (talk) 14:24, 5 January 2024 (UTC)
- It makes sense to have broader discussion on matter of qualifiers. May be bot should be limited just for subjects for now? --EugeneZelenko (talk) 15:35, 5 January 2024 (UTC)
- @Geertivp: ? --Krd 14:34, 26 January 2024 (UTC)
- Or we might generate two statements without qualifiers:
- depicts (P180) City Trade House (Q19908752)
- depicted format (P7984) nighttime view (Q28333482) Geert Van Pamel (talk) 19:43, 26 January 2024 (UTC)
- @Geertivp: ? --Krd 14:34, 26 January 2024 (UTC)
- But here we have the problem that depicted format (P7984) may not be used as a qualifier: d:Property:P7984#P2302 => property scope constraint (Q53869507) as main value (Q54828448). In addition to that it can only be used with work of art (Q838948) entities and requires item-requires-statement constraint (Q21503247) genre (P136), which is in general not the case in this suggested usage. Which other qualifier property could be used instead? Geert Van Pamel (talk) 18:51, 18 February 2024 (UTC)
- I cannot follow. Please advise. --Krd 05:04, 7 March 2024 (UTC)
- @Geertivp: ? Krd 07:31, 31 March 2024 (UTC)
- In my previous reply I concluded that depicted format (P7984), because of its defined constraints, can't be used as a qualifier and only in some specific domains as work of art (Q838948). So we would need another more generic (currently not existing) property that could be used as a qualifier with a generic meaning of "type of representation", e.g. nighttime view (Q28333482) in the above example. Geert Van Pamel (talk) 20:53, 31 March 2024 (UTC)
- What does this mean regarding this request, what should be the conclusion? Krd 04:30, 3 April 2024 (UTC)
- We would need a new property "type of representation", that could be added as a qualifier to the Depict statements in Wikimedia Commons SDC for all images that are registered in Wikidata, and don't have a image (P18) property in Wikidata. Geert Van Pamel (talk) 07:45, 3 April 2024 (UTC)
- Are you going to take care of property creation? Krd 09:09, 3 April 2024 (UTC)
- See d:wikidata:property proposal/Type of representation Geert Van Pamel (talk) 19:28, 4 April 2024 (UTC)
- Thank you. Please advise when the discussion is closed. Krd 07:02, 18 April 2024 (UTC)
- See d:wikidata:property proposal/Type of representation Geert Van Pamel (talk) 19:28, 4 April 2024 (UTC)
- Are you going to take care of property creation? Krd 09:09, 3 April 2024 (UTC)
- We would need a new property "type of representation", that could be added as a qualifier to the Depict statements in Wikimedia Commons SDC for all images that are registered in Wikidata, and don't have a image (P18) property in Wikidata. Geert Van Pamel (talk) 07:45, 3 April 2024 (UTC)
- What does this mean regarding this request, what should be the conclusion? Krd 04:30, 3 April 2024 (UTC)
- In my previous reply I concluded that depicted format (P7984), because of its defined constraints, can't be used as a qualifier and only in some specific domains as work of art (Q838948). So we would need another more generic (currently not existing) property that could be used as a qualifier with a generic meaning of "type of representation", e.g. nighttime view (Q28333482) in the above example. Geert Van Pamel (talk) 20:53, 31 March 2024 (UTC)
- @Geertivp: ? Krd 07:31, 31 March 2024 (UTC)
- I cannot follow. Please advise. --Krd 05:04, 7 March 2024 (UTC)
- It makes sense to have broader discussion on matter of qualifiers. May be bot should be limited just for subjects for now? --EugeneZelenko (talk) 15:35, 5 January 2024 (UTC)
- Maybe you would like to see: depicts (P180) City Trade House (Q19908752) with qualifier depicted format (P7984) nighttime view (Q28333482)? Please give your point of view/preferences. Geert Van Pamel (talk) 14:24, 5 January 2024 (UTC)
@Geertivp: ? --Krd 05:23, 27 June 2024 (UTC)
- The property has been approved and is implemented. I need some more time to adapt my scripts and to run a few example transactions before I can request the approval of my bot script. I will notify when I am done. --Geert Van Pamel 09:31, 27 June 2024 (UTC)
- I have updated my bot script, and I have done one test run for one single Westende (Q1244401) Wikidata item, a city at the Belgian coast. This resulted in the following updates of Wikimedia Commons SDC Depict statements as documented by the bot request, using the property representation type (P12692) as a qualifier, based upon different "media" statements in Wikidata:
- File:WestendeLocation.svg (map)
- File:Kunst Strand Westende (7419708930) banner.jpg (WikiVoyage banner)
- File:Middelkerke wapen.svg (coat of arms)
- File:Westende Aerial View R01.jpg (areal view)
- Please confirm that the updates have been done according as to the specifications, and please consider to grant User:GeertivpBot a bot flag for doing likewise updates for other media files that are properly registered in any Wikidata Item. This will better documenent media files, and will allow finding more media files using SDC search statements. You might investigate the procedure
add_missing_sdc_depicts()
in the bot script. Thanks for your collaboration. --Geert Van Pamel 10:00, 21 August 2024 (UTC)- Looks good to me. I'd suggest to put this live, and call it approved if no objection arises in the next few days. Krd 14:16, 25 August 2024 (UTC)
- @Geertivp: ? Krd 13:55, 27 August 2024 (UTC)
- @Krd I am running the bot now since a few days. All is OK, I believe. Thanks to enable the bot flag. I am monitoring all updates, and do bugfixes when needed. --Geert Van Pamel 19:02, 27 August 2024 (UTC)
- As you put the names of items into the summary, can you please use links so that one can click on that directly? Krd 07:38, 29 August 2024 (UTC)
- @Krd I have adapted the script to your wishes: two examples:
- File:Telegram Android screenshot.svg (simple)
- File:Telegram 2019 simple logo.svg (with qualifier representation type (P12692))
- OK for you? --Geert Van Pamel 10:37, 29 August 2024 (UTC)
- Perfect, thank you. Krd 19:03, 29 August 2024 (UTC)
- @Krd I have adapted the script to your wishes: two examples:
- As you put the names of items into the summary, can you please use links so that one can click on that directly? Krd 07:38, 29 August 2024 (UTC)
- @Krd I am running the bot now since a few days. All is OK, I believe. Thanks to enable the bot flag. I am monitoring all updates, and do bugfixes when needed. --Geert Van Pamel 19:02, 27 August 2024 (UTC)
- @Geertivp: ? Krd 13:55, 27 August 2024 (UTC)
- Looks good to me. I'd suggest to put this live, and call it approved if no objection arises in the next few days. Krd 14:16, 25 August 2024 (UTC)
Approved. --Krd 01:52, 2 September 2024 (UTC)