Skip to content

Class: Ingredient

URI: recipe:Ingredient

classDiagram class Ingredient Relationship <|-- Ingredient Ingredient : food_item Ingredient : quantity

Inheritance

Slots

Name Cardinality and Range Description Inheritance
food_item 0..1
FoodItem
the food item direct
quantity 0..1
xsd:string
the quantity of the ingredient direct

Usages

used by used in type used
Recipe ingredients range Ingredient

Identifier and Mapping Information

Schema Source

  • from schema: https://w3id.org/linkml/ai/templates/recipe

Mappings

Mapping Type Mapped Value
self recipe:Ingredient
native recipe:Ingredient

LinkML Source

Direct

name: Ingredient
from_schema: https://w3id.org/linkml/ai/templates/recipe
rank: 1000
is_a: Relationship
attributes:
  food_item:
    name: food_item
    description: the food item
    from_schema: https://w3id.org/linkml/ai/templates/recipe
    rank: 1000
    range: FoodItem
  quantity:
    name: quantity
    description: the quantity of the ingredient
    from_schema: https://w3id.org/linkml/ai/templates/recipe
    rank: 1000
    range: string

Induced

name: Ingredient
from_schema: https://w3id.org/linkml/ai/templates/recipe
rank: 1000
is_a: Relationship
attributes:
  food_item:
    name: food_item
    description: the food item
    from_schema: https://w3id.org/linkml/ai/templates/recipe
    rank: 1000
    alias: food_item
    owner: Ingredient
    domain_of:
    - Ingredient
    range: FoodItem
  quantity:
    name: quantity
    description: the quantity of the ingredient
    from_schema: https://w3id.org/linkml/ai/templates/recipe
    rank: 1000
    alias: quantity
    owner: Ingredient
    domain_of:
    - Ingredient
    range: string