openstreetmap / iD

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

Add wikidata description to dropdown list items #7460

Open boothym opened 4 years ago

boothym commented 4 years ago

I was adding wikidata to an object, however when doing so there were a lot of items with the same name - meaning I had to mouseover each one to get the description to appear.

If there is more than one wikidata item of the same name, could the description be added so users can differentiate between them? E.g. "Green Hill Q3314551 - Census-designated place in Wilson County Tennessee"

Untitled-1

Would it even be possible to prioritise the geographically closest items in the list?

quincylvania commented 4 years ago

@boothym I agree it'd be great to show the descriptions too, but no other comboboxes have subtitles so we'd have to build out this UI. I'd rather not just have one big long string.

Would it even be possible to prioritise the geographically closest items in the list?

Interested idea! This is probably doable. We could also theoretically filter the list to just geographic entities, but this is a bit risky since not everything on wikidata is properly categorized.

boothym commented 4 years ago

In JOSM, the wiki plugin can download elements either in the viewport or from a certain category.

The object I was editing was a peak, don't know if the wikidata api response supplies a catergory which could also help in terms of reducing the number of wikidata items?

wiki

1ec5 commented 1 year ago

We could also display a thumbnail image alongside each item, to help the user recognize the correct value more easily: https://github.com/openstreetmap/iD/issues/5566#issuecomment-445292438.

Sirorezka commented 1 year ago

I would like to upvote this issue. It is very hard to link with correct wikidata object if you don't see item description. Basically by definition on Wikidata Description is part of object identification. See how it is defined:

The description on a Wikidata entry is a short phrase designed to disambiguate items with the same or similar labels. A description does not need to be unique; multiple items can have the same description, however no two items can have both the same label and the same description.

from: https://www.wikidata.org/wiki/Help:Description

Check how item search works on wikidata site. It always includes item description: image