Wikidata:Requests for permissions/Bot/TiagoLubianaBot 3
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) 20:37, 3 November 2023 (UTC)[reply]
TiagoLubianaBot 3 edit
TiagoLubianaBot (talk • contribs • new items • new lexemes • SUL • Block log • User rights log • User rights • xtools)
Operator: TiagoLubiana (talk • contribs • logs)
Task/s: Normalize MONDO IDs (Mondo ID (P5270)) on Wikidata so federation works out of the box.
Code:https://github.com/lubianat/mondo_normalization/tree/master
Function details:
The values for the (Mondo ID (P5270)) property currently have ":" in it, e.g. "MONDO:0005301".
This is problematic, because it hinders use of the formatter URI for RDF resource (P1921) property, as the URI does not have ":" in it. For example, for this concept, the URI would be "http://purl.obolibrary.org/obo/MONDO_0005301".
To fix it, I propose changing the ":" value for "_" for all the values, as well as change the format as a regular expression (P1793) regular expression.
The bot code parses the current claims and, for each one of them, changes the value for the new syntax.
--TiagoLubiana (talk) 19:38, 25 October 2023 (UTC)[reply]
- I've done 01 test edit as demonstration: https://www.wikidata.org/w/index.php?diff=1994804167&diffmode=source . Note that the code currently excludes the previous reference. As this is an identifier pointing to the resource, removing the reference should not be a major issue. If needed, I can work on a workaround to keep it. TiagoLubiana (talk) 19:41, 25 October 2023 (UTC)[reply]