If you have the luxury of access to the replica servers (which is the case for the reconciliation service, right?), then I doubt any API is going to beat a raw SQL query:
$ sql wikidata 'SELECT page_title FROM page WHERE page_namespace = 0 AND page_title IN ("Q12345", "Q123456", "Q1234567")' +------------+ | page_title | +------------+ | Q12345 | | Q123456 | +------------+
This shows that Q1234567 doesn’t exist. (Someone with more SQL knowledge could probably turn that into a “yes/no” kind of reply, too.)
Cheers, Lucas
On 15.05.2018 17:49, Thad Guidry wrote:
Which service is the fastest that can return when a QID is valid ?
OpenRefine is trying to improve its reconciling when folks already have lists of QID's and just want to ensure they are still valid and exist. https://github.com/OpenRefine/OpenRefine/issues/1596
-Thad
Wikidata-tech mailing list Wikidata-tech@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-tech