Property talk:P297
Documentation
identifier for a country in two-letter format per ISO 3166-1
List of violations of this constraint:Database reports/Constraint violations/P297#single best value,SPARQL
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#Item P30,search,SPARQL
List of violations of this constraint:Database reports/Constraint violations/P297#Item P31,search,SPARQL
List of violations of this constraint:Database reports/Constraint violations/P297#Item P31,search,SPARQL
List of violations of this constraint:Database reports/Constraint violations/P297#Item P78,search,SPARQL
List of violations of this constraint:Database reports/Constraint violations/P297#Item P901,search,SPARQL
List of violations of this constraint:Database reports/Constraint violations/P297#Item P31,search,SPARQL
List of violations of this constraint:Database reports/Constraint violations/P297#mandatory qualifier,SPARQL
List of violations of this constraint:Database reports/Constraint violations/P297#mandatory qualifier,SPARQL
List of violations of this constraint:Database reports/Constraint violations/P297#Entity types
List of violations of this constraint:Database reports/Constraint violations/P297#Scope,SPARQL
![](https://upload.wikimedia.org/wikipedia/commons/thumb/a/a6/Pictogram_voting_comment.svg/40px-Pictogram_voting_comment.svg.png)
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:
SELECTDISTINCT?item?item2?value{?itemwdt:P297?value.?item2wdt:P297?value.FILTER(?item!=?item2&&STR(?item)<STR(?item2)).}
List of this constraint violations:Database reports/Complex constraint violations/P297#Distinct best value constraint
![](https://upload.wikimedia.org/wikipedia/commons/thumb/a/a6/Pictogram_voting_comment.svg/40px-Pictogram_voting_comment.svg.png)
(Help)
Violations query:
SELECTDISTINCT?item?value{?itemp:P297?st.?stps:P297?value.?stpq:P582[].?itemwdt: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. Seehere.It also ensure that these don't disappear.
---Jura14:45, 11 June 2018 (UTC)
- It doesn't prevent them from disappearing,every single oneof 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.
---Jura14:45, 11 June 2018 (UTC)
- I added two samples illustratingno valueclaims (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.---Jura10:35, 23 September 2020 (UTC)
Kingdom of Denmark
[edit]Please seeWikidata:Project_chat#Identifiers_for_Kingdom_of_Denmark_(Q756617).---Jura09: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