openstreetmap / iD

🆔 The easy-to-use OpenStreetMap editor in JavaScript.
https://www.openstreetmap.org/edit?editor=id
ISC License
3.34k stars 1.2k forks source link

Rank Wikidata suggestions by popularity and type #8437

Open brawer opened 3 years ago

brawer commented 3 years ago

When iD proposes a list of Wikidata entries, consider ranking suggestions by popularity so that the most common things come first. Perhaps QRank might be useful for ranking (disclaimer: QRank author here, apologies for my shameless plug).

Also, consider type-specific boosting of entities in the Wikidata suggestion list: When editing animal enclosures, suggest animals before non-animals for species:wikidata. When editing flower beds and trees, suggest plants before non-plants. When editing fountains, suggest fountains (as per Wikidata “instance of”) for wikidata before non-fountains.

image

papac25 commented 3 years ago
1ec5 commented 3 years ago

Perhaps QRank might be useful for ranking

Does QRank have an API associated with it? iD runs in a Web browser rather than on a desktop, so it would need some way of getting sorted results from an API on demand. Currently, iD uses the wbsearchentities action in Wikidata’s Wikibase API.