Property talk:P297
Documentation
identifier for a country in two-letter format per ISO 3166-1
![]() |
Single best value: this property generally contains a single value. If there are several, one would have preferred rank (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/P297#single best value, 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). Known exceptions: Caribbean Netherlands (Q27561), British Antarctic Territory (Q165783), Belarus (Q184), Byelorussian Soviet Socialist Republic (Q2895)List of violations of this constraint: Database reports/Constraint violations/P297#Unique value, SPARQL (every item), SPARQL (by value) |
![]() |
List of violations of this constraint: Database reports/Constraint violations/P297#Format, hourly updated report, SPARQL |
![]() |
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/P297#Item P30, search, SPARQL |
![]() |
Item “instance of (P31): sovereign state (Q3624078)”: Items with this property should also have “instance of (P31): sovereign state (Q3624078)”. (Help) Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303). Known exceptions: United States Minor Outlying Islands (Q16645), Hong Kong (Q8646), Macau (Q14773)List of violations of this constraint: Database reports/Constraint violations/P297#Item P31, search, SPARQL |
![]() |
Item “instance of (P31): country (Q6256)”: Items with this property should also have “instance of (P31): country (Q6256)”. (Help) Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303). Known exceptions: United States Minor Outlying Islands (Q16645), Hong Kong (Q8646), Macau (Q14773)List of violations of this constraint: Database reports/Constraint violations/P297#Item P31, search, SPARQL |
![]() |
Item “coordinate location (P625)”: Items with this property should also have “coordinate location (P625)”. (Help) List of violations of this constraint: Database reports/Constraint violations/P297#Item P625, hourly updated report, SPARQL
|
![]() |
Item “top-level Internet domain (P78)”: Items with this property should also have “top-level Internet domain (P78)”. (Help) Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303). Known exceptions: Canton and Enderbury Islands (Q2618621)List of violations of this constraint: Database reports/Constraint violations/P297#Item P78, search, SPARQL |
![]() |
Item “ISO 3166-1 alpha-3 code (P298)”: Items with this property should also have “ISO 3166-1 alpha-3 code (P298)”. (Help) List of violations of this constraint: Database reports/Constraint violations/P297#Item P298, hourly updated report, search, SPARQL
|
![]() |
Item “ISO 3166-1 numeric code (P299)”: Items with this property should also have “ISO 3166-1 numeric code (P299)”. (Help) List of violations of this constraint: Database reports/Constraint violations/P297#Item P299, hourly updated report, search, SPARQL
|
![]() |
Item “FIPS 10-4 (countries and regions) (P901)”: Items with this property should also have “FIPS 10-4 (countries and regions) (P901)”. (Help) Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303). Known exceptions: United States Minor Outlying Islands (Q16645)List of violations of this constraint: Database reports/Constraint violations/P297#Item P901, search, SPARQL |
![]() |
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/P297#Item P31, search, SPARQL |
![]() |
Required qualifier “statement is subject of (P805)”: this property should be used with the listed qualifier. (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/P297#mandatory qualifier, SPARQL |
![]() |
Required qualifier “start time (P580)”: this property should be used with the listed qualifier. (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/P297#mandatory qualifier, 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/P297#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/P297#Scope, SPARQL |
![]() |
Distinct best value constraint A given value should be used by just one value with best rank (normal rank without another statement in preferred rank or preferred rank) (Help) Violations query: SELECT DISTINCT ?item ?item2 ?value { ?item wdt:P297 ?value . ?item2 wdt:P297 ?value . FILTER( ?item != ?item2 && STR( ?item ) < STR( ?item2 ) ) . } List of this constraint violations: Database reports/Complex constraint violations/P297#Distinct best value constraint |
![]() |
Statements with an end date shouldn't have best rank (Help) Violations query: SELECT DISTINCT ?item ?value { ?item p:P297 ?st. ?st ps:P297 ?value. ?st pq:P582 []. ?item wdt:P297 ?value. } List of this constraint violations: Database reports/Complex constraint violations/P297#Statements with an end date shouldn't have best rank |
External use[edit]
![]() |
This property is being used by:
Please notify projects that use this property before big changes (renaming, deletion, merge with another property, etc.) |
Item requires statement constraints[edit]
This property has a lot of constraints which are not related to the ISO codes which were added back in the early days of Wikidata. I've removed some of the constraints which had a lot of constraint violations (they haven't been fixed in five years, so they can't be very useful constraints). Any reason why we shouldn't remove the others? - Nikki (talk) 14:20, 11 June 2018 (UTC)
- Maybe there is a more suitable property for them (one that is just used on sovereign states). The approach works fairly well for US states. See here. It also ensure that these don't disappear.
--- Jura 14:45, 11 June 2018 (UTC)
- It doesn't prevent them from disappearing, every single one of the constraints here has violations. I don't see any evidence that anyone actually cares about these constraints (nobody appears to have even noticed that the report has been completely broken for 6 weeks), so I'm going to go ahead and remove them. If someone is interested in tracking the completeness of items, it's easy to make a Listeria-based report. - Nikki (talk) 10:39, 11 August 2018 (UTC)
No value with preferred rank ?[edit]
If there is an end date on a value, should we also a "novalue" claim with preferred rank (and start date)? sample. Obviously, unless there is a new value that would have it.
--- Jura 14:45, 11 June 2018 (UTC)
- I added two samples illustrating no value claims (one for an existing entity: JT, another for one that no longer exists: AI). AI also illustrates that the same code was later reassigned. Preferred rank can only be seen on the actual items: Q1450765#P297, Q131008#P297. --- Jura 10:35, 23 September 2020 (UTC)
Kingdom of Denmark[edit]
Please see Wikidata:Project_chat#Identifiers_for_Kingdom_of_Denmark_(Q756617). --- Jura 09:57, 28 September 2020 (UTC)
- All Properties
- Properties with external-id-datatype
- Properties used on 100+ items
- Properties with single best value constraints
- Properties with unique value constraints
- Properties with format constraints
- Properties with constraints on items using them
- Properties with required qualifiers constraints
- Properties with entity type constraints
- Properties with scope constraints
- Properties with complex constraints