Property talk:P2715

Documentation

elected in
election in which a person gained a position (as qualifier), or a position or legislative term is/was elected (as main value)
Representsby election (Q99441951)
Data typeItem
Domain
According to this template: elected officials
According to statements in the property:
human (Q5) or fictional character (Q95074)position (Q4164871), legislative term (Q15238777), executive term (Q15284634) or plenary session (Q13147896)
When possible, data should only be stored as statements
Allowed valueshumans who have been elected to a role, statements with position held (P39) (note: this should be moved to the property statements)
Example When possible, data should only be stored as statements
Robot and gadget jobsDeltaBot does the following jobs:
Tracking: usageCategory:Pages using Wikidata property P2715 (Q30783672)
Lists
  • Most recently created items
  • Items with novalue claims
  • Items with unknown value claims
  • Usage history (total)
  • Chart by item creation date
  • Map of people by place values:
  • January 1st dates
  • Database reports/Complex constraint violations/P2715
  • Database reports/Constraint violations/P2715
  • Proposal discussionProposal discussion
    Current uses
    Total179,982
    Main statement1,0640.6% of uses
    Qualifier178,91099.4% of uses
    Reference8<0.1% of uses
    Search for values
    [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)
    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/P2715#Scope, SPARQL
    Type “human (Q5), fictional character (Q95074): item must contain property “instance of (P31)” with classes “human (Q5), fictional character (Q95074)” or their subclasses (defined using subclass of (P279)). (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/P2715#Type Q5, Q95074, SPARQL
    Value type “public election (Q40231): This property should use items as value that contain property “instance of (P31)”. On these, the value for instance of (P31) should be an item that uses subclass of (P279) with value public election (Q40231) (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/P2715#Value type Q40231, SPARQL
    Allowed entity types are Wikibase item (Q29934200): the property may only be used on a certain entity type (Help)
    List of violations of this constraint: Database reports/Constraint violations/P2715#Entity types, hourly updated report
    Item “position held (P39): Items with this property should also have “position held (P39)”. (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/P2715#Item P39, search, SPARQL
     
    Match P541
    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)Reply

    I also added executive term (Q15284634) to type constraint (Q21503250) and added an example. --Neo-Jay (talk) 06:08, 27 July 2022 (UTC)Reply

    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)Reply

    Return to "P2715" page.