Property talk:P7452
Jump to navigation
Jump to search
Documentation
reason for preferred rank
qualifier to allow the reason to be indicated why a particular statement should be considered preferred
qualifier to allow the reason to be indicated why a particular statement should be considered preferred
[create Create a translatable help page (preferably in English) for this property to be included here]
Scope is as qualifier (Q54828449), as main value (Q54828448): the property must be used by specified way only (Help)
List of violations of this constraint: Database reports/Constraint violations/P7452#Scope, hourly updated report, SPARQLValue type “Wikibase reason for preferred rank (Q71533077)”: This property should use items as value that contain property “instance of (P31), subclass of (P279)”. On these, the value for instance of (P31), subclass of (P279) should be an item that uses subclass of (P279) with value Wikibase reason for preferred rank (Q71533077) (or a subclass thereof). (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/P7452#Value type Q71533077, SPARQL
Allowed entity types are Wikibase item (Q29934200), Wikibase property (Q29934218), Wikibase lexeme (Q51885771), Wikibase form (Q54285143), Wikibase sense (Q54285715), Wikibase MediaInfo (Q59712033): 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/P7452#Entity types
![](http://178.128.105.246/cars-http-upload.wikimedia.org/wikipedia/commons/thumb/a/a6/Pictogram_voting_comment.svg/40px-Pictogram_voting_comment.svg.png)
Non-preferred statements
Items with statements qualified by reason for preferred rank (P7452) that are not preferred (Help)
Violations query:
List of this constraint violations: Database reports/Complex constraint violations/P7452#Non-preferred statements
Items with statements qualified by reason for preferred rank (P7452) that are not preferred (Help)
Violations query:
SELECT ?item WHERE { hint:Query hint:optimizer "None" . ?statement pq:P7452 ?value; wikibase:rank ?rank . FILTER(?rank != wikibase:PreferredRank) . ?item ?p ?statement . [] wikibase:claim ?p }
List of this constraint violations: Database reports/Complex constraint violations/P7452#Non-preferred statements
![](http://178.128.105.246/cars-http-upload.wikimedia.org/wikipedia/commons/thumb/a/a6/Pictogram_voting_comment.svg/40px-Pictogram_voting_comment.svg.png)
Currently valid values with end time in the past
Items with statements qualified by reason for preferred rank (P7452) = currently valid value (Q71536244) and end time (P582) with value before current date. (Help)
Violations query:
List of this constraint violations: Database reports/Complex constraint violations/P7452#Currently valid values with end time in the past
Items with statements qualified by reason for preferred rank (P7452) = currently valid value (Q71536244) and end time (P582) with value before current date. (Help)
Violations query:
SELECT ?item WHERE { ?item ?property ?statement. ?statement pq:P7452 wd:Q71536244; pq:P582 ?time. FILTER(?time < (NOW())) }
List of this constraint violations: Database reports/Complex constraint violations/P7452#Currently valid values with end time in the past
Error handling
[edit]This property should throw up an alert when it's placed next to a value that's not actually preferred. Can that be done? (And a similar thing done with its deprecated counterpart?) {{u|Sdkb}} talk 18:08, 13 August 2020 (UTC)
- There could also be other checks, such as when a value is marked as preferred because it's the most recent, but another value exists for the property with a later point in time or end date. {{u|Sdkb}} talk 18:10, 13 August 2020 (UTC)
Similar property
[edit]See Wikidata:Property proposal/reason for normal rank. --- Jura 16:42, 8 January 2021 (UTC)
Report for qualifier use to check
[edit]There is a new report at Property talk:P7452/qualifiers to check which lists use of this qualifier on claims without preferred rank. The reports is supposed to be updated daily. —MisterSynergy (talk) 22:14, 7 July 2023 (UTC)
Relevant merge proposal
[edit]See Talk:Q71536244#Proposed_merge_with_most_recent_value_(Q71533355). {{u|Sdkb}} talk 21:04, 27 July 2023 (UTC)