Taxonomy Properties: Difference between revisions

From Open Food Facts wiki
Line 19: Line 19:
* Example: description:en:Acids are substances which increase the acidity of a foodstuff and/or impart a sour taste to it. - which described the term Acid in the Additives Classes taxonomy.
* Example: description:en:Acids are substances which increase the acidity of a foodstuff and/or impart a sour taste to it. - which described the term Acid in the Additives Classes taxonomy.
* Usage: [[Additives Classes taxonomy]]
* Usage: [[Additives Classes taxonomy]]
==== description ====
The [https://en.wikipedia.org/wiki/E_number European standard identification] for additives that corresponds to the term.
* Example: e_number:en:100 - to associate the term with E100
* Usage: [[Additives taxonomy]]


==== Image ====
==== Image ====

Revision as of 12:08, 7 October 2022

Introduction

Taxonomy properties describe possible properties that can be added to a term in any Taxonomy.

This document gives an alphabetic overview of all (I hope) properties that are in use in all taxonomies. Not every property is relevant to every taxonomy.

Properties in use

country_code_2

The two letter country code for a country. This is based on the standard ISO 3166 alpha 2 .

  • Example: country_code_2:en:AF - the country code for Afghanistan.
  • Usage: Countries taxonomy

country_code_3

The three letter country code for a country. This is based on the standard ISO 3166 alpha 3

  • Example: country_code_2:en:AFG - the country code for Afghanistan.
  • Usage: Countries taxonomy

description

A short description of a term. This is usually taken from a standard, wikidata, wiktionary or wikipedia.

  • Example: description:en:Acids are substances which increase the acidity of a foodstuff and/or impart a sour taste to it. - which described the term Acid in the Additives Classes taxonomy.
  • Usage: Additives Classes taxonomy

description

The European standard identification for additives that corresponds to the term.

Image

  • Image (logo) - this allows to add an image/logo related to the term;

language_code_2

The two letter language code as defined by the ISO standard ISO 639-1.

language_codes

A list of two letter language codes. This can be used to list the languages spoken in a country

  • Example: language_codes:en:ps,prs - the languages spoken in Afghanistan
  • Usage: Countries taxonomy

language_code_3

The three letter language code as defined by the ISO standard ISO 639-2.

opposite

  • Opposite - to specify the opposite relation to another term, i.e. organic versus non-organic;

wikidata

A reference to the corresponding entry on Wikidata.

wikipedia

  • Wikipedia a link the term with its equivalent on Wikipedia;

Properties suggested

Some properties have been suggestion and are often commented out in the taxonomies.

comment

Instructions for editors.

  • Example: comment:en:do not mix with packaging gas. - to indicate that two terms should not be mixed up.
  • Usage: Additives classes taxonomy

nova

usage

An example of how the term is on packages.

  • example: usage:en: acerola powder with cassava starch (cooking enhancer) - to illustrate the usage of the term cooking enhancer.
  • usage: Additives classes taxonomy