Taxonomy Properties: Difference between revisions

From Open Food Facts wiki
Line 3: Line 3:


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.
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.
==== country_code_2 ====
The two letter country code for a country. This is based on the standard [https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 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 [https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3 ISO 3166 alpha 3]
* Example: country_code_2:en:AFG - the country code for Afghanistan.
* Usage: [[Countries taxonomy]]
==== description ====
==== description ====
A short (three lines) description of a term.
A short (three lines) description of a term.
* Example:
* Example:
* Usage:
* Usage:
==== Image ====
==== Image ====
* ''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;

Revision as of 11:50, 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.

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 (three lines) description of a term.

  • Example:
  • Usage:

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_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;