Closed egonw closed 5 years ago
The patch seems trivial:
s/getEntities/getManyEntities/
?
Mostly yep, but also (from wikidata-sdk
):
:warning: This limitation policy was probably there for a reason, right? This should be the exception, make sure to set an interval between your requests (500ms, 1s?)
const parseWikidata = function (data) {
const list = Array.isArray(data) ? data : data.trim().split(/(?:[\s,]\s*)/g)
return [].concat(wdk.getEntities(list, ['en']))
}
Also this and the async counterpart, although that should happen less often and should be modified anyway.
My Groovy Cheminformatics books has more than 50 citations using Wikidata now, and I just got this error:
The patch seems trivial:
s/getEntities/getManyEntities/
?