Re: [Wikidata-tech] Fastest way (API or whatever) to verify a QID

2018-05-16 Thread Albin Larsson
For a single QID does it make sense to use a HTTP HEAD request against the item page? I assume it would perform well on the client at least. Cheers // Albin Larsson User:Abbe98 2018-05-15 20:05 GMT+02:00 Daniel Kinzler : > You can do this via the API, e.g.: > >

Re: [Wikidata-tech] Fastest way (API or whatever) to verify a QID

2018-05-15 Thread Daniel Kinzler
You can do this via the API, e.g.: https://www.wikidata.org/w/api.php?action=query==json=Q1|Qx|Q1003|Q66=1 Note that this uses QIDs directy as page titles. This works on wikidata, but may not work on all wikibase instances. It also does not work for PIDs: for these, you have to

Re: [Wikidata-tech] Fastest way (API or whatever) to verify a QID

2018-05-15 Thread Lucas Werkmeister
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")'