From 05fa1afa39c24250f8b069a3bece069b8b7b98d8 Mon Sep 17 00:00:00 2001 From: Pierre Slamich Date: Fri, 25 Aug 2023 17:29:54 +0200 Subject: [PATCH 1/5] feat: add more Wikidata properties --- app/wikidata_utils.py | 132 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 132 insertions(+) diff --git a/app/wikidata_utils.py b/app/wikidata_utils.py index 9177720..d1de863 100644 --- a/app/wikidata_utils.py +++ b/app/wikidata_utils.py @@ -23,6 +23,138 @@ def OSM_prop(self): def INAO_prop(self): return self._client.get("P3895") + @cached_property + def acceptable_daily_intake(self): + return self._client.get("P2542") + #estimate of the amount of a food additive, expressed on a body weight basis, that can be ingested daily over a lifetime without appreciable health risk + + @cached_property + def Open_Food_Facts_food_additive_ID(self): + return self._client.get("P1820") + # Open Food Facts additive https://world.openfoodfacts.org/additives/ + + @cached_property + def E_number(self): + return self._client.get("P628") + #E number - for food additives - european system also used outside Europe. + + @cached_property + def International_Numbering_System_number(self): + return self._client.get("P4849") + #International Numbering System number - for food additives - UN FAO identification system. + + @cached_property + def JECFA_database_id(self): + return self._client.get("P4852") + #JECFA database ID - for food additives, pesticides and veterinary drugs present in foods - UN FAO database identifier. + + @cached_property + def permitted_food_additive(self): + return self._client.get("P4850") + #permitted food additive - additives allowed to be present in a particular food product according to the UN FAO. + + @cached_property + def maximum_food_additive_use_level(self): + return self._client.get("P4851") + # maximum food additive use level - used as a qualifier for permitted food additive (P4850) - maximum quantity of a food additive permitted to be present in a particular food product according to the UN FAO. + +@cached_property +def gs1_country_code(self): + return self._client.get("P3067") + # GS1 Prefix - 3 digits at the start of a barcode, usually identifying the national GS1 Member Organization to which the manufacturer is registered (not necessarily where the product is actually made) + +@cached_property +def gs1_company_prefix(self): + return self._client.get("P3193") + # company or organisation code, used in GS1 barcodes + +@cached_property +def scoville_grade(self): + return self._client.get("P2658") + # for spices, peppers… + +@cached_property +def unii(self): + return self._client.get("P652") + # UNII identifier - US unique identifier for ingredients. + +@cached_property +def uk_national_fruit_collection_id(self): + return self._client.get("P4288") + +@cached_property +def findsmiley_id(self): + return self._client.get("P3152") + # identifier for Danish companies serving food + +@cached_property +def alcohol_by_volume(self): + return self._client.get("P2665") + +@cached_property +def okp_id_of_the_good_or_service(self): + return self._client.get("P3248") + +@cached_property +def okpd_code_of_the_good_or_service(self): + return self._client.get("P3245") + +@cached_property +def okpd2_product_code(self): + return self._client.get("P3250") + +@cached_property +def usda_ndb_number(self): + return self._client.get("P1978") + +@cached_property +def ausnut_food_id(self): + return self._client.get("P2759") + +@cached_property +def nuttab_food_id(self): + return self._client.get("P2760") + +@cached_property +def fao_risk_status(self): + return self._client.get("P2371") + +@cached_property +def main_food_source(self): + return self._client.get("P1034") + +@cached_property +def image(self): + return self._client.get("P18") + +@cached_property +def shape(self): + return self._client.get("P1419") + +@cached_property +def product_certification(self): + return self._client.get("P1389") + +@cached_property +def made_from_material(self): + return self._client.get("P186") + +@cached_property +def country_of_origin(self): + return self._client.get("P495") + +@cached_property +def location_of_creation(self): + return self._client.get("P1071") + +@cached_property +def icd_code_to_food_allergies(self): + return self._client.get("P493") + # ICD-9 ID for food allergies + +@cached_property +def plu_code(self): + return self._client.get("P4030") wikidata_props = WikiDataProperties() From 3bb3d0ef25d16a228e8f109a33c531eaf6cff169 Mon Sep 17 00:00:00 2001 From: Pierre Slamich Date: Fri, 25 Aug 2023 17:52:03 +0200 Subject: [PATCH 2/5] Update wikidata_utils.py --- app/wikidata_utils.py | 176 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 173 insertions(+), 3 deletions(-) diff --git a/app/wikidata_utils.py b/app/wikidata_utils.py index d1de863..dfd3ae6 100644 --- a/app/wikidata_utils.py +++ b/app/wikidata_utils.py @@ -19,10 +19,16 @@ def image_prop(self): def OSM_prop(self): return self._client.get("P402") - @cached_property - def INAO_prop(self): - return self._client.get("P3895") +@cached_property +def inao_product_id(self): + return self._client.get("P3895") + # INAO product ID +@cached_property +def ratebeer_brewery_id(self): + return self._client.get("P2905") + # RateBeer brewery ID + @cached_property def acceptable_daily_intake(self): return self._client.get("P2542") @@ -33,6 +39,11 @@ def Open_Food_Facts_food_additive_ID(self): return self._client.get("P1820") # Open Food Facts additive https://world.openfoodfacts.org/additives/ +@cached_property +def open_food_facts_food_category_id(self): + return self._client.get("P1821") + # Open Food Facts food category ID + @cached_property def E_number(self): return self._client.get("P628") @@ -90,6 +101,77 @@ def findsmiley_id(self): @cached_property def alcohol_by_volume(self): return self._client.get("P2665") + # alcohol by volume + +@cached_property +def jmpr_database_id(self): + return self._client.get("P4853") + # JMPR database ID + +@cached_property +def beer_bitterness(self): + return self._client.get("P6088") + # beer bitterness + +@cached_property +def beer_color(self): + return self._client.get("P6089") + # beer color + +@cached_property +def foodon_id(self): + return self._client.get("P6767") + # FoodOn ID + +@cached_property +def fema_number(self): + return self._client.get("P8266") + # FEMA number + +@cached_property +def food_energy(self): + return self._client.get("P7971") + # food energy + +@cached_property +def tasteatlas_id(self): + return self._client.get("P5456") + # TasteAtlas ID + +@cached_property +def course(self): + return self._client.get("P8431") + # course + +@cached_property +def drizly_product_id(self): + return self._client.get("P8858") + # Drizly product ID + +@cached_property +def barnivore_product_id(self): + return self._client.get("P9031") + # Barnivore product ID + +@cached_property +def thecocktaildb_drink_id(self): + return self._client.get("P9056") + # TheCocktailDB drink ID + +@cached_property +def thecocktaildb_ingredient_id(self): + return self._client.get("P9057") + # TheCocktailDB ingredient ID + +@cached_property +def fl_number(self): + return self._client.get("P9066") + # FL number + +@cached_property +def open_food_facts_ingredient_id(self): + return self._client.get("P5930") + # Open Food Facts ingredient ID @cached_property def okp_id_of_the_good_or_service(self): @@ -106,6 +188,7 @@ def okpd2_product_code(self): @cached_property def usda_ndb_number(self): return self._client.get("P1978") + # USDA NDB number @cached_property def ausnut_food_id(self): @@ -115,13 +198,40 @@ def ausnut_food_id(self): def nuttab_food_id(self): return self._client.get("P2760") +@cached_property +def vivc_grape_variety_id(self): + return self._client.get("P3904") + # VIVC grape variety ID + +@cached_property +def foodex2_code(self): + return self._client.get("P4637") + # FoodEx2 code + +@cached_property +def gems_code(self): + return self._client.get("P4695") + # GEMS Code + +@cached_property +def ciqual2017_id(self): + return self._client.get("P4696") + # CIQUAL2017 ID + +@cached_property +def inran_italian_food_id(self): + return self._client.get("P4729") + # INRAN Italian Food ID + @cached_property def fao_risk_status(self): return self._client.get("P2371") + # FAO risk status @cached_property def main_food_source(self): return self._client.get("P1034") + # main food source @cached_property def image(self): @@ -156,6 +266,66 @@ def icd_code_to_food_allergies(self): def plu_code(self): return self._client.get("P4030") +@cached_property +def edibility(self): + return self._client.get("P789") + # edibility + +@cached_property +def foods_traditionally_associated(self): + return self._client.get("P868") + # foods traditionally associated + +@cached_property +def marmiton_id(self): + return self._client.get("P9769") + # Marmiton ID + +@cached_property +def food_com_id(self): + return self._client.get("P9840") + # Food.com ID + +@cached_property +def eambrosia_id(self): + return self._client.get("P9854") + # eAmbrosia ID + +@cached_property +def swedish_food_agency_food_id(self): + return self._client.get("P9894") + # Swedish Food Agency food ID + +@cached_property +def bbc_food_id(self): + return self._client.get("P9925") + # BBC Food ID + +@cached_property +def lambic_info_id(self): + return self._client.get("P10172") + # Lambic.Info ID + +@cached_property +def faoterm_id(self): + return self._client.get("P10584") + # FAOTERM ID + +@cached_property +def culinary_heritage_of_switzerland_id(self): + return self._client.get("P11217") + # Culinary Heritage of Switzerland ID + +@cached_property +def dizionario_dei_prodotti_dop_e_igp_id(self): + return self._client.get("P11773") + # Dizionario dei prodotti DOP e IGP ID + +@cached_property +def qualigeo_id(self): + return self._client.get("P11794") + # Qualigeo ID + wikidata_props = WikiDataProperties() From 705c14f9df5bca948945fb7aed826724c599d926 Mon Sep 17 00:00:00 2001 From: Pierre Slamich Date: Sat, 2 Sep 2023 10:37:08 +0200 Subject: [PATCH 3/5] Update wikidata_utils.py --- app/wikidata_utils.py | 538 +++++++++++++++++++++--------------------- 1 file changed, 269 insertions(+), 269 deletions(-) diff --git a/app/wikidata_utils.py b/app/wikidata_utils.py index dfd3ae6..98973f7 100644 --- a/app/wikidata_utils.py +++ b/app/wikidata_utils.py @@ -19,15 +19,15 @@ def image_prop(self): def OSM_prop(self): return self._client.get("P402") -@cached_property -def inao_product_id(self): - return self._client.get("P3895") - # INAO product ID - -@cached_property -def ratebeer_brewery_id(self): - return self._client.get("P2905") - # RateBeer brewery ID + @cached_property + def inao_product_id(self): + return self._client.get("P3895") + # INAO product ID + + @cached_property + def ratebeer_brewery_id(self): + return self._client.get("P2905") + # RateBeer brewery ID @cached_property def acceptable_daily_intake(self): @@ -39,10 +39,10 @@ def Open_Food_Facts_food_additive_ID(self): return self._client.get("P1820") # Open Food Facts additive https://world.openfoodfacts.org/additives/ -@cached_property -def open_food_facts_food_category_id(self): - return self._client.get("P1821") - # Open Food Facts food category ID + @cached_property + def open_food_facts_food_category_id(self): + return self._client.get("P1821") + # Open Food Facts food category ID @cached_property def E_number(self): @@ -69,262 +69,262 @@ def maximum_food_additive_use_level(self): return self._client.get("P4851") # maximum food additive use level - used as a qualifier for permitted food additive (P4850) - maximum quantity of a food additive permitted to be present in a particular food product according to the UN FAO. -@cached_property -def gs1_country_code(self): - return self._client.get("P3067") - # GS1 Prefix - 3 digits at the start of a barcode, usually identifying the national GS1 Member Organization to which the manufacturer is registered (not necessarily where the product is actually made) - -@cached_property -def gs1_company_prefix(self): - return self._client.get("P3193") - # company or organisation code, used in GS1 barcodes - -@cached_property -def scoville_grade(self): - return self._client.get("P2658") - # for spices, peppers… - -@cached_property -def unii(self): - return self._client.get("P652") - # UNII identifier - US unique identifier for ingredients. - -@cached_property -def uk_national_fruit_collection_id(self): - return self._client.get("P4288") - -@cached_property -def findsmiley_id(self): - return self._client.get("P3152") - # identifier for Danish companies serving food - -@cached_property -def alcohol_by_volume(self): - return self._client.get("P2665") - # alcohol by volume - -@cached_property -def jmpr_database_id(self): - return self._client.get("P4853") - # JMPR database ID - -@cached_property -def beer_bitterness(self): - return self._client.get("P6088") - # beer bitterness - -@cached_property -def beer_color(self): - return self._client.get("P6089") - # beer color - -@cached_property -def foodon_id(self): - return self._client.get("P6767") - # FoodOn ID - -@cached_property -def fema_number(self): - return self._client.get("P8266") - # FEMA number - -@cached_property -def food_energy(self): - return self._client.get("P7971") - # food energy - -@cached_property -def tasteatlas_id(self): - return self._client.get("P5456") - # TasteAtlas ID - -@cached_property -def course(self): - return self._client.get("P8431") - # course - -@cached_property -def drizly_product_id(self): - return self._client.get("P8858") - # Drizly product ID - -@cached_property -def barnivore_product_id(self): - return self._client.get("P9031") - # Barnivore product ID - -@cached_property -def thecocktaildb_drink_id(self): - return self._client.get("P9056") - # TheCocktailDB drink ID - -@cached_property -def thecocktaildb_ingredient_id(self): - return self._client.get("P9057") - # TheCocktailDB ingredient ID - -@cached_property -def fl_number(self): - return self._client.get("P9066") - # FL number - -@cached_property -def open_food_facts_ingredient_id(self): - return self._client.get("P5930") - # Open Food Facts ingredient ID - -@cached_property -def okp_id_of_the_good_or_service(self): - return self._client.get("P3248") - -@cached_property -def okpd_code_of_the_good_or_service(self): - return self._client.get("P3245") - -@cached_property -def okpd2_product_code(self): - return self._client.get("P3250") - -@cached_property -def usda_ndb_number(self): - return self._client.get("P1978") - # USDA NDB number - -@cached_property -def ausnut_food_id(self): - return self._client.get("P2759") - -@cached_property -def nuttab_food_id(self): - return self._client.get("P2760") - -@cached_property -def vivc_grape_variety_id(self): - return self._client.get("P3904") - # VIVC grape variety ID - -@cached_property -def foodex2_code(self): - return self._client.get("P4637") - # FoodEx2 code - -@cached_property -def gems_code(self): - return self._client.get("P4695") - # GEMS Code - -@cached_property -def ciqual2017_id(self): - return self._client.get("P4696") - # CIQUAL2017 ID - -@cached_property -def inran_italian_food_id(self): - return self._client.get("P4729") - # INRAN Italian Food ID - -@cached_property -def fao_risk_status(self): - return self._client.get("P2371") - # FAO risk status - -@cached_property -def main_food_source(self): - return self._client.get("P1034") - # main food source - -@cached_property -def image(self): - return self._client.get("P18") - -@cached_property -def shape(self): - return self._client.get("P1419") - -@cached_property -def product_certification(self): - return self._client.get("P1389") - -@cached_property -def made_from_material(self): - return self._client.get("P186") - -@cached_property -def country_of_origin(self): - return self._client.get("P495") - -@cached_property -def location_of_creation(self): - return self._client.get("P1071") - -@cached_property -def icd_code_to_food_allergies(self): - return self._client.get("P493") - # ICD-9 ID for food allergies - -@cached_property -def plu_code(self): - return self._client.get("P4030") - -@cached_property -def edibility(self): - return self._client.get("P789") - # edibility - -@cached_property -def foods_traditionally_associated(self): - return self._client.get("P868") - # foods traditionally associated - -@cached_property -def marmiton_id(self): - return self._client.get("P9769") - # Marmiton ID - -@cached_property -def food_com_id(self): - return self._client.get("P9840") - # Food.com ID - -@cached_property -def eambrosia_id(self): - return self._client.get("P9854") - # eAmbrosia ID - -@cached_property -def swedish_food_agency_food_id(self): - return self._client.get("P9894") - # Swedish Food Agency food ID - -@cached_property -def bbc_food_id(self): - return self._client.get("P9925") - # BBC Food ID - -@cached_property -def lambic_info_id(self): - return self._client.get("P10172") - # Lambic.Info ID - -@cached_property -def faoterm_id(self): - return self._client.get("P10584") - # FAOTERM ID - -@cached_property -def culinary_heritage_of_switzerland_id(self): - return self._client.get("P11217") - # Culinary Heritage of Switzerland ID - -@cached_property -def dizionario_dei_prodotti_dop_e_igp_id(self): - return self._client.get("P11773") - # Dizionario dei prodotti DOP e IGP ID - -@cached_property -def qualigeo_id(self): - return self._client.get("P11794") - # Qualigeo ID + @cached_property + def gs1_country_code(self): + return self._client.get("P3067") + # GS1 Prefix - 3 digits at the start of a barcode, usually identifying the national GS1 Member Organization to which the manufacturer is registered (not necessarily where the product is actually made) + + @cached_property + def gs1_company_prefix(self): + return self._client.get("P3193") + # company or organisation code, used in GS1 barcodes + + @cached_property + def scoville_grade(self): + return self._client.get("P2658") + # for spices, peppers… + + @cached_property + def unii(self): + return self._client.get("P652") + # UNII identifier - US unique identifier for ingredients. + + @cached_property + def uk_national_fruit_collection_id(self): + return self._client.get("P4288") + + @cached_property + def findsmiley_id(self): + return self._client.get("P3152") + # identifier for Danish companies serving food + + @cached_property + def alcohol_by_volume(self): + return self._client.get("P2665") + # alcohol by volume + + @cached_property + def jmpr_database_id(self): + return self._client.get("P4853") + # JMPR database ID + + @cached_property + def beer_bitterness(self): + return self._client.get("P6088") + # beer bitterness + + @cached_property + def beer_color(self): + return self._client.get("P6089") + # beer color + + @cached_property + def foodon_id(self): + return self._client.get("P6767") + # FoodOn ID + + @cached_property + def fema_number(self): + return self._client.get("P8266") + # FEMA number + + @cached_property + def food_energy(self): + return self._client.get("P7971") + # food energy + + @cached_property + def tasteatlas_id(self): + return self._client.get("P5456") + # TasteAtlas ID + + @cached_property + def course(self): + return self._client.get("P8431") + # course + + @cached_property + def drizly_product_id(self): + return self._client.get("P8858") + # Drizly product ID + + @cached_property + def barnivore_product_id(self): + return self._client.get("P9031") + # Barnivore product ID + + @cached_property + def thecocktaildb_drink_id(self): + return self._client.get("P9056") + # TheCocktailDB drink ID + + @cached_property + def thecocktaildb_ingredient_id(self): + return self._client.get("P9057") + # TheCocktailDB ingredient ID + + @cached_property + def fl_number(self): + return self._client.get("P9066") + # FL number + + @cached_property + def open_food_facts_ingredient_id(self): + return self._client.get("P5930") + # Open Food Facts ingredient ID + + @cached_property + def okp_id_of_the_good_or_service(self): + return self._client.get("P3248") + + @cached_property + def okpd_code_of_the_good_or_service(self): + return self._client.get("P3245") + + @cached_property + def okpd2_product_code(self): + return self._client.get("P3250") + + @cached_property + def usda_ndb_number(self): + return self._client.get("P1978") + # USDA NDB number + + @cached_property + def ausnut_food_id(self): + return self._client.get("P2759") + + @cached_property + def nuttab_food_id(self): + return self._client.get("P2760") + + @cached_property + def vivc_grape_variety_id(self): + return self._client.get("P3904") + # VIVC grape variety ID + + @cached_property + def foodex2_code(self): + return self._client.get("P4637") + # FoodEx2 code + + @cached_property + def gems_code(self): + return self._client.get("P4695") + # GEMS Code + + @cached_property + def ciqual2017_id(self): + return self._client.get("P4696") + # CIQUAL2017 ID + + @cached_property + def inran_italian_food_id(self): + return self._client.get("P4729") + # INRAN Italian Food ID + + @cached_property + def fao_risk_status(self): + return self._client.get("P2371") + # FAO risk status + + @cached_property + def main_food_source(self): + return self._client.get("P1034") + # main food source + + @cached_property + def image(self): + return self._client.get("P18") + + @cached_property + def shape(self): + return self._client.get("P1419") + + @cached_property + def product_certification(self): + return self._client.get("P1389") + + @cached_property + def made_from_material(self): + return self._client.get("P186") + + @cached_property + def country_of_origin(self): + return self._client.get("P495") + + @cached_property + def location_of_creation(self): + return self._client.get("P1071") + + @cached_property + def icd_code_to_food_allergies(self): + return self._client.get("P493") + # ICD-9 ID for food allergies + + @cached_property + def plu_code(self): + return self._client.get("P4030") + + @cached_property + def edibility(self): + return self._client.get("P789") + # edibility + + @cached_property + def foods_traditionally_associated(self): + return self._client.get("P868") + # foods traditionally associated + + @cached_property + def marmiton_id(self): + return self._client.get("P9769") + # Marmiton ID + + @cached_property + def food_com_id(self): + return self._client.get("P9840") + # Food.com ID + + @cached_property + def eambrosia_id(self): + return self._client.get("P9854") + # eAmbrosia ID + + @cached_property + def swedish_food_agency_food_id(self): + return self._client.get("P9894") + # Swedish Food Agency food ID + + @cached_property + def bbc_food_id(self): + return self._client.get("P9925") + # BBC Food ID + + @cached_property + def lambic_info_id(self): + return self._client.get("P10172") + # Lambic.Info ID + + @cached_property + def faoterm_id(self): + return self._client.get("P10584") + # FAOTERM ID + + @cached_property + def culinary_heritage_of_switzerland_id(self): + return self._client.get("P11217") + # Culinary Heritage of Switzerland ID + + @cached_property + def dizionario_dei_prodotti_dop_e_igp_id(self): + return self._client.get("P11773") + # Dizionario dei prodotti DOP e IGP ID + + @cached_property + def qualigeo_id(self): + return self._client.get("P11794") + # Qualigeo ID wikidata_props = WikiDataProperties() From c36a0bc71b9f984ba5b6a659da2f9d6834e3b669 Mon Sep 17 00:00:00 2001 From: Pierre Slamich Date: Mon, 4 Sep 2023 14:19:11 +0200 Subject: [PATCH 4/5] fix: lin(d)t --- app/wikidata_utils.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/app/wikidata_utils.py b/app/wikidata_utils.py index 98973f7..97b98c1 100644 --- a/app/wikidata_utils.py +++ b/app/wikidata_utils.py @@ -28,11 +28,11 @@ def inao_product_id(self): def ratebeer_brewery_id(self): return self._client.get("P2905") # RateBeer brewery ID - + @cached_property def acceptable_daily_intake(self): return self._client.get("P2542") - #estimate of the amount of a food additive, expressed on a body weight basis, that can be ingested daily over a lifetime without appreciable health risk + # estimate of the amount of a food additive, expressed on a body weight basis, that can be ingested daily over a lifetime without appreciable health risk @cached_property def Open_Food_Facts_food_additive_ID(self): @@ -43,26 +43,26 @@ def Open_Food_Facts_food_additive_ID(self): def open_food_facts_food_category_id(self): return self._client.get("P1821") # Open Food Facts food category ID - + @cached_property def E_number(self): return self._client.get("P628") - #E number - for food additives - european system also used outside Europe. + # E number - for food additives - european system also used outside Europe. @cached_property def International_Numbering_System_number(self): return self._client.get("P4849") - #International Numbering System number - for food additives - UN FAO identification system. + # International Numbering System number - for food additives - UN FAO identification system. @cached_property def JECFA_database_id(self): return self._client.get("P4852") - #JECFA database ID - for food additives, pesticides and veterinary drugs present in foods - UN FAO database identifier. + # JECFA database ID - for food additives, pesticides and veterinary drugs present in foods - UN FAO database identifier. @cached_property def permitted_food_additive(self): return self._client.get("P4850") - #permitted food additive - additives allowed to be present in a particular food product according to the UN FAO. + # permitted food additive - additives allowed to be present in a particular food product according to the UN FAO. @cached_property def maximum_food_additive_use_level(self): @@ -326,6 +326,7 @@ def qualigeo_id(self): return self._client.get("P11794") # Qualigeo ID + wikidata_props = WikiDataProperties() From 6ca156ac6be7425102825b7dbafdf641209eed1f Mon Sep 17 00:00:00 2001 From: Pierre Slamich Date: Sun, 21 Jul 2024 15:43:26 +0200 Subject: [PATCH 5/5] Update wikidata_utils.py --- app/wikidata_utils.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/wikidata_utils.py b/app/wikidata_utils.py index 97b98c1..4b99f73 100644 --- a/app/wikidata_utils.py +++ b/app/wikidata_utils.py @@ -67,12 +67,14 @@ def permitted_food_additive(self): @cached_property def maximum_food_additive_use_level(self): return self._client.get("P4851") - # maximum food additive use level - used as a qualifier for permitted food additive (P4850) - maximum quantity of a food additive permitted to be present in a particular food product according to the UN FAO. + # maximum food additive use level - used as a qualifier for permitted food additive (P4850) - + # maximum quantity of a food additive permitted to be present in a particular food product according to the UN FAO. @cached_property def gs1_country_code(self): return self._client.get("P3067") - # GS1 Prefix - 3 digits at the start of a barcode, usually identifying the national GS1 Member Organization to which the manufacturer is registered (not necessarily where the product is actually made) + # GS1 Prefix - 3 digits at the start of a barcode, usually identifying the national GS1 Member Organization to which the manufacturer is registered + #(not necessarily where the product is actually made) @cached_property def gs1_company_prefix(self):