oppskrift/doc/Models.md
2019-03-05 08:22:53 +01:00

3.0 KiB

Models specifications

Recipe

estimatedTime

Array of different estimated times : cookTime, prepTime, performTime, totalTime, waitTime

cookTime

prepTime

performTime

  • https://schema.org/Duration
  • The length of time it takes to perform instructions or a direction (not including time to prepare the supplies)

totalTime

waitTime

cookingMethod

→ Maybe just not use it, or analyse the text to excerpt it
The method of cooking, such as Frying, Steaming,...
Maybe have a checklist of methods ?

recipeCategory

String (255) The category of the recipe—for example, appetizer, entree, etc.

recipeCuisine

String (255)
The cuisine of the recipe (for example, French or Ethiopian).

recipeIngredient

String[]
List of ingredients in text format A single ingredient used in the recipe, e.g. sugar, flour or garlic.

recipeInstructions

String[]
A step in making the recipe, in the form of a single item (document, video, etc.) or an ordered list with HowToStep and/or HowToSection items. The number of the step should never be the text.

recipeYield

String (50)
The quantity produced by the recipe (for example, number of people served, number of servings, etc).

suitableForDiet

Array of selected keywords (DiabeticDiet, GlutenFreeDiet, HalalDiet, HinduDiet, KosherDiet, LowCalorieDiet, LowFatDiet, LowLactoseDiet, LowSaltDiet, VeganDiet, VegetarianDiet)
Indicates a dietary restriction or guideline for which this recipe or menu item is suitable, e.g. diabetic, halal etc. TODO : Decide the best way to store the list... maybe in the model


tool

String[]
A sub property of instrument. An object used (but not consumed) when performing instructions or a direction.

author

ManyToOne:User
The author, a user Microdata, JSON-LD : Person with name, url (profile) and image.

comment

OneToMany:Note
A list of Note received from the fediverse TODO : define a comment

commentCount

Integer
A property to be shown in microdata/json-ld but in the model

contributor

If anyone contribute to the recipe they should appear here as a list of users

dateModified

The most recent modification date

datePublished

The date the first time the recipe appeared online

dicussionUrl ?

PROBABLY NOT

licence

text ?

thumbnailUrl ?

version ?

description

identifier ?

image

mainEntityOfPage ?

name

The name of the recipe

url ?

likesCount

Calculated from the likes in the database

difficulty

The degree of difficulty from a list to define