SuLab / WikidataIntegrator

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

Remove or adapt too specific code #130

Closed LeMyst closed 3 years ago

LeMyst commented 4 years ago

There is too specific code in the reference system: https://github.com/SuLab/WikidataIntegrator/blob/a8fb34a89db92441aab966cfac77b9b95a2ed20f/wikidataintegrator/wdi_core.py#L1411-L1433 and it's used here: https://github.com/SuLab/WikidataIntegrator/blob/a8fb34a89db92441aab966cfac77b9b95a2ed20f/wikidataintegrator/wdi_core.py#L480

This code only work on wikidata. I don't know how to adapt it for wikibases. Move it to wdi_config ?