Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the list of non-vegan ingredients a tapeable list #6517

Open
1 task
Tracked by #9096
teolemon opened this issue Mar 27, 2022 · 5 comments
Open
1 task
Tracked by #9096

Make the list of non-vegan ingredients a tapeable list #6517

teolemon opened this issue Mar 27, 2022 · 5 comments
Labels
🥗🔍 Ingredients analysis https://wiki.openfoodfacts.org/Ingredients_Extraction_and_Analysis 📖 Knowledge Panels https://wiki.openfoodfacts.org/Knowledge_panels 🤳🥫 mobile apps Template::Toolkit The templating toolkit used by product opener. The starting point for HTML/JS/CSS fixes.

Comments

@teolemon
Copy link
Member

teolemon commented Mar 27, 2022

What

  • Make the list of non-vegan ingredients a tapeable list by turning them into sub-knowledge panels.

Why

  • Allow people to educate themselves and go further

Screenshot

Part of

@teolemon teolemon added 🥗🔍 Ingredients analysis https://wiki.openfoodfacts.org/Ingredients_Extraction_and_Analysis 📖 Knowledge Panels - https://wiki.openfoodfacts.org/Knowledge_panels labels Mar 27, 2022
@otatadeabigail
Copy link

For clarity please, are you suggesting each ingredient links to an article that gives detailed info on its components? or simply a pop-up giving brief detailed info

@stephanegigandet
Copy link
Contributor

Good idea. We could create a tappable list for ingredients for which we have a corresponding Wikipedia page in the ingredients taxonomy.

@otatadeabigail
Copy link

otatadeabigail commented Mar 28, 2022

@stephanegigandet Would you like me to work on this issue? What can i do. Is there already a standing wikipedia page within the openfoodfacts site or like an appendix to which each tappable ingredient would lead?

@stephanegigandet
Copy link
Contributor

stephanegigandet commented Mar 29, 2022

Hi @otatadeabigail , you can work on this if you want.

Here is how we can do a simple first version:

  1. have a look at /taxonomies/ingredients.txt , the definition file of the ingredients taxonomy

Some entries like en:rennet have a wikipedia property:

<en:coagulating enzyme
en:rennet
an:Cuallo
ar:منفحة
bs:Sirište
ca:quall
co:Pirrulu
cs:Syřidlo
da:osteløbe, animalsk og mikrobiel løbe
de:Lab, Labaustauschstoff
el:πυτια
es:cuajo
et:Laap
eu:Gatzagi
fi:juoksute, juoksete
fr:présure
ga:Binid
gd:Binid
gl:Callo
gu:Reenet
he:אנזים הגבנה
hr:Sirište
hu:Oltóenzim, oltóanyag
id:Rennet
is:ostahleypir
it:caglio
ja:レンネット
ko:레닛
la:Coagulum
lt:Šliužo fermentas
ms:Renet
nb:løype, osteløype, løpe, osteløpe, animalsk og mikrobiell løpe
nl:stremsel
nn:løpe, løype
pl:podpuszczka
pt:coalho, quimosina
ro:cheag
ru:рассол
sr:сириште
sv:löpe, ostlöpe, ostenzym
tr:lab
zh:凝乳酶
# gsw:Lab
# scn:Quagghiu
# vec:Conajo
# zh-cn:凝乳酶
# zh-hans:凝乳酶
# zh-hant:凝乳酶
# zh-hk:凝乳酶
# zh-sg:凝乳酶
# zh-tw:凝乳酶
wikidata:en:Q326900
wikipedia:en:https://en.wikipedia.org/wiki/Rennet
# ingredient/rennet has 5568 products in 19 languages @2019-07-08
vegan:en:maybe
vegetarian:en:maybe
  1. when generating the knowledge panel for ingredients analysis (see /lib/ProductOpener/KnowledgePanels.pm ), we can check if the ingredients have this property, in which case we can pass it to the knowledge panel template (look in /templates/ ) so that we can display a link to Wikipedia.

@otatadeabigail
Copy link

@stephanegigandet so I'm to search for ingredients that have this property(rennet),
e.g I saw Whey as one of the ingredients listed under taxonomy/ingriedient.txt and it's non-vegan
so I am to look out for other ingredients as this, list them out as they'd make up the "knowledge panel for ingriedient analysis " right?

@teolemon teolemon added the Template::Toolkit The templating toolkit used by product opener. The starting point for HTML/JS/CSS fixes. label Oct 31, 2022
@teolemon teolemon added 📖 Knowledge Panels https://wiki.openfoodfacts.org/Knowledge_panels and removed 📖 Knowledge Panels - https://wiki.openfoodfacts.org/Knowledge_panels labels Nov 10, 2023
@teolemon teolemon added the ✨ Feature Features or enhancements to Open Food Facts server label Apr 1, 2024
@teolemon teolemon removed the ✨ Feature Features or enhancements to Open Food Facts server label Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🥗🔍 Ingredients analysis https://wiki.openfoodfacts.org/Ingredients_Extraction_and_Analysis 📖 Knowledge Panels https://wiki.openfoodfacts.org/Knowledge_panels 🤳🥫 mobile apps Template::Toolkit The templating toolkit used by product opener. The starting point for HTML/JS/CSS fixes.
Projects
Status: To do
Status: Ready for Dev
Status: 📋 Todo (ready 2 dev)
Development

No branches or pull requests

3 participants