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

Equipment metadata: render equipment class information as part of API response markup #44

Closed jayaddison closed 4 years ago

jayaddison commented 4 years ago

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

In order to more easily represent and reason about the entities contained within each recipe direction line, it's important to know the object type that each match relates to.

For that reason, instead of returning markup that contains fry the <mark>onions</mark> in the <mark>frying pan</mark>, it would be more informative to respond with fry the <mark class="ingredient">onions</mark> in the <mark class="vessel">frying pan</mark>.

Briefly summarize the changes

  1. Update to hashedixsearch==0.2.7 for custom attribute rendering support
  2. Render per-equipment-type class information in API responses

How have the changes been tested?

  1. Test coverage is updated