Add wikidata id to core food/ingredient model #4966
CloCkWeRX
started this conversation in
Feature Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First Check
Please provide a concise description of the problem that would be addressed by this feature.
Current, various ingredients seed but lack description, aliases, etc.
By modelling a wikidata ID, a call to the wikidata endpoint could provide multiple translations; aliases, images, etc.
Example: flour (very common)
https://www.wikidata.org/wiki/Q36465
Example: kangaroo meat (not very common!)
https://www.wikidata.org/wiki/Q1795395
This would allow display/sync of:
It would also potentially enable these scenarios:
Please provide a concise description of the feature that would resolve your issue.
Extend food model with wikidata id field
Potentially a type to find wikidata search control, similar to openstreetmap's ID editor UX
Update seed data with wikidata IDs for common foods
Expose to API endpoints
Optional:
On create of food, "would you like to match this to x"?
Display images or wikidata text.
Please consider and list out some caveats or tradeoffs made in your design decision
For the majority of users, this won't be something they care about inputting without an auto complete or similar; and for common ingredients it is common knowledge what they are.
But with certain foods you don't quite know what they are, it provides a quick explainer and ways to discover more.
Additional Information
Beta Was this translation helpful? Give feedback.
All reactions