Wikidata / soweego

Link Wikidata items to large catalogs
https://meta.wikimedia.org/wiki/Grants:Project/Hjfocs/soweego_2
GNU General Public License v3.0
97 stars 9 forks source link

OccupationQidSet reaching SPARQL query limit #314

Closed tupini07 closed 5 years ago

tupini07 commented 5 years ago

The OccupationQidSet now properly handles concurrent execution of itself by means of an external cache which is concurrent safe. This cache is shared across all threads and invocations of the OccupationQidSet feature so that now the number of SPARQL queries we need to make is drastically reduced.

Another change introduced by this PR is to soweego/wikidata/sparql_queries.py where now we handle response code 429 by simply retrying after a short time.

Closes #273