Skip to content

ADR-0005: Recipe Component Modelling Pattern

  • Identifier: urn:enterprise-data-architecture:decision:adr-0005
  • Status: Accepted

Context

Recipes have ingredient requirements with quantities and use characteristics, while Ingredients also have independent semantic meaning.

Decision

Recipe Component is an explicit business concept. A Recipe comprises Recipe Components. A Recipe Component specifies an Ingredient requirement.

Quantity, unit of measure, optionality, preparation purpose and substitution are characteristics of Recipe Component. An Ingredient may be fulfilled by suitable commercial Products. No direct Recipe-to-Ingredient composition is modelled.

Rationale

This separates the independent ingredient concept from its contextual use in recipes and avoids relationship-level attributes in the initial ontology.

Consequences

Future logical and physical models may resolve Recipe Component quantities, units and suitable Products. Nested recipes remain a future modelling consideration and must not be silently introduced.

The initial ontology retains one Product concept. Purchased products and products or services offered to customers are distinguished by business context, not necessarily by separate intrinsic concepts. An association records general suitability for an Ingredient to be fulfilled by a Product.

Recipe Component-specific product suitability, substitution, variants, packaging and product groups are deferred. Offering is a potential future concept distinct from Product, but it is not introduced in this scope.

Alternatives considered

  • Direct Recipe-to-Ingredient composition.
  • Adding quantities to Ingredient or Recipe.
  • Generic relationship attributes for Recipe composition.