Hello Joe,
By batching requests, we mean minimizing the number of requests you need to
make.
For example, if you're reading data with the wbgetentities endpoint, try to
request the maximum number of IDs you are able to at a time.
If you’re adding data, avoid making repeated wbsetclaim requests; instead
put all the claims you want to add in a single wbeditentity request.
I believe that this is supported by the Wikidata-Toolkit, although I'm no
expert in it. In the examples, you can see how to batch together reading a
list of properties rather than reading them one by one. (
https://github.com/Wikidata/Wikidata-Toolkit-Examples/blob/master/src/examp…
)
Cheers,
The Wikidata Team
On Fri, Aug 20, 2021 at 6:47 PM Joe Wass <jwass(a)crossref.org> wrote:
Thanks very much for the announcement. When you say
"make sure to batch
requests", can you give some detail on exactly what this means? Is this
something supported by Wikidata-Toolkit Java Library (
https://github.com/Wikidata/Wikidata-Toolkit )?
_______________________________________________
Wikibaseug mailing list -- wikibaseug(a)lists.wikimedia.org
To unsubscribe send an email to wikibaseug-leave(a)lists.wikimedia.org