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 #24

Closed jayaddison closed 4 years ago

jayaddison commented 4 years ago

Describe the reason for these changes and the problem that they solve

Implements the proposed solution for ingredient 'byproducts' from #23.

Briefly summarize the changes

  1. Add an input byproducts.txt file that contains a mapping of ingredient terms to parent product names
  2. Use the input file at ingredient-relationship-matching time to build the ingredient hierarchy

How have the changes been tested?

  1. Locally via pipenv run python -m scripts.hierarchy --update

List any issues that this change relates to Relates to https://github.com/openculinary/api/issues/41. Resolves #23.