Property talk:P300

From Wikidata
Jump to navigation Jump to search

Documentation

ISO 3166-2 code
identifier for a country subdivision per ISO 3166-2 (include country code)
Descriptionsubdivision identification code per ISO 3166-2 (Q133153) (including the 2-letter country code, see ISO 3166-1 alpha-2 code (P297)).
Applicable "stated in" valueISO 3166-2 (Q133153)
Data typeExternal identifier
Domaincountry (Q6256) or first-level administrative division (Q10864048) (note: this should be moved to the property statements)
Allowed values[A-Z]{2}-[A-Z0-9]{1,3} (2-letter country code, followed with "-" and a 1- to 3-character subdivision code)
ExampleUpper Austria (Q41967) → AT-4
Alabama (Q173) → US-AL
West Flanders (Q1113) → BE-VWV
Tracking: sameno label (Q32069227)
Tracking: usageCategory:Pages using Wikidata property P300 (Q26250092)
Tracking: local yes, WD nono label (Q32069226)
See alsoISO 3166-1 alpha-3 code (P298), ISO 3166-1 alpha-2 code (P297), IETF language tag (P305)
Lists
Proposal discussionProposal discussion
Current uses
Total5,846
Main statement5,842>99.9% of uses
Qualifier3<0.1% of uses
Reference1<0.1% of uses
Search for values
[create Create a translatable help page (preferably in English) for this property to be included here]
Format “([A-Z]{2}-[A-Z0-9]{1,3}|): value must be formatted using this pattern (PCRE syntax). (Help)
List of violations of this constraint: Database reports/Constraint violations/P300#Format, hourly updated report, SPARQL
Distinct values: this property likely contains a value that is different from all other items. (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/P300#Unique value, SPARQL (every item), SPARQL (by value)
Single value: this property generally contains a single value. (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303). Known exceptions: Bonaire (Q25396), Saba (Q25528), Sint Eustatius (Q26180)
List of violations of this constraint: Database reports/Constraint violations/P300#Single value, SPARQL
Item “country (P17): Items with this property should also have “country (P17)”. (Help)
List of violations of this constraint: Database reports/Constraint violations/P300#Item P17, hourly updated report, search, 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/P300#Entity types
Scope is as main value (Q54828448): the property must be used by specified way only (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/P300#Scope, SPARQL
Non-ISO 3166-2 codes for Wales
The alternate Welsh codes from BS 6879 are not ISO 3166-2 codes and should be marked as deprecated. (Help)
Violations query: select distinct ?item { values ?code { "GB-POG" "GB-CAF" "GB-CRD" "GB-GFY" "GB-DDB" "GB-FFL" "GB-YNM" "GB-MTU" "GB-FYN" "GB-CTL" "GB-CNW" "GB-BNF" "GB-ATA" "GB-BMG" "GB-WRC" } ?item p:P300 [ ps:P300 ?code ; wikibase:rank ?rank ] . filter (?rank != wikibase:DeprecatedRank) . }
List of this constraint violations: Database reports/Complex constraint violations/P300#Non-ISO 3166-2 codes for Wales
This property is being used by:

Please notify projects that use this property before big changes (renaming, deletion, merge with another property, etc.)

I don't understand the constraint that this property can only appear at province level and not on the municipalities and cities within such. Unbuttered Parsnip (talk) 15:37, 14 April 2015 (UTC)[reply]

Hi,

Everything is in the title ;) Right now there is 2856 violations, and amongst them a lot of sublevels with this property (apparently all the 100~ french departements).

@Docu, Ahoerstemeier, Pasleim, Unbuttered Parsnip, Laddo, Zuphilip:

Cdlt, VIGNERON (talk) 17:06, 8 July 2015 (UTC)[reply]

@VIGNERON: I just removed the constraint, as it doesn't make sense to use this here. Jon Harald Søby (talk) 16:29, 10 November 2015 (UTC)[reply]