Wikidata talk:WikiProject every politician/List of National Legislatures

From Wikidata
Jump to navigation Jump to search

@Pigsonthewing: — yes, the plan is to replace the hard-coded country + legislature names with Q-templates like that. Andrew no longer has the script he used to generated this table originally, so I spent a few hours on Monday pulling all of these into a spreadsheet so we could rebuild them regularly with this, and some other changes (e.g. replacing the autolist links that don't work any more). Hopefully I'll get time to finish that off today or tomorrow. --Oravrattas (talk) 09:45, 15 March 2017 (UTC)[reply]

This is now done. There are lots more things I'd like to add to this table, but this should replicate what was there before, and can now be regenerated regularly again, until such time as there's sufficient modelling in place to have the entire table produced from a single SPARQL query. --Oravrattas (talk) 10:28, 15 March 2017 (UTC)[reply]

Next Steps[edit]

  • replace the obsolete AutoList query with a link to the query service, in a form like
    SELECT ?person ?personLabel WHERE { 
      ?person wdt:P39 wd:Q19853383 . 
      SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . }
    }
    ORDER BY ?personLabel
    
    Try it!
  • Tie the official identifiers for other countries using related property (P1659) on the "Member of…" property (similar to Greece) — DONE: automatically pulls in, but using Wikidata property (P1687) instead
  • Add similar information about political parties and factions, legislative terms, constituencies, etc
  • Ensure that each legislature Item is correctly filled, and each country correctly links to it via legislative body (P194), so that the list of countries + legislatures can be generated from SPARQL
  • Ensure that each "Member of…" property is set on the legislature item using has part(s) of the class (P2670)