Re: [Wikidata] searching for Wikidata items

2019-06-07 Thread Amirouche Boubekki
Hello all, Le mar. 4 juin 2019 à 15:46, Marielle Volz a écrit : > Yes, the api is at > https://www.wikidata.org/w/api.php?action=query=search=Bush > > There's a sandbox where you can play with the various options: > >

Re: [Wikidata] searching for Wikidata items

2019-06-05 Thread Maarten Dammers
Hi Tim, Pywikibot has generators around the API. For example for search you have https://doc.wikimedia.org/pywikibot/master/api_ref/pywikibot.html#pywikibot.pagegenerators.SearchPageGenerator . So basically anything you can search for as a user can also be used as a generator in Pywikibot.

Re: [Wikidata] searching for Wikidata items

2019-06-04 Thread Stas Malyshev
Hi! > Yes, the api is > at https://www.wikidata.org/w/api.php?action=query=search=Bush There's also https://www.wikidata.org/w/api.php?action=wbsearchentities=Bush=en=json This is what completion search in Wikidata is using. -- Stas Malyshev smalys...@wikimedia.org

Re: [Wikidata] searching for Wikidata items

2019-06-04 Thread Marielle Volz
And I should add there's a third party api called open refine that can filter by types: https://tools.wmflabs.org/openrefine-wikidata/ https://tools.wmflabs.org/openrefine-wikidata/en/api?query=%7B%22query%22:%22bush%22,%22type%22:%22Q5%22%7D On Tue, Jun 4, 2019 at 2:44 PM Marielle Volz wrote:

Re: [Wikidata] searching for Wikidata items

2019-06-04 Thread Marielle Volz
Yes, the api is at https://www.wikidata.org/w/api.php?action=query=search=Bush There's a sandbox where you can play with the various options: https://www.wikidata.org/wiki/Special:ApiSandbox#action=query=json=search=Bush On Tue, Jun 4, 2019 at 2:22 PM Tim Finin wrote: > What's the best way to

[Wikidata] searching for Wikidata items

2019-06-04 Thread Tim Finin
What's the best way to search Wikidata for items whose name or alias matches a string? The search available via pywikibot seems to only find a match if the search string is a prefix of an item's name or alias, so searching for "Bush" does not return any of the the George Bush items. I don't want