Changes

Jump to navigation Jump to search
852 bytes added ,  15:31, 11 August 2018
Line 43: Line 43:     
====Compounds====
 
====Compounds====
 +
* relation:isa:INGREDIENT
 +
====Compounds====
 +
* relation:contains:INGEDIENT
 +
 
====Transformations====
 
====Transformations====
 
A transformation from one ingredient to another can be encoded by:
 
A transformation from one ingredient to another can be encoded by:
Line 66: Line 70:  
* The ''en:clarified butter'' line is the main name of the ingredient. Any synonyms appear after the main name, separated by comma's. The prefix ''en:'' defines the language of the main ingredient.  
 
* The ''en:clarified butter'' line is the main name of the ingredient. Any synonyms appear after the main name, separated by comma's. The prefix ''en:'' defines the language of the main ingredient.  
 
* The next lines provide translations of the main ingredient in other languages. One language per line. Each line starts with a language prefix. Thus ''de:'' means german.
 
* The next lines provide translations of the main ingredient in other languages. One language per line. Each line starts with a language prefix. Thus ''de:'' means german.
== Categories Taxonomy
+
== Categories Taxonomy==
 
OFF maintains a categories taxonomy to categorise products. This categories taxonomy is related to the ingredient ontology, but subtly different.
 
OFF maintains a categories taxonomy to categorise products. This categories taxonomy is related to the ingredient ontology, but subtly different.
 +
First a product is something that is on sale and has an identifier (barcode). A product will never be part of an ingredients list. You will never see a barcode in the ingredients.
 +
 +
The relationship between product categories and ingredients can be described as: A product with a product name and barcode from a brand belongs to a category and has one or more ingredients.
 +
 +
For example the product [https://world.openfoodfacts.org/product/20139315/beurre-gastronomique-doux-milbona Beurre Gastronomique Doux] of the brand ''Milbona'' with barcode ''20139315'' has one ingredient: [https://world.openfoodfacts.org/ingredient/pasteurized-butter Beurre pasteurisé] and belongs to the [https://world.openfoodfacts.org/category/sweet-cream-butters Sweet cream butters] category.
 +
 
[[Category:Ingredients]]
 
[[Category:Ingredients]]
 
[[Category:Products]]
 
[[Category:Products]]
 
[[Category:Ontology]]
 
[[Category:Ontology]]
3,393

edits

Navigation menu