Difference between pages "Global labels taxonomy" and "Global taxonomies"

From Open Food Facts wiki
(Difference between pages)
Jump to navigation Jump to search
(Created page with "This is a merge of the existing French and Spanish labels hierarchies. <pre> stopwords:en: ingredients, from, with, of, by, the, verified, certified, approved, 100%, pure st...")
 
 
Line 1: Line 1:
This is a merge of the existing French and Spanish labels hierarchies.
 
  
<pre>
+
== Introduction ==
  
stopwords:en: ingredients, from, with, of, by, the, verified, certified, approved, 100%, pure
+
Open Food Facts uses global taxonomies for fields such as categories, brands, labels and countries. This page explains how taxonomies work in Open Food Facts and how they can be updated and enhanced.
stopwords:fr: ingrédients, issus, de, l', convient, peut convenir, au, aux, régime, régimes, conforme, validé, vérifié, certifié, par, un, une, approuvé, 100%, pur
 
stopwords:es: por, la, las, los, el, apto, para, certificado, controlado, registrado, 100%
 
  
 +
== Features ==
  
en: Fair trade
+
* A global hierarchy / taxonomy for each type of data field (categories, brands, labels, countries etc.)
es: Comercio justo
+
* Translations for every language of each field value
fr: Commerce équitable, équitable
+
* Multiple synonyms for each field value in each language
 +
* Stopwords for each language/field type
  
en: Organic
+
== Generalities ==
es: Producto ecológico, Ecológico, Biológico, Producto biológico, Orgánico, Producto orgánico, Eco, Bio, ECO, BIO
 
fr: Bio, agriculture biologique, biologique, organic, organique,  issu de l’agriculture biologique, ingrédients issus de l’agriculture biologique, Les-ingredients-sont-issus-d-une-agriculture-biologique
 
  
 +
Each language has a 2-letter prefix. e.g. "en" for English and "fr" for French.
  
en: PDO, P.D.O, Protected Designation of Origin
+
Whenever possible, the canonical language for each field value should be English. e.g. en:soups is the canonical value for the Soups category.
es: DOP, D.O.P, Denominación de Origen Protegida
+
A value can be defined in another language (which becomes the canonical language), e.g. fr:soupes-a-l-oignon could be the canonical value for "Onion Soups" if we don't have an English tranlsation yet. Before December 2013, the taxonomies were defined for each language, with most definitions for French, but English translations will be added progressively.
fr: AOP, A.O.P, Appellation d'origine protégée
 
it: DOP, D.O.P, Denominazione di origine protetta
 
  
en: Sustainable fishery, Sustainable fishing, Sustainable Seafood, Certified Sustainable Seafood MSC
+
New values (e.g. categories that do not exist yet) should have an English canonical value.
fr: Pêche durable, pêches durables
 
  
en: Vegetarian, Suitable for vegetarians
+
Each field value can be translated to any language.
es: Vegetariano, Producto vegetariano, Apto para vegetarianos, Vegetarian
 
fr: Végétarien, Convient aux végétariens
 
  
fr: Saveurs de l'Année
+
When a field value needs to be translated to a target language, if the translation does not exist yet, English is shown (or the canonical language if the English translation does not exist either).
  
< en:Fair trade
+
In each language, each value can have a number of synonyms.
en: Max Havelaar, Max Havelar
 
  
< en:Organic
+
Simple synonyms (simple singular) are done automatically when possible.
en: EU Organic, European Organic
 
es: Producto ecológico europeo
 
fr: Bio européen, Label bio européen, bio ce, bio européen, bio europe, fr-bio-01, ecocert fr-bio-01, be-bio-01, bio europe
 
  
en: Gluten-free, Without gluten, No gluten
+
Synonyms are recursive: if en:yoghurt is a synonym of en:yogurt, then en:banana_yoghurt will automatically be added as a synonym of en:banana_yogurt
es: Sin gluten
 
fr: Sans gluten
 
  
en: Palm oil free, Without palm oil, No palm oil
+
Stopwords can be used to further extend synonyms. e.g. if "à" and "la" are stopwords for French, then "Yaourts fraise" will automatically be mapped to "Yaourts à la fraise".
fr: Sans huile de palme
 
  
en: PGI, P.G.I, Protected Geographical Indication
+
The taxonomy is not a strict hierarchy: values can have multiple parents. But cycles are not allowed.
es: IGP, I.G.P., Indicación Geográfica Protegida
 
fr: IGP, I.G.P, Indication Géographique Protégée
 
  
en: TSG, T.S.G, Traditional Speciality Guaranteed
+
== Format ==
fr: STG, S.T.G, Spécialité traditionnelle garantie
 
  
< :
+
<pre>
en: Vegan Action
+
# stopwords
 +
stopwords:en: some,stopwords
 +
stopwords:fr: word,that,are,removed,when,matching
  
< :
+
# synonyms that are not field values but that are contained in field values
en: Vegan Society
+
synonyms:en: global,international
  
