Wikidata:Bot requests/Archive/2020/08
This is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Online World of Wrestling ID (P2830) values broken
Request date: 21 August 2020, by: Jeanjung212
- Link to discussions justifying the request
- Property link broken because the website updated their formatting for bios/profiles.
- Task description
The old system on the website used a bios format where it was then catageorized by letter like bios/a/abyss while the new format is now profile/abyss. The bot just needs to remove the content before the / as well as the / and the rest of the name format can remain the same. There are a over 1000 instances of this and hopefully this is an easy task for a bot to accomplish.
- Licence of data to import (if relevant)
- Discussion
I am running a QuickStatements to update the identifiers. --Pyfisch (talk) 07:47, 23 August 2020 (UTC)
- Request process
I think that this discussion is resolved and can be archived. If you disagree, don't hesitate to replace this template with your comment. Pyfisch (talk) 10:26, 23 August 2020 (UTC) |
Request date: 18 July 2020, by: Pamputt
- Link to discussions justifying the request
- Task description
Would it be possible to replace all the use of P8252 (P8252) by content partnership category (P8464). Maybe it will be needed to create items for categories that do not have already one.
- Request process
It has been performed by Mike Peel's bot. Pamputt (talk) 15:08, 11 August 2020 (UTC)
I think that this discussion is resolved and can be archived. If you disagree, don't hesitate to replace this template with your comment. Matěj Suchánek (talk) 10:03, 25 August 2020 (UTC) |
Remove statement with Gregorian date earlier than 1584 (Q26961029) (qualifier deletion)
SELECT ?item ?property (YEAR(?year) as ?yr)
{
hint:Query hint:optimizer "None".
?a pq:P31 wd:Q26961029 .
?item ?p ?a .
?a ?psv ?x .
?x wikibase:timeValue ?year .
?x wikibase:timePrecision 7 .
?x wikibase:timeCalendarModel wd:Q1985727 .
?property wikibase:statementValue ?psv .
?property wikibase:claim ?p .
}
LIMIT 15704
The above dates have year precision and proleptic Gregorian calendar (Q1985727) as calendar model. I think they could be converted to Julian and the qualifier statement with Gregorian date earlier than 1584 (Q26961029) removed.
--- Jura 09:19, 24 February 2018 (UTC)
- Support --Marsupium (talk) 23:01, 28 April 2018 (UTC)
- Presumably some such statements are actually intended to be Gregorian year, no? --Yair rand (talk) 02:56, 5 September 2018 (UTC)
- Sample? --- Jura 05:52, 4 December 2018 (UTC)
- I checked some Lunar Eclipses from Antiquity (a kind of event where we can compute accurate dates) and the dates where all stated in the Julian calendar and correctly entered into Wikidata. --Pyfisch (talk) 12:50, 21 December 2018 (UTC)
- Sample? --- Jura 05:52, 4 December 2018 (UTC)
- Some 14,000 are still there. --- Jura 21:19, 26 March 2020 (UTC)
- Support However I would extend it to all the dates with precision of month, year, and lower. Dates with day precision should be processed by hand, or through a different bot run. --Jarekt (talk) 15:20, 21 August 2020 (UTC)
database reports on c:Category:Paintings without Wikidata item (periodic database report based on templates)
To help determine for which files it could be worth creating new items, it would be helpful to have two database reports detailing the number of files
- per artist
- per collection
This could be done based on other categories on these files or based on the templates present on these files.
Ideally the report would be updated regularly. --- Jura 11:59, 7 August 2019 (UTC)
- Suggested by @Jane023: at Wikidata_talk:WikiProject_sum_of_all_paintings#Import_from_..._Commons. --- Jura 12:17, 7 August 2019 (UTC)
- Thanks! Related, it would be nice to know which files on Commons under museum/artist categories have artwork templates and no wikidata items. In my experience these files are often not picked up because they lack categories (part of an institution upload, or a file transferred to Commons from a specific artist page on Wikipedia). Of course there is no way to sprt paintings from other artworks, but generally if the thing is in a museum, it is notable enough for Wikidata anyway. Jane023 (talk) 12:47, 7 August 2019 (UTC)
- Sounds like a good idea. At present, it might not be possible to do that without adding the files to a maintenance category (similar to c:Category:Paintings without Wikidata item). Exclusions also need to be handled (similar to the two property proposals for paintings). See c:Commons_talk:Structured_data#Usage_not_visible_? for the general problem. --- Jura 13:09, 7 August 2019 (UTC)
- Could be helpful. --- Jura 21:19, 26 March 2020 (UTC)
- Support --Jarekt (talk) 15:22, 21 August 2020 (UTC)
Add title page number (P4714)-qualifier to Internet Archive ID (P724)
At Commons, recently many files from the Internet archive were uploaded. The problem is that these pdfs don't seem to include information about the title page and so many files display an image of the binding.
If you open a file on the Internet Archive, most of the time, the title page is displayed. It's not entirely clear to me how this is stored there and could be gathered.
Ideally, I think we would have a title page number (P4714) qualifier on all P724 statements: in this case Commons could use the info from Wikidata.
See also: Property_talk:P724#Title_page discussion with @Jarekt:. --- Jura 07:15, 21 August 2020 (UTC)
- Support the same bot should add title page number (P4714) to SDC of the files on Commons. --Jarekt (talk) 15:48, 21 August 2020 (UTC)
Request date: 12 August 2020, by: 217.117.125.72
- Task description
If item has Commons link to Category namespace and not instance of (P31)Wikimedia category (Q4167836) put the Category in Commons category (P373).
- Discussion
- Request process
- Can you give a sample? --- Jura 08:46, 13 August 2020 (UTC)
- @Jura1: See history of Skathi (Q17982). 217.117.125.72 16:13, 14 August 2020 (UTC)
- Of course. I think Pi bot (talk • contribs • logs) already does or did that. However, as the plan is to eventually drop P373, it might already have stopped doing so. --- Jura 06:53, 21 August 2020 (UTC)
- @Jura1: Pi bot never did this, the hope is that P373 will go away soon. I'm not convinced it's worth the bot edits to do this task, it's better to use code that uses the sitelinks rather than continuing to use P373. Thanks. Mike Peel (talk) 15:13, 22 August 2020 (UTC)
- Support I run this task manually once or twice. Here is a SPARQL query for those:
SELECT ?item ?category WHERE {
?commonsSitelink schema:about ?item; schema:isPartOf <https://commons.wikimedia.org/>; schema:name ?sitelink_label .
FILTER(STRSTARTS(STR(?commonsSitelink), "https://commons.wikimedia.org/wiki/Category")) . # sitelink to a category
BIND(str(substr(?sitelink_label,10)) as ?category) . # strip "Category:" part
minus {?item wdt:P31 wd:Q4167836 } . # skip category items
minus {?item wdt:P31 wd:Q59541917 } . # skip category items
minus {?item wdt:P373 [] } . # items with missing P373
} LIMIT 100
Missing periodicals: Identify and create missing periodicals from scholarly articles with volume/issue/page(s) details
See Wikidata_talk:WikiProject_Periodicals#Missing_periodicals. This can probably be done by bot. --- Jura 08:46, 13 August 2020 (UTC)
- Note: in some cases (likely many), items for the periodical already exist, but the import failed to transfer it to article items. Examples I have added manually include London Medical Journal (Q16592491) and The Eugenics Review (Q15716447). Hopefully human oversight will prevent large unthinking bots from creating duplicates en masse before their creation. -Animalparty (talk) 18:43, 28 August 2020 (UTC)
Create items for books at Commons
c:Category:Files from the Biodiversity Heritage Library includes plenty of books (thousands).
Ideally we would have items for most of them. Filenames generally include Internet Archive ID (P724). --- Jura 14:39, 12 July 2020 (UTC)
- BTW, In the meantime, I noticed there is Wikidata:WikiProject_BHL which already created some of them.
- For these, merely document file on Wikimedia Commons (P996) should be added. --- Jura 06:48, 21 August 2020 (UTC)
- Support but ideally the task would be followed by a run on commons to add digital representation of (P6243) to SDC of those files, otherwise Commons can not use those items.--Jarekt (talk) 15:30, 21 August 2020 (UTC)
- Support but be smart about it. Many works already have items. Many works have also multiple copies at the Internet Archive or elsewhere. Not every scanned copy of a book needs its own item, even if they have unique Internet Archive or BHL identifiers, as I've argued here. Another good idea for a (bot assisted) drive would be to to add the corresponding QID to the
{{Book}}
templates on Commons. And Jarekt: of course Commons can use those items even without P6243, just as it could have before SDC, or Wikidata itself existed. Right? -Animalparty (talk) 20:06, 29 August 2020 (UTC)
- Animalparty, adding digital representation of (P6243) to SDC and "add[ing] the corresponding QID to the
{{Book}}
templates on Commons" are equivalent operations as c:template:Book gets wikidata item from digital representation of (P6243) if it is not provided to the template. --Jarekt (talk) 01:37, 30 August 2020 (UTC)
- Animalparty, adding digital representation of (P6243) to SDC and "add[ing] the corresponding QID to the