SuLab / WikidataIntegrator

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

Consider lag in Wikidata Integrator #56

Closed stuppie closed 4 years ago

stuppie commented 6 years ago

There is a triple on the last update which might be used to consider time lags between Wikidata and WDQS. This time interval can be used to stop editing if there is an unacceptable time lag.

https://phabricator.wikimedia.org/T192876

select * where {<http://www.wikidata.org> schema:dateModified ?d}

stuppie commented 6 years ago

Added code to enable checking for this, but it currently does not check and delay edits accordingly. https://github.com/SuLab/WikidataIntegrator/blob/d759a5e982256224d6d0b915592cb35719e0a0f8/wikidataintegrator/wdi_helpers.py#L788