SuLab / WikidataIntegrator

A Wikidata Python module integrating the MediaWiki API and the Wikidata SPARQL endpoint
MIT License
244 stars 46 forks source link

Create a library that populate the PROPS list from WDQS directly #94

Closed andrawaag closed 3 years ago

andrawaag commented 5 years ago

In different bots is common practice to use variables to store PIDs and QIDs. Currently most are declared in init.py in scheduled_bots. However, they do change overtime. Items do get merged or deleted, causing bots to fail. This is for example the case in https://github.com/SuLab/scheduled-bots/issues/31.

I propose moving this to the WDI, where the property and item labels are linked to the respective PIDs and QIDs. Instead of hardcoding these in the bot, the dictionaries and lists are populated every time through a SPARQL query.