Execute the function f(x,...) in chunks of chunk-size elements each.
Wikidata and Wikimedia API have limits to execute a query. Wikidata has
timeout limits, Wikimedia about the number of titles or pageIds. This function
executes sequentially the function f
over chunks of elements to prevent
errors.
doChunks(f, x, chunksize, ...)
The results of execute f
using all values of x
The function to execute.
Vector of entities or titles/pageids.
The number of elements in x
to execute the function.
The f
arguments.
Angel Zazo, Department of Computer Science and Automatics, University of Salamanca