Ontology

Agree what the recipe concepts mean

Use a shared vocabulary for recipes, ingredient quantities, nutrition and meal planning.

When is this useful?

Use an ontology when a team needs to agree on concepts and relationships before choosing a database structure.

Full Ontology example
The original editable example. Your own edits may differ. Background on Wikipedia

Read the example

This walkthrough describes the original catalogue example; your own document may differ.

Name the concepts

Recipe, Recipe ingredient, Ingredient and Nutrition describe different things. Recipe ingredient represents the use of an ingredient in a recipe, including its quantity.

Read the named properties

Recipe uses Recipe ingredient; that connects to Ingredient and Nutrition. Follow the labels to say what each relationship means rather than treating every line as a generic connection.

Expand the domain

Meal plan includes recipes, a Recipe yields a Serving, and Nutrition target constrains nutrition. Quantity, protein and carbohydrate are described with units where shown.

Open Ontology example

Make one small change

Open the example, select Recipe ingredient and inspect its quantity property through Diagram → Object type definition. Add a definition that helps another person distinguish an ingredient from its use in a recipe.

Related diagram type

Entity relationships — a separately labelled companion guide.

Optional advanced reading

These resources describe wider ontology concepts, not implemented import or reasoning features: RDF Schema, SHACL validation, and Why Agentic Systems Need Ontologies.