Changes

Jump to navigation Jump to search
293 bytes added ,  12:40, 6 October 2022
Line 45: Line 45:  
What is the role of these in parsing?
 
What is the role of these in parsing?
   −
=== Term Section ===
+
=== Terms ===
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.
+
The main part of a taxonomy is a (very) large list of terms. A term consists of list of names in different languages, an optional parent and a list of properties.
   −
==== Term ====
+
==== Name ====
A term can be a specific ingredient, label, language, etc, depending on the taxonomy.
+
A name can be a specific ingredient, label, language, etc, depending on the taxonomy.
   −
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]].
+
A name 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]].
   −
If a term can be translated to another language, a new term can be added for that language. For instance for the English name '''Banana''' you might want to add the name in Afrikaans ('''Piesang''') or Amharic ('''ሙዝ''').
+
If a name can be translated to another language, a new name can be added for that language. For instance for the English name '''Banana''' you might want to add the name in Afrikaans ('''Piesang''') or Amharic ('''ሙዝ''').
    
==== Canonical term/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.  
+
Each term identifies a primary language that is used to identify the term. This is the canonical name for the term. Preferable this is the English name.  
    
==== Synonyms ====
 
==== Synonyms ====
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.
+
For each name it is possible to add synonyms. These will be used during ingredient recognition for instance. However only the main name will be used. For instance the Spanish translation for the english name '''Banana''' is '''Plátano''', to which the synonym '''Banana''' has been added.
    
Simple synonyms (simple singular) are done automatically when possible.
 
Simple synonyms (simple singular) are done automatically when possible.
    
Synonyms are recursive: if '''Yoghurt''' is a synonym of '''Yogurt''', then '''Banana yoghurt''' will automatically be added as a synonym of '''Banana yogurt'''.
 
Synonyms are recursive: if '''Yoghurt''' is a synonym of '''Yogurt''', then '''Banana yoghurt''' will automatically be added as a synonym of '''Banana yogurt'''.
 +
 +
==== Parent ====
 +
Each term can have one (or more) parent terms. This allows to define an isa-relation between terms. For instance '''Fruit''' is the parent of '''Banana'''. The term '''Whole black olives''' in the categories taxonomy has the parent terms '''Black olives''' and '''Whole olives'''.
    
==== Properties ====
 
==== Properties ====
In addition to terms, on or more property can be added to a term section. The following properties are supported:
+
In addition to names, on or more properties can be added to a term section. The following properties are supported:
 
* ''Description'' - a short (three lines) description of the term section;
 
* ''Description'' - a short (three lines) description of the term section;
 
* ''Image (logo)'' - this allows to add an image/logo related to the term;
 
* ''Image (logo)'' - this allows to add an image/logo related to the term;
Line 73: Line 76:  
* ''Wikipedia'' a link the term with its equivalent on Wikipedia;
 
* ''Wikipedia'' a link the term with its equivalent on Wikipedia;
 
Each specific taxonomy might use additional properties.
 
Each specific taxonomy might use additional properties.
 +
 
=== Structure ===
 
=== Structure ===
 
Each term section
 
Each term section
3,390

edits

Navigation menu