Property talk:P3067

From Wikidata
Jump to navigation Jump to search

Documentation

GS1 country code
GS1 Prefix, the first three digits, usually identifying the national GS1 Member Organization to which the manufacturer is registered (not necessarily where the product is actually made)
[create Create a translatable help page (preferably in English) for this property to be included here]
Type “country (Q6256): item must contain property “instance of (P31)” with classes “country (Q6256)” or their subclasses (defined using subclass of (P279)). (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303). Known exceptions: Bookland (Q669741), International Standard Serial Number (Q131276)
List of violations of this constraint: Database reports/Constraint violations/P3067#Type Q6256, SPARQL
Format “\d{3}(-\d{3})?: value must be formatted using this pattern (PCRE syntax). (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P3067#Format, SPARQL
Scope is as main value (Q54828448): the property must be used by specified way only (Help)
List of violations of this constraint: Database reports/Constraint violations/P3067#Scope, hourly updated report, SPARQL
Allowed entity types are Wikibase item (Q29934200): the property may only be used on a certain entity type (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P3067#Entity types

Thanks[edit]

Thanks a lot. That's going to be helpful for Open Food and Open Beauty Facts. --Teolemon (talk) 15:15, 12 August 2016 (UTC)[reply]

Dash format[edit]

For Denmark (Q35) I have added the individual 3-digit numbers. I now see that the format may use dashes for ranges, but is that good for matching? — Finn Årup Nielsen (fnielsen) (talk) 13:19, 2 September 2016 (UTC)[reply]

@Lymantria: Allowing dash to represent a range of values because we are too lazy to write them all out is not a good idea. This violates the most basic rules of data normalization. @Fnielsen: thanks for reporting!

Furthermore, country codes are not always 3 digits, as you can see at https://www.gs1.org/standards/id-keys/company-prefix . Eg 00001 and 00009 are valid prefixes for the US (but "00001–00009" is not). https://en.wikipedia.org/wiki/List_of_GS1_country_codes is outdated or incorrect.

@Lymantria: please fix the regex and then notify the original voters and Wikiprojects Economics and Companies to fix the list. Thanks! --Vladimir Alexiev (talk) 22:31, 22 March 2021 (UTC)[reply]

Find consensus and do what you think is necessary, but I don't see why a range-format would violate anything or be an expression of laziness. So I won't actively change it. Lymantria (talk) 06:13, 23 March 2021 (UTC) P.S. But I won't obstruct any change supposed necessary by others.[reply]