User:ProteinBoxBot/201409 sprint

From Wikidata
Jump to: navigation, search

Overall summary[edit]

Our goal is to make Wikidata the canonical resource for referencing and translating these identifiers. The goal of this sprint is to:

  1. continue adding all identifiers for human genes and proteins from User:ProteinBoxBot/201408 sprint.
  2. Create a generic workflow for additional resources
  3. Create an update bot


Background info[edit]


  • Search for a property ID:<property>&language=en&type=property (e.g. Entrez)

Original source data files[edit]

(all information coming in via )

Game plan[edit]


  1. Separate two bot functions: 1) creating stubs, 2) adding additional properties and updating; confirm that both can use the Wikidata API on the Entrez Gene property
  2. Add the remain entrez genes as stubs in WikiData
  3. create infrastructure for continuously-running update bot

Separate two bot functions[edit]

In this sprint three bots have been developed:



This bot takes a text file containing Entrez Gene Identifiers and their labels as input. Subsequently the label of each Entrez gene identifier is added to WikiData if it doesn't exist already. Three properties are added:

  1. The Entrez Gene Identifier (Property:P351)
  2. Subclass of Gene (Property:P279 and Q7187)
  3. Found in Taxonomy Human (Property:P703 and Q5)

It took about a week for the StubBot to process all of Entrez Gene. A log file is kept registering Entrez Gene Ids and their respective WikiData ID: Entrez2WikiData_Success.log


Once the stubs are created for the Entrez Gene entries, a second bot takes over to enrich with content provided by When writing this update this bot is still running and covered 34% in one week.


The third bot written during this bot, was to correct an error that was made in last months sprint. In the first development stages the bot did not check whether or not an entry for the entry gene label already existed in WikiDatam, but annotated as another subclass of ...., than Gene. This error made around 200 erroneous additions. The geneProteinCorrectionBot fixed this. This bot is a bot that is only needed once, since in the latest ProteinBoxBot code, the bug responsible is fixed.