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 boolean properties (vegan, vegetarian, ...) to individual ingredient metadata #52

Closed jayaddison closed 4 years ago

jayaddison commented 4 years ago

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

For the purposes of searching and filtering recipes based on dietary requirements, it's important to know various boolean properties of each recipe - such as whether it is vegan or not.

Many of these properties are determined by assessing that same property against each of the individual component ingredients of the recipe.

This change adds four properties to each ingredient metadata response from the service:

Briefly summarize the changes

  1. Determine boolean properties of each ingredient based on naive logical rules
  2. Include boolean property values in service response

How have the changes been tested?

  1. Unit test coverage is provided