en: without, 0%
+
en: value, a synonym value, another synonym value
es: sin, 0%
+
fr: valeur, une valeur synonyme, une autre valeur synonyme
fr: sans, 0%
 
  
fr: AOC, A.O.C, Appelation d'Origine Contrôlée
+
<en: value
 +
en: a child value, a synonym for a child value
 +
fr: une valeur enfant, un synonyme d'une valeur enfant
  
it: DOC, D.O.C, Denominazione di origine controllata
+
<en: value
 +
en: another child value
  
< en:EU Organic
+
<en: a child value
es: BE-BIO-01
+
<en: another child value
 
+
en: a grand-child value
< en:EU Organic
+
</pre>
es: BE-BIO-02
 
 
 
< en:EU Organic
 
es: CH-BIO-004
 
 
 
< en:EU Organic
 
es: CH-BIO-006
 
 
 
< en:EU Organic
 
es: DE-ÖKO-001
 
 
 
< en:EU Organic
 
es: DE-ÖKO-003
 
 
 
< en:EU Organic
 
es: DE-ÖKO-007
 
 
 
< en:EU Organic
 
es: DE-ÖKO-013
 
 
 
< en:EU Organic
 
es: ES-ECO-001-AN
 
 
 
< en:EU Organic
 
es: ES-ECO-001-CM
 
 
 
< en:EU Organic
 
es: ES-ECO-002-AN
 
 
 
< en:EU Organic
 
es: ES-ECO-002-AR
 
 
 
< en:EU Organic
 
es: ES-ECO-002-CM
 
 
 
< en:EU Organic
 
es: ES-ECO-003-AN
 
 
 
< en:EU Organic
 
es: ES-ECO-004-AN
 
 
 
< en:EU Organic
 
es: ES-ECO-004-AR
 
 
 
< en:EU Organic
 
es: ES-ECO-005-AN
 
 
 
< en:EU Organic
 
es: ES-ECO-005-AR
 
 
 
< en:EU Organic
 
es: ES-ECO-006-AR
 
 
 
< en:EU Organic
 
es: ES-ECO-007-AR
 
 
 
< en:EU Organic
 
es: ES-ECO-008-AR
 
 
 
< en:EU Organic
 
es: ES-ECO-009-AR
 
 
 
< en:EU Organic
 
es: ES-ECO-010-AR
 
  
< en:EU Organic
+
== Taxonomies
es: ES-ECO-011-AR
 
  
< en:EU Organic
+
The definitions can be edited on this wiki, they are periodically synchronized on the Open Food Facts database and web site.
es: ES-ECO-012-AS
 
  
< en:EU Organic
+
Taxonomies:
es: ES-ECO-013-IB
 
  
< en:EU Organic
+
* [[Test taxonomy]] showing the basic taxonomy definition features
es: ES-ECO-014-IC
+
* [[Global categories taxonomy]]
 
+
* [[Global brands taxonomy]]
< en:EU Organic
+
* [[Global labels taxonomy]]
es: ES-ECO-015-CN
+
* [[Global countries taxonomy]]
 
 
< en:EU Organic
 
es: ES-ECO-016-CL
 
 
 
< en:EU Organic
 
es: ES-ECO-017-AN
 
 
 
< en:EU Organic
 
es: ES-ECO-017-CM
 
 
 
< en:EU Organic
 
es: ES-ECO-019-CT
 
 
 
< en:EU Organic
 
es: ES-ECO-020-CV
 
 
 
< en:EU Organic
 
es: ES-ECO-021-EX
 
 
 
< en:EU Organic
 
es: ES-ECO-022-GA
 
 
 
< en:EU Organic
 
es: ES-ECO-023-MA
 
 
 
< en:EU Organic
 
es: ES-ECO-024-MU
 
 
 
< en:EU Organic
 
es: ES-ECO-025-NA
 
 
 
< en:EU Organic
 
es: ES-ECO-026-VAS
 
 
 
< en:EU Organic
 
es: ES-ECO-027-RI
 
 
 
< en:EU Organic
 
es: ES-ECO-028-CM
 
 
 
< en:EU Organic
 
es: FR-BIO-01
 
 
 
< en:EU Organic
 
es: IT-BIO-003
 
 
 
< en:EU Organic
 
es: IT-BIO-006
 
 
 
< en:EU Organic
 
es: IT-BIO-007
 
 
 
< en:EU Organic
 
es: IT-BIO-008
 
 
 
< en:EU Organic
 
es: IT-BIO-013
 
 
 
< en:EU Organic
 
es: IT-BIO-014
 
 
 
< en:EU Organic
 
es: NL-BIO-01
 
 
 
< en:EU Organic
 
es: PT-BIO-03
 
 
 
< en:EU Organic
 
es: PT-BIO-04
 
 
 
< en:Fair trade
 
en: Fairtrade International, Fairtrade, FLO international, FLO
 
fr: Fairtrade International, Fairtrade, FLO international, FLO
 
 
 
