openfoodfacts / openfoodfacts-server

Open Food Facts database, API server and web interface - 🐪🦋 Perl, CSS and JS coders welcome 😊 For helping in Python, see Robotoff or taxonomy-editor
http://openfoodfacts.github.io/openfoodfacts-server/
GNU Affero General Public License v3.0
641 stars 373 forks source link

Energy distribution (energy from, calories from or per gram) #877

Open aleksejrs opened 7 years ago

aleksejrs commented 7 years ago

https://world.openfoodfacts.org/product/4607007230025/%d1%81%d0%bf%d0%b0%d0%b3%d0%b5%d1%82%d1%82%d0%b8-%e2%84%96-3-federici has:

It has some more data (total fat, g and %DV; the DV).

The data is somewhat inconsistent because of rounding.

Currently, there is a "Energy from fat" nutrient, but no similar nutrients for carbohydrates and protein. There are no "energy per gram of fat/carbo/protein".

aleene commented 5 years ago

Not sure what calories per gram means. I do not get the numbers found on the product. Energy from Fat is an official US required nutrient. It has nothing to do with carbohydrates or protein.

Not sure what you want in fact.

hangy commented 5 years ago

Also, aren't calories per g/fat, calories per g/protein, calories per g/carbs fixed values?

aleksejrs commented 5 years ago

Maybe “There are no "energy per gram of fat/carbo/protein"” was a mistake. The “per 100 g” should be about the product, I guess.