User:MKar/sandbox
Jump to navigation
Jump to search
This is the user sandbox of MKar. A user sandbox is a subpage of the user's user page. It serves as a testing spot and page development space for the user and is not an encyclopedia article, or data item. For a sandbox of your own, create it here. Other sandboxes: Main sandbox | Tutorial sandbox 1, 2, 3, 4, 5 |
If you want to test on an actual item, see Q4115189, Q13406268, Q15397819, Q112795079.
Data Model
[edit]Rajya Sabha
[edit]All items for members of Rajya Sabha (Q244730) should have the following metadata:
Mandatory |
|
Where known |
Lok Sabha
[edit]All items for members of Lok Sabha (Q230003) should have the following metadata:
Mandatory |
|
Where known |
- Qualifiers for member of the Lok Sabha (Q16556694): https://query.wikidata.org/#%23Qualifiers%20for%20member%20of%20Lok%20Sabha%0ASELECT%20%3Fqual%20%3FqualLabel%20%3Fcount%20WHERE%20{%0A%20%20{%0A%20%20%20%20SELECT%20%3Fqual%20%28COUNT%28DISTINCT%20%3Fstatement%29%20AS%20%3Fcount%29%20WHERE%20{%0A%20%20%20%20%20%20%3Fperson%20p%3AP39%20%3Fstatement%20.%0A%20%20%20%20%20%20%3Fstatement%20ps%3AP39%2Fwdt%3AP279*%20wd%3AQ16556694%20%3B%20%3Fpq_qual%20%3Fpq_obj%20.%0A%20%20%20%20%20%20%3Fqual%20wikibase%3Aqualifier%20%3Fpq_qual%20.%20%0A%20%20%20%20}%0A%20%20%20%20GROUP%20BY%20%3Fqual%0A%20%20}%20%20%20%20%20%20%20%20%20%20%20%0A%20%20SERVICE%20wikibase%3Alabel%20{%20bd%3AserviceParam%20wikibase%3Alanguage%20%22en%22%20.%20}%20%0A}%0AORDER%20BY%20DESC%20%28%3Fcount%29
Core properties and qualifiers
[edit]- <position held (P39) : a term-specific value such as Member of the 16th Lok Sabha (Q42509248)>
- <electoral district (P768)> : constituency represented during this period
- <parliamentary group (P4100)> : the party they represented during this period; use independent politician (Q327591) for independents and Speaker of the House of Commons (Q464103) for the Speaker - this replaces the earlier use of member of political party (P102), which is now deprecated. Deputy speakers should retain their own party affiliation.
- <member of political party (P102)> :
- <elected in (P2715)> : the general election or by-election at which they were elected/re-elected - if there is no item for a specific by-election, use UK Parliamentary by-election (Q7864918). If they were not elected at the start of this particular period, omit this qualifier.
- <start time (P580)> : start date of this period - use the date of election or date of "change of status".
- <end time (P582)> : end date of this period - use the date of the dissolution of parliament if they lasted until the end of the term. If still in office, omit this qualifier.
- <end cause (P1534)> : the reason for ending this period; eg dissolution of parliament (Q741182), leaving party (Q30580660), exclusion from a political party (Q30580630), death in office (Q5247364), crossing the floor (Q5188683). (Other examples)
- Optional:
- <significant event (P793)> : use this in certain cases where we need to note information that does not fit elsewhere. If the general election vote was delayed for this one constituency, use postponed election (Q35647389). If they deliberately did not take their seat (eg contemporary Sinn Fein MPs), use abstentionism (Q13580111).
- <replaces (P1365)> : preceding MP
- <replaced by (P1366)> : succeeding MP
- Examples -
- - sat for three parliamentary terms with no break in service. She thus gets three position held (P39) entries.
- - sat for three terms; resigned to fight a by-election on changing parties in the second term; then changed parties again time with no by-election in the third term. He thus gets five position held (P39) entries.
Sahitya Akademi
[edit]The following query uses these:
- Properties: instance of (P31) , language of work or name (P407) , award received (P166) , notable work (P800) , point in time (P585)
# Sahitya Akademi Awarded Odia books (34 Results, 16 JAN 2019) SELECT ?book ?bookLabel ?itemLabel ?year WHERE { ?book wdt:P31 wd:Q571. ?book wdt:P407 wd:Q33810. ?book wdt:P166 wd:Q172582. ?item wdt:P31 wd:Q5. ?item wdt:P800 ?book. ?item p:P166 ?statement. ?statement ps:P166 wd:Q172582. ?statement pq:P585 ?year. SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE], en". } } ORDER BY DESC(?year)