Wikidata:Bot requests/Archive/2020/08

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)
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
Try it!

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)
  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)

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)

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)

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
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
Try it!

--Jarekt (talk) 15:12, 21 August 2020 (UTC)

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)

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)

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)