openculinary / knowledge-graph

The RecipeRadar knowledge graph stores and provides access to recipe and ingredient relationship information.
GNU Affero General Public License v3.0
10 stars 0 forks source link

Add support for ingredient byproducts #23

Closed jayaddison closed 4 years ago

jayaddison commented 4 years ago

Is your feature request related to a problem? Please describe. The knowledge graph currently categorizes many stocks and vinegars as sub-types of the ingredients they are derived from.

For example, 'red wine vinegar' is considered to be a kind of 'red wine', and 'chicken stock' is classified as a type of chicken ingredient.

These cases imply a need to support byproducts in the knowledge graph: ingredients that are derived from other ingredients (and so may contain the original ingredient in their name) but belong to their own separate hierarchies.

Describe the solution you'd like It would be useful to create a file that contains a set of mappings from ingredient-related terms to the name of their root byproduct hierarchy.

For example:

bouillon,stock
broth,stock
stock,stock
vinegar,vinegar

This would be an oversimplification of reality but would enable incremental improvement to the recipe search experience.

Resolves https://github.com/openculinary/api/issues/41