Skip to content

Commit

Permalink
taxonomy: new CIQUAL associations for ingredients (#8537)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanegigandet authored Jun 15, 2023
1 parent 6a294d0 commit b99f70d
Show file tree
Hide file tree
Showing 50 changed files with 317 additions and 176 deletions.
121 changes: 86 additions & 35 deletions taxonomies/ingredients.txt

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,7 @@
"vegetarian" : "yes"
},
{
"ciqual_food_code" : "18066",
"id" : "en:water",
"percent_estimate" : 18.75,
"percent_max" : 50,
Expand All @@ -541,6 +542,7 @@
"vegetarian" : "yes"
},
{
"ciqual_food_code" : "11058",
"id" : "en:salt",
"percent_estimate" : 9.375,
"percent_max" : 33.3333333333333,
Expand Down Expand Up @@ -615,12 +617,10 @@
"ingredients_with_unspecified_percent_n" : 4,
"ingredients_with_unspecified_percent_sum" : 100,
"ingredients_without_ciqual_codes" : [
"en:salt",
"en:sugar",
"en:water",
"en:wheat-flour"
],
"ingredients_without_ciqual_codes_n" : 4,
"ingredients_without_ciqual_codes_n" : 2,
"interface_version_created" : "20150316.jqm2",
"interface_version_modified" : "20150316.jqm2",
"known_ingredients_n" : 10,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,7 @@
"vegetarian" : "yes"
},
{
"ciqual_food_code" : "18066",
"id" : "en:water",
"percent_estimate" : 18.75,
"percent_max" : 50,
Expand All @@ -541,6 +542,7 @@
"vegetarian" : "yes"
},
{
"ciqual_food_code" : "11058",
"id" : "en:salt",
"percent_estimate" : 9.375,
"percent_max" : 33.3333333333333,
Expand Down Expand Up @@ -615,12 +617,10 @@
"ingredients_with_unspecified_percent_n" : 4,
"ingredients_with_unspecified_percent_sum" : 100,
"ingredients_without_ciqual_codes" : [
"en:salt",
"en:sugar",
"en:water",
"en:wheat-flour"
],
"ingredients_without_ciqual_codes_n" : 4,
"ingredients_without_ciqual_codes_n" : 2,
"interface_version_created" : "20150316.jqm2",
"interface_version_modified" : "20150316.jqm2",
"known_ingredients_n" : 10,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,7 @@
],
"ingredients" : [
{
"ciqual_food_code" : "20505",
"id" : "en:green-lentils",
"labels" : "en:organic",
"percent_estimate" : 100,
Expand Down Expand Up @@ -624,10 +625,8 @@
"ingredients_with_specified_percent_sum" : 0,
"ingredients_with_unspecified_percent_n" : 1,
"ingredients_with_unspecified_percent_sum" : 100,
"ingredients_without_ciqual_codes" : [
"en:green-lentils"
],
"ingredients_without_ciqual_codes_n" : 1,
"ingredients_without_ciqual_codes" : [],
"ingredients_without_ciqual_codes_n" : 0,
"interface_version_created" : "import_csv_file - version 2019/09/17",
"known_ingredients_n" : 3,
"labels" : "Organic, EU Organic, FR-BIO-01, AB Agriculture Biologique, Agriculture France",
Expand Down Expand Up @@ -731,6 +730,53 @@
"nova-group_100g" : 1,
"nova-group_serving" : 1
},
"nutriments_estimated" : {
"alcohol_100g" : 0,
"beta-carotene_100g" : 5e-06,
"calcium_100g" : 0.0262,
"carbohydrates_100g" : 12.2,
"cholesterol_100g" : 0,
"copper_100g" : 0.00024,
"energy-kcal_100g" : 104,
"energy-kj_100g" : 436,
"energy_100g" : 436,
"fat_100g" : 0.38,
"fiber_100g" : 7.9,
"fructose_100g" : 0.1,
"galactose_100g" : 0,
"glucose_100g" : 0.1,
"iodine_100g" : 3e-06,
"iron_100g" : 0.00144,
"lactose_100g" : 0.1,
"magnesium_100g" : 0.0356,
"maltose_100g" : 0.1,
"manganese_100g" : 0.00043,
"pantothenic-acid_100g" : 0.00064,
"phosphorus_100g" : 0.18,
"phylloquinone_100g" : 1.7e-06,
"polyols_100g" : 0.22,
"potassium_100g" : 0.222,
"proteins_100g" : 9.02,
"salt_100g" : 0.005,
"saturated-fat_100g" : 0.053,
"selenium_100g" : 5e-06,
"sodium_100g" : 0.002,
"starch_100g" : 10.2,
"sucrose_100g" : 0.39,
"sugars_100g" : 1.8,
"vitamin-a_100g" : 0,
"vitamin-b12_100g" : 0,
"vitamin-b1_100g" : 0.00017,
"vitamin-b2_100g" : 7.3e-05,
"vitamin-b6_100g" : 0.00018,
"vitamin-b9_100g" : 0.000181,
"vitamin-c_100g" : 0.0015,
"vitamin-d_100g" : 0,
"vitamin-e_100g" : 0.00011,
"vitamin-pp_100g" : 0.00106,
"water_100g" : 69.6,
"zinc_100g" : 0.00098
},
"nutrition_data" : "on",
"nutrition_data_per" : "100g",
"nutrition_data_prepared_per" : "100g",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -925,6 +925,7 @@
"vegetarian" : "yes"
},
{
"ciqual_food_code" : "11058",
"id" : "en:salt",
"percent_estimate" : 0.17755681818182,
"percent_max" : 11.1111111111111,
Expand Down Expand Up @@ -1065,11 +1066,10 @@
"en:e120",
"en:milk-proteins",
"en:rapeseed-oil",
"en:salt",
"en:sugar",
"en:wheat-flour"
],
"ingredients_without_ciqual_codes_n" : 7,
"ingredients_without_ciqual_codes_n" : 6,
"known_ingredients_n" : 30,
"labels_tags" : [
"en:organic",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -803,6 +803,7 @@
"vegetarian" : "yes"
},
{
"ciqual_food_code" : "11058",
"id" : "en:salt",
"percent_estimate" : 21.4285714285714,
"percent_max" : 50,
Expand Down Expand Up @@ -942,10 +943,9 @@
"en:e412",
"en:garlic-flavouring",
"en:microbial-culture",
"en:salt",
"en:sugar"
],
"ingredients_without_ciqual_codes_n" : 6,
"ingredients_without_ciqual_codes_n" : 5,
"known_ingredients_n" : 18,
"languages" : {},
"languages_codes" : {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,7 @@
"food_groups_tags" : [],
"ingredients" : [
{
"ciqual_food_code" : "18066",
"id" : "en:water",
"percent_estimate" : 62.5,
"percent_max" : 100,
Expand Down Expand Up @@ -704,10 +705,9 @@
"ingredients_without_ciqual_codes" : [
"en:chocolate",
"en:flour",
"en:sugar",
"en:water"
"en:sugar"
],
"ingredients_without_ciqual_codes_n" : 4,
"ingredients_without_ciqual_codes_n" : 3,
"known_ingredients_n" : 6,
"languages" : {},
"languages_codes" : {},
Expand Down
7 changes: 3 additions & 4 deletions tests/unit/expected_test_results/attributes/fr-palm-oil.json
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,7 @@
"food_groups_tags" : [],
"ingredients" : [
{
"ciqual_food_code" : "4003",
"id" : "en:potato",
"percent_estimate" : 75,
"percent_max" : 100,
Expand Down Expand Up @@ -690,10 +691,8 @@
"ingredients_with_specified_percent_sum" : 0,
"ingredients_with_unspecified_percent_n" : 2,
"ingredients_with_unspecified_percent_sum" : 100,
"ingredients_without_ciqual_codes" : [
"en:potato"
],
"ingredients_without_ciqual_codes_n" : 1,
"ingredients_without_ciqual_codes" : [],
"ingredients_without_ciqual_codes_n" : 0,
"known_ingredients_n" : 7,
"languages" : {},
"languages_codes" : {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,7 @@
"vegetarian" : "yes"
},
{
"ciqual_food_code" : "11058",
"id" : "en:salt",
"percent_estimate" : 16.6666666666667,
"percent_max" : 33.3333333333333,
Expand Down Expand Up @@ -700,10 +701,9 @@
"ingredients_with_unspecified_percent_n" : 3,
"ingredients_with_unspecified_percent_sum" : 100,
"ingredients_without_ciqual_codes" : [
"en:salt",
"en:vegetable-oil"
],
"ingredients_without_ciqual_codes_n" : 2,
"ingredients_without_ciqual_codes_n" : 1,
"known_ingredients_n" : 8,
"languages" : {},
"languages_codes" : {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
],
"ingredients" : [
{
"ciqual_food_code" : "18066",
"id" : "en:water",
"percent_estimate" : 75,
"percent_max" : 100,
Expand Down Expand Up @@ -65,10 +66,9 @@
"ingredients_with_unspecified_percent_n" : 2,
"ingredients_with_unspecified_percent_sum" : 100,
"ingredients_without_ciqual_codes" : [
"en:sugar",
"en:water"
"en:sugar"
],
"ingredients_without_ciqual_codes_n" : 2,
"ingredients_without_ciqual_codes_n" : 1,
"known_ingredients_n" : 4,
"lc" : "en",
"misc_tags" : [
Expand Down
6 changes: 3 additions & 3 deletions tests/unit/expected_test_results/ecoscore/energy-drink.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
],
"ingredients" : [
{
"ciqual_food_code" : "18066",
"id" : "en:water",
"percent_estimate" : 75,
"percent_max" : 100,
Expand Down Expand Up @@ -61,10 +62,9 @@
"ingredients_with_unspecified_percent_n" : 2,
"ingredients_with_unspecified_percent_sum" : 100,
"ingredients_without_ciqual_codes" : [
"en:caffeine",
"en:water"
"en:caffeine"
],
"ingredients_without_ciqual_codes_n" : 2,
"ingredients_without_ciqual_codes_n" : 1,
"known_ingredients_n" : 2,
"lc" : "fr",
"misc_tags" : [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,7 @@
"vegetarian" : "yes"
},
{
"ciqual_food_code" : "11058",
"id" : "en:salt",
"percent_estimate" : 10,
"percent_max" : 20,
Expand Down Expand Up @@ -505,10 +506,9 @@
"ingredients_with_unspecified_percent_n" : 3,
"ingredients_with_unspecified_percent_sum" : 60,
"ingredients_without_ciqual_codes" : [
"en:cooked-ham",
"en:salt"
"en:cooked-ham"
],
"ingredients_without_ciqual_codes_n" : 2,
"ingredients_without_ciqual_codes_n" : 1,
"known_ingredients_n" : 11,
"labels" : "viande porcine française, oeufs de France",
"labels_hierarchy" : [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,7 @@
"vegetarian" : "yes"
},
{
"ciqual_food_code" : "4003",
"id" : "en:potato",
"percent" : 39,
"percent_estimate" : 39,
Expand Down Expand Up @@ -492,10 +493,8 @@
"ingredients_with_specified_percent_sum" : 100,
"ingredients_with_unspecified_percent_n" : 0,
"ingredients_with_unspecified_percent_sum" : 0,
"ingredients_without_ciqual_codes" : [
"en:potato"
],
"ingredients_without_ciqual_codes_n" : 1,
"ingredients_without_ciqual_codes" : [],
"ingredients_without_ciqual_codes_n" : 0,
"known_ingredients_n" : 8,
"labels_tags" : [
"en:eu-organic"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,7 @@
"vegetarian" : "yes"
},
{
"ciqual_food_code" : "4003",
"id" : "en:potato",
"percent" : 39,
"percent_estimate" : 39,
Expand Down Expand Up @@ -492,10 +493,8 @@
"ingredients_with_specified_percent_sum" : 100,
"ingredients_with_unspecified_percent_n" : 0,
"ingredients_with_unspecified_percent_sum" : 0,
"ingredients_without_ciqual_codes" : [
"en:potato"
],
"ingredients_without_ciqual_codes_n" : 1,
"ingredients_without_ciqual_codes" : [],
"ingredients_without_ciqual_codes_n" : 0,
"known_ingredients_n" : 8,
"labels_tags" : [
"en:eu-organic"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,7 @@
"vegetarian" : "yes"
},
{
"ciqual_food_code" : "2028",
"id" : "en:lemon-juice",
"percent_estimate" : 10,
"percent_max" : 10,
Expand Down Expand Up @@ -478,10 +479,9 @@
"ingredients_with_unspecified_percent_sum" : 10,
"ingredients_without_ciqual_codes" : [
"en:apricot",
"en:cane-sugar",
"en:lemon-juice"
"en:cane-sugar"
],
"ingredients_without_ciqual_codes_n" : 3,
"ingredients_without_ciqual_codes_n" : 2,
"known_ingredients_n" : 8,
"lc" : "en",
"misc_tags" : [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,7 @@
"vegetarian" : "yes"
},
{
"ciqual_food_code" : "2028",
"id" : "en:lemon-juice",
"percent_estimate" : 10,
"percent_max" : 10,
Expand Down Expand Up @@ -474,10 +475,9 @@
"ingredients_with_unspecified_percent_sum" : 10,
"ingredients_without_ciqual_codes" : [
"en:apricot",
"en:cane-sugar",
"en:lemon-juice"
"en:cane-sugar"
],
"ingredients_without_ciqual_codes_n" : 3,
"ingredients_without_ciqual_codes_n" : 2,
"known_ingredients_n" : 8,
"lc" : "en",
"misc_tags" : [
Expand Down
Loading

0 comments on commit b99f70d

Please sign in to comment.