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

Quality facets - Products with a given barcode country prefix which don't have that country in countries #1088

Open
Tracked by #10273
teolemon opened this issue Feb 17, 2018 · 2 comments
Labels
barcodes 🧽 Data quality - Measure - Quality facets One of the facets available in Open Food Facts is /quality & allows us to spot products w/ bad data 🧽 Data quality https://wiki.openfoodfacts.org/Quality

Comments

@teolemon
Copy link
Member

teolemon commented Feb 17, 2018

What

Products with a given barcode country prefix which don't have that country in countries

Code pointer

lib/ProductOpener/DataQuality*.pm

Part of

@teolemon teolemon added barcodes 🧽 Data quality https://wiki.openfoodfacts.org/Quality labels Feb 17, 2018
@hangy
Copy link
Member

hangy commented Feb 24, 2018

What's the most appropriate location field? The GS1 prefix only specifies the country that the company that produces the product is located/headquarted in. There is no necessary relation to a manufacturing place or selling country, as far as I can see.

@hangy hangy added this to the Data Quality Checks milestone Mar 25, 2018
@teolemon
Copy link
Member Author

{"country":"United States" , "barcode" : "000 – 019"},
{"country":"Canada" , "barcode" : "000 – 019"},
{"country":"United States drugs" , "barcode" : "030 – 039"},
{"country":"United States and Canada" , "barcode" : "060 – 099"},
{"country":"United States" , "barcode" : "100 – 139"},
{"country":"France and Monaco" , "barcode" : "300 – 379"},
{"country":"Bulgaria" , "barcode" : "380"},
{"country":"Slovenia" , "barcode" : "383"},
{"country":"Croatia" , "barcode" : "385"},
{"country":"Bosnia and Herzegovina" , "barcode" : "387"},
{"country":"Montenegro" , "barcode" : "389"},
{"country":"Kosovo" , "barcode" : "390"},
{"country":"Germany" , "barcode" : "400 – 440"},
{"country":"Japan" , "barcode" : "450 – 459"},
{"country":"Russia" , "barcode" : "460 – 469"},
{"country":"Kyrgyzstan" , "barcode" : "470"},
{"country":"Taiwan" , "barcode" : "471"},
{"country":"Estonia" , "barcode" : "474"},
{"country":"Latvia" , "barcode" : "475"},
{"country":"Azerbaijan" , "barcode" : "476"},
{"country":"Lithuania" , "barcode" : "477"},
{"country":"Uzbekistan" , "barcode" : "478"},
{"country":"Sri Lanka" , "barcode" : "479"},
{"country":"Philippines" , "barcode" : "480"},
{"country":"Belarus" , "barcode" : "481"},
{"country":"Ukraine" , "barcode" : "482"},
{"country":"Turkmenistan" , "barcode" : "483"},
{"country":"Moldova" , "barcode" : "484"},
{"country":"Armenia" , "barcode" : "485"},
{"country":"Georgia" , "barcode" : "486"},
{"country":"Kazakhstan" , "barcode" : "487"},
{"country":"Tajikistan" , "barcode" : "488"},
{"country":"Hong Kong" , "barcode" : "489"},
{"country":"Japan" , "barcode" : "490 – 499"},
{"country":"United Kingdom" , "barcode" : "500 – 509"},
{"country":"Greece" , "barcode" : "520 – 521"},
{"country":"Lebanon" , "barcode" : "528"},
{"country":"Cyprus" , "barcode" : "529"},
{"country":"Albania" , "barcode" : "530"},
{"country":"Macedonia" , "barcode" : "531"},
{"country":"Malta" , "barcode" : "535"},
{"country":"Republic of Ireland" , "barcode" : "539"},
{"country":"Belgium and Luxembourg" , "barcode" : "540 – 549"},
{"country":"Portugal" , "barcode" : "560"},
{"country":"Iceland" , "barcode" : "569"},
{"country":"Denmark" , "barcode" : "570 – 579"},
{"country":"Faroe Islands" , "barcode" : "570 – 579"},
{"country":"Greenland" , "barcode" : "570 – 579"},
{"country":"Poland" , "barcode" : "590"},
{"country":"Romania" , "barcode" : "594"},
{"country":"Hungary" , "barcode" : "599"},
{"country":"South Africa" , "barcode" : "600 – 601"},
{"country":"Ghana" , "barcode" : "603"},
{"country":"Senegal" , "barcode" : "604"},
{"country":"Bahrain" , "barcode" : "608"},
{"country":"Mauritius" , "barcode" : "609"},
{"country":"Morocco" , "barcode" : "611"},
{"country":"Algeria" , "barcode" : "613"},
{"country":"Nigeria" , "barcode" : "615"},
{"country":"Kenya" , "barcode" : "616"},
{"country":"Ivory Coast" , "barcode" : "618"},
{"country":"Tunisia" , "barcode" : "619"},
{"country":"Tanzania" , "barcode" : "620"},
{"country":"Syria" , "barcode" : "621"},
{"country":"Egypt" , "barcode" : "622"},
{"country":"Brunei" , "barcode" : "623"},
{"country":"Libya" , "barcode" : "624"},
{"country":"Jordan" , "barcode" : "625"},
{"country":"Iran" , "barcode" : "626"},
{"country":"Kuwait" , "barcode" : "627"},
{"country":"Saudi Arabia" , "barcode" : "628"},
{"country":"United Arab Emirates" , "barcode" : "629"},
{"country":"Finland" , "barcode" : "640 – 649"},
{"country":"China" , "barcode" : "690 – 699"},
{"country":"Norway" , "barcode" : "700 – 709"},
{"country":"Israel" , "barcode" : "729"},
{"country":"Sweden : EAN/GS1 Sweden" , "barcode" : "730 – 739"},
{"country":"Guatemala" , "barcode" : "740"},
{"country":"El Salvador" , "barcode" : "741"},
{"country":"Honduras" , "barcode" : "742"},
{"country":"Nicaragua" , "barcode" : "743"},
{"country":"Costa Rica" , "barcode" : "744"},
{"country":"Panama" , "barcode" : "745"},
{"country":"Dominican Republic" , "barcode" : "746"},
{"country":"Mexico" , "barcode" : "750"},
{"country":"Canada" , "barcode" : "754 – 755"},
{"country":"Venezuela" , "barcode" : "759"},
{"country":"Switzerland and Liechtenstein" , "barcode" : "760 – 769"},
{"country":"Colombia" , "barcode" : "770 – 771"},
{"country":"Uruguay" , "barcode" : "773"},
{"country":"Peru" , "barcode" : "775"},
{"country":"Bolivia" , "barcode" : "777"},
{"country":"Argentina" , "barcode" : "778 – 779"},
{"country":"Chile" , "barcode" : "780"},
{"country":"Paraguay" , "barcode" : "784"},
{"country":"Ecuador" , "barcode" : "786"},
{"country":"Brazil" , "barcode" : "789 – 790"},
{"country":"Italy, San Marino and Vatican City" , "barcode" : "800 – 839"},
{"country":"Spain and Andorra" , "barcode" : "840 – 849"},
{"country":"Cuba" , "barcode" : "850"},
{"country":"Slovakia" , "barcode" : "858"},
{"country":"Czech Republic" , "barcode" : "859"},
{"country":"Serbia" , "barcode" : "860"},
{"country":"Mongolia" , "barcode" : "865"},
{"country":"North Korea" , "barcode" : "867"},
{"country":"Turkey" , "barcode" : "868 – 869"},
{"country":"Netherlands" , "barcode" : "870 – 879"},
{"country":"South Korea" , "barcode" : "880"},
{"country":"Cambodia" , "barcode" : "884"},
{"country":"Thailand" , "barcode" : "885"},
{"country":"Singapore" , "barcode" : "888"},
{"country":"India" , "barcode" : "890"},
{"country":"Vietnam" , "barcode" : "893"},
{"country":"Pakistan" , "barcode" : "896"},
{"country":"Indonesia" , "barcode" : "899"},
{"country":"Austria" , "barcode" : "900 – 919"},
{"country":"Australia" , "barcode" : "930 – 939"},
{"country":"New Zealand" , "barcode" : "940 – 949"},
{"country":"Malaysia" , "barcode" : "955"},
{"country":"Macau" , "barcode" : "958"}

@stephanegigandet stephanegigandet added the 🧽 Data quality - Measure - Quality facets One of the facets available in Open Food Facts is /quality & allows us to spot products w/ bad data label Jun 17, 2019
@teolemon teolemon changed the title Create quality facets for products with barcode country prefix which miss that country in countries Quality facets - Products with a given barcode country prefix which don't have that country in countries Oct 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
barcodes 🧽 Data quality - Measure - Quality facets One of the facets available in Open Food Facts is /quality & allows us to spot products w/ bad data 🧽 Data quality https://wiki.openfoodfacts.org/Quality
Projects
Status: To discuss and validate
Status: To do
Development

No branches or pull requests

3 participants