Property talk:P2715
Documentation
election in which a person gained a position (as qualifier), or a position or legislative term is/was elected (as main value)
List of violations of this constraint: Database reports/Constraint violations/P2715#Scope, SPARQL
List of violations of this constraint: Database reports/Constraint violations/P2715#Type Q5, Q95074, SPARQL
List of violations of this constraint: Database reports/Constraint violations/P2715#Value type Q40231, SPARQL
List of violations of this constraint: Database reports/Constraint violations/P2715#Type Q4164871, Q15238777, Q15284634, Q13147896, SPARQL
List of violations of this constraint: Database reports/Constraint violations/P2715#Item P39, search, SPARQL
Target election should point back to the position using P541 (contested office) (Help)
Violations query:
SELECT ?item ?itemLabel WHERE { ?item p:P39 [ pq:P2715 ?election; ps:P39 ?position ] . FILTER NOT EXISTS { ?election wdt:P541 ?position . } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }
List of this constraint violations: Database reports/Complex constraint violations/P2715#Match P541
|
Used as main value for positions, legislative terms , etc. edit
I think that P2715 (elected in) can be used not only as qualifier for humans or fictional characters, but also as main value for positions (Q4164871), legislative terms (Q15238777), etc., and the statement's value can be not only instance of, but also subclass of, election (e.g., President of the United States (Q11696) is elected in (P2715) United States presidential election (Q47566)). I have removed "position held" (P39) from item-requires-statement constraint (Q21503247), and changed the property accordingly. --Neo-Jay (talk) 12:31, 22 June 2022 (UTC)
I also added executive term (Q15284634) to type constraint (Q21503250) and added an example. --Neo-Jay (talk) 06:08, 27 July 2022 (UTC)
I divided the type constraint (Q21503250) into two parts, one for the "constraint checked on qualifiers" (Q46466783) and the other for the "constraint checked on main value" (Q46466787), and I re-added "item-requires-statement constraint (Q21503247): position held (P39)" and set it as a "constraint checked on qualifiers". --Neo-Jay (talk) 11:39, 28 August 2022 (UTC)