Changes

Jump to navigation Jump to search
511 bytes added ,  12:06, 6 October 2022
Line 41: Line 41:  
What is the role of these in parsing?
 
What is the role of these in parsing?
   −
=== Terms ===
+
=== Term Section ===
The main part of a taxonomy is a (very) large section of terms. A term can be a specific ingredient, a label, a language, etc, depending on the taxonomy.
+
The main part of a taxonomy is a (very) large list of term sections. A term section consists of list of terms in different languages and a list of properties.
   −
A term consists of two parts: a language code and one or more values. The language code determines the language of the values that follow. Thus one can find the value '''Authentic Trappist Product''' in the english language in the [[Labels taxonomy]].
+
==== Term ====
 +
A term can be a specific ingredient, label, language, etc, depending on the taxonomy.
   −
==== Canonical value ====
+
A term consists of two parts: a language code (see the [[Languages taxonomy]]) and one or more values. The language code determines the language of the values that follow. Thus one can find the value '''Authentic Trappist Product''' in the English language in the [[Labels taxonomy]].
Whenever possible, the canonical language for each field value should be English. e.g. en:soups is the canonical value for the Soups category.
     −
==== Languages ====
+
If a term can be translated to another language, a new term can be added for that language. For instance for the English name you might want to add the name in Afrikaans (Piesang) or Amharic (ሙዝ).
* Translations for every language of each field value
+
 
 +
==== Canonical term/value ====
 +
Each term section identifies a primary language that is used to identify the term section This is the canonical name for the term section. Preferable this is the English term.
    
==== Synonyms ====
 
==== Synonyms ====
* Multiple synonyms for each field value in each language
+
For each term it is possible to add synonyms. These will be used during ingredient recognition for instance. However only the main term name will be used. For instance the Spanish translation for Banana is Plátano, and the synonym Banana has been added.
    
==== Properties ====
 
==== Properties ====
 +
 
== Implementation ==
 
== Implementation ==
  
3,393

edits

Navigation menu