Ironholds / WikidataR

An R package for the Wikidata API
Other
53 stars 14 forks source link

find_item() Is it possible to use regular expressions #13

Closed pssguy closed 8 years ago

pssguy commented 8 years ago

If I wanted surnames i.e. Kennedy find_item(*Kennedy)

Currently this results in 0

but find_item("Kennedy, limit=1000) just provides first 50 starting Kennedy e.g Kennedy-Syndrom, Kennedy Space Center, Kennedy Leigh

Ironholds commented 8 years ago

I don't know if the search system supports regexes but will find out (strictly speaking my day job is to help build it so I should probably find this out anyway :P)

Ironholds commented 8 years ago

The answer turns out to be pretty close to no, but I'll try to narrow it down on Monday.

Ironholds commented 8 years ago

Update: pinged the upstream person again!

Ironholds commented 8 years ago

Answer: the only way is to search the text, not the titles :(.