Jump to content

Global categories taxonomy: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
=== How it works ===
=== How it works ===


This page contains the definition of the hierarchy of categories used in Open Food Facts.
This taxonomy contains the definition of the hierarchy of categories used in Open Food Facts.
   
   
The definition contains:
The definition contains:
Line 9: Line 9:
* word synonyms (words that can be exchanged when matching category names)
* word synonyms (words that can be exchanged when matching category names)


* category synonyms (the synonyms are then matched also in other cateflammegory names that contains those synonyms)
* category synonyms (the synonyms are then matched also in other category names that contains those synonyms)
   
   
For more details, see [[Global taxonomies]]
For more details, see [[Global taxonomies]]
Line 16: Line 16:
 
 
* Nov 22 2016: pushed live
* Nov 22 2016: pushed live
== To do ==
* Merge with Wikidata:


** http://tools.wmflabs.org/wikidata-todo/tree.html?q=40050&rp=279
== TODO ==
** http://tools.wmflabs.org/wikidata-todo/tree.html?q=2095&rp=279


== Using (carefully) Wikidata Translations ==
* Kouglof (Alsatian cake)
https://docs.google.com/spreadsheets/d/1gZLOqqyIDVb4lzYr4SjdiDJt3aOjCTFu1ScMgOVbTUY/edit#gid=1962237550
Input the Wikidata ID (Q20162694 for https://www.wikidata.org/wiki/Q20162694) in A1, and get translations on column H. Double check the translations before using them.
--[[User:Twoflower|Twoflower]] ([[User talk:Twoflower|talk]]) 22:11, 14 July 2016 (CEST)


== Taxonomy definition ==
== Taxonomy definition ==


The taxonomy is now managed directly on github: https://github.com/openfoodfacts/openfoodfacts-server/blob/master/taxonomies/categories.txt
The taxonomy is now managed directly on GitHub: https://github.com/openfoodfacts/openfoodfacts-server/blob/main/taxonomies/food/categories.txt
 
== Taxonomy translation ==
 
Replace XX by your language.
https://world-XX.openfoodfacts.org/categories?translate=1
 
== Q&A ==
 
Q: I changed a string for a category via pull request (and it got accepted and merged). Will the new string appear on all the products once a new version is deployed and released?
 
A: It depends. The canonical categories (e.g. en:cakes) that are associated to each product won't be updated right away, only when products are processed again. The strings displayed for it (e.g. if you added a translation) will be shown right away.




</pre>
[[Category:Global_Taxonomies]]
[[Category:Global_Taxonomies]]
[[Category:Food categories]]