< en:Fair trade
 
< en:Organic
 
fr: Bio-équitable, bioéquitable
 
 
 
< en:Fair trade
 
fr: TransFer, TransFer Canada
 
 
 
< en:Gluten-free
 
es: FACE
 
 
 
< en:Max Havelaar
 
fr: Max Havelaar Belgique
 
nl: Max Havelaar Belgie
 
 
 
< en:Max Havelaar
 
fr: Max Havelaar France
 
 
 
< en:Organic
 
fr: AB Agriculture Biologique, AB, Agence Bio, ab bio, bio ab, Ab-certifie-agriculture-biologique, ab certifié
 
 
 
< en:Organic
 
fr: Bio-dynamie, biodynamie, agriculture biodynamique, agriculture bio-dynamique
 
es: Agricultura biodinámica
 
 
 
< en:Organic
 
fr: Bio-Solidaire, biosolidaire
 
 
 
< en:PDO
 
es: D.O.P. Azafrán de La Mancha, Azafrán de La Mancha
 
 
 
< en:PDO
 
es: D.O.P. Pasas de Málaga, Pasas de Málaga
 
 
 
< en:PDO
 
es: D.O.P. Pimentón de la Vera, Pimentón de la Vera
 
 
 
< en:PDO
 
es: D.O.P. Pimentón de Murcia, Pimentón de Murcia
 
 
 
< en:PDO
 
es: D.O.P. Sierra de Segura, Sierra de Segura
 
 
 
< en:PGI
 
es: I.G.P. Berenjena de Almagro, Berenjena de Almagro
 
 
 
< en:PGI
 
es: I.G.P. Pemento do Couto, Pemento do Couto
 
 
 
< en:Sustainable fishery
 
en: Sustainable Seafood MSC, MSC, Marine Stewardship Council
 
fr: Pêche durable MSC, MSC, Marine Stewardship Council
 
 
 
< en:Vegetarian
 
en: Vegan, Suitable for vegans
 
es: Vegano
 
fr: Végétalien, Végan, végétal
 
 
 
< en:Vegetarian
 
en: Vegetarian Society
 
 
 
< fr:Bio-dynamie
 
en: Demeter
 
fr: Demeter, Association Demeter, Demeter France, Association Demeter France
 
 
 
< fr:Saveurs de l'Année
 
fr: Saveurs de l'Année 2011
 
 
 
< fr:Saveurs de l'Année
 
fr: Saveurs de l'Année 2012
 
 
 
< fr:Saveurs de l'Année
 
fr: Saveurs de l'Année 2013
 
 
 
< fr:Saveurs de l'Année
 
fr: Saveurs de l'Année 2014
 
 
 
</pre>
 

Revision as of 17:51, 12 November 2013

Introduction

Open Food Facts uses global taxonomies for fields such as categories, brands, labels and countries. This page explains how taxonomies work in Open Food Facts and how they can be updated and enhanced.

Features

  • A global hierarchy / taxonomy for each type of data field (categories, brands, labels, countries etc.)
  • Translations for every language of each field value
  • Multiple synonyms for each field value in each language
  • Stopwords for each language/field type

Generalities

Each language has a 2-letter prefix. e.g. "en" for English and "fr" for French.

Whenever possible, the canonical language for each field value should be English. e.g. en:soups is the canonical value for the Soups category. A value can be defined in another language (which becomes the canonical language), e.g. fr:soupes-a-l-oignon could be the canonical value for "Onion Soups" if we don't have an English tranlsation yet. Before December 2013, the taxonomies were defined for each language, with most definitions for French, but English translations will be added progressively.

New values (e.g. categories that do not exist yet) should have an English canonical value.

Each field value can be translated to any language.

When a field value needs to be translated to a target language, if the translation does not exist yet, English is shown (or the canonical language if the English translation does not exist either).

In each language, each value can have a number of synonyms.

Simple synonyms (simple singular) are done automatically when possible.

Synonyms are recursive: if en:yoghurt is a synonym of en:yogurt, then en:banana_yoghurt will automatically be added as a synonym of en:banana_yogurt

Stopwords can be used to further extend synonyms. e.g. if "à" and "la" are stopwords for French, then "Yaourts fraise" will automatically be mapped to "Yaourts à la fraise".

The taxonomy is not a strict hierarchy: values can have multiple parents. But cycles are not allowed.

Format

# stopwords
stopwords:en: some,stopwords
stopwords:fr: word,that,are,removed,when,matching

# synonyms that are not field values but that are contained in field values
synonyms:en: global,international

en: value, a synonym value, another synonym value
fr: valeur, une valeur synonyme, une autre valeur synonyme

<en: value
en: a child value, a synonym for a child value
fr: une valeur enfant, un synonyme d'une valeur enfant

<en: value
en: another child value

<en: a child value
<en: another child value
en: a grand-child value

== Taxonomies

The definitions can be edited on this wiki, they are periodically synchronized on the Open Food Facts database and web site.

Taxonomies: