Categories taxonomy alternatives

From Open Food Facts wiki
Revision as of 09:35, 9 November 2023 by Aleene (talk | contribs) (Added alternative taxonomies)

The OFF category taxonomy for products is certainly not the only around. There are many alternatives. But none of these alternatives fit the OFF needs. The ones we know of will be reviewed below. Any of the alternatives should fit the following requirements:

  • Comprensible for the end-user: anyone should be able to set the category for a product. It is similar to what a consumer encounters the the aisles of a shop;
  • Agribalyse match: in order to be able to calculate the environmental impact a mapping to the Agribalyse categories must be possible;
  • AOP match: some products have an AOP-label which corresponds to a single category. Any taxonomy must be detailed enough to accomodate this;
  • Diet hierarchy: the hierarchy of a taxonomy should be able to express many diets (vegan, etc), so that inheritance can be applied;

GPC

GPC contains a ery large categorisation of products (food and non-food). The categorisation contains a hierarchy (based in what criteria?). The granularity of the hierarchy is reasobly specific, but falls short of the OFF taxonomy. I had look at the GPC categories (https://gpc-browser.gs1.org), whether mapping to our categories would be feasible. An issue that I already see is that our tree can be more specific. Sometimes we have details not expressible in GPC. GPC uses multiple attributes instead of children. For instance the grade of an oil is an attribute, whether it is organic is an attribute and the type of oil is an attribute. This implies that some of our categories need multiple attributes AND corresponding values. GPC is already used by some producers who upload their data. We could use it to assign products to categories, and as additional check. As no attributes are passed by producer we can skip thise for the moment.

Ciqual

Agribalyse

WHO

[Category:Taxonomies]