Wikidata:Requests for permissions/Bot/Mfchris84-Bot 2
(Redirected from Wikidata:Requests for permissions/Bot/Mfchris84-Bot 1)
- The following discussion is closed. Please do not modify it. Subsequent comments should be made in a new section. A summary of the conclusions reached follows.
- Approved--Ymblanter (talk) 12:57, 10 April 2024 (UTC)[reply]
Mfchris84-Bot (talk • contribs • new items • new lexemes • SUL • Block log • User rights log • User rights • xtools)
Operator: Mfchris84 (talk • contribs • logs)
Task/s: Adding swisscovery edition ID (P9907) to instance of (P31)version, edition or translation (Q3331189) based on checking ISBN-13 (P212) or ISBN-10 (P957) against the SRU-API of the Swiss Library Platform. If there is only one match on SLSP side, i will add the SLSP-Identifier to the Wikidata Item.
Code: https://gitlab.com/zhbluzern/slsp-editions-id-bot
Function details:
- 1. The script makes a SPARQL-Query for all version/edition items in Wikidata with an ISBN, optionally a publication date and without the SLSP ID.
- 2. With the ISBN and the publication year the script makes a request for records using the Swisscovery SRU API.
- 3. If there is exactly one record, the MMS-ID (MARC Field 001) will be parsed
- 4. The Script adds the MMS-ID in the corresponding Wikidata Item. (using the Wikidata REST-API)
Example Edits from today: Contributions --Mfchris84 (talk) 21:44, 10 March 2024 (UTC)[reply]