Coder Social home page Coder Social logo

commons-explorer's Introduction

EveryPolitician

Data about every national legislature in the world, freely available for you to use

Repo summary

These are some of the key repos in the EveryPolitician family. There are others.

The repos for many of our scrapers are kept separately in github.com/everypolitician-scrapers.

Technical blog

The EveryPolitician bot's own page is a good jumping-off point to lots of semi-technical explanations of what's going on (it has its own blog on Medium). For example:

The bot is on twitter as @everypolitician

Contributing

If you have data for us, or know where to get it, please read our page about how to contribute.

Team

EveryPolitician is a mySociety project.

commons-explorer's People

Contributors

alexdutton avatar crowbot avatar jacksonj04 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

commons-explorer's Issues

Better distinguish that legislatures and executives belong to geographical regions.

At the moment, legislatures and executives are grouped into those two categories. In actuality, there is an additional grouping of geographical region, which can potentially include multiple legislatures.

For example, https://commons-explorer.herokuapp.com/country/proto-commons-canada shows a large mix of both types. In actuality, the Country consists of a National level with a bicameral legislature and multiple Regions with unicameral legislatures.

This should be more readily apparent.

Link to relevant Wikidata items

Items have a relevant entity in Wikidata - pages should offer links to these wherever it would be intuitive to expect to be able to visit the entity directly.

Legislature pages should include summary statistics

A page for a legislature should include summary statistics such as:

  • Expected number of members
  • Total number of members and member_ships_ (one person may have multiple)
  • Number of current members/memberships
  • Number of ended members/memberships

Show number of seats vs current number of members for a given legislature

For any given legislature, highlight the number of seats in the legislature and the number of members actually returned by our current query.

Some form of high-level visibility of this (percentage, absolute number of difference, progress bar etc) will make it easier to identify how 'complete' a legislature is likely to be.

Provide list of known exceptions for any given country or legislature

NB: This is a grand vision ticket which describes an eventual goal to improve overall usefulness, not something which should be considered an essential feature.

Commons Explorer should be able to identify issues which are known to be incorrect, impossible or inconsistent, and highlight them for attention.

Possible examples include:

  • A legislature does not have a number of seats.
  • The number of members in a legislature does not match the number of seats.
  • In a term-based legislature, the most recent term appears to have ended in the past.

In general there is no way to programmatically state if the contents of the commons are correct, but it should be possible to highlight cases where we know for a fact that they are not.

Include WDQS links to the queries used to generate any particular page.

At present, every page in the Explorer is generated from a specific query in the proto-commons repo. It would make sense for there to be a direct link to query.wikidata.org for any page which automatically includes the query used, making it easier to use the Explorer as a starting point for further investigation.

Cache query results

Queries take a significant amount of time to run; query results should be cached in some way, either on first request for a page or by processing a batch job of all queries at a given interval.

It must also be possible to manually refresh a query.

Legislature data should include method used to determine current member

At present we use three distinct methods to find people who should be considered as current members of any given legislature.

  • Generic "Member of X" position.
  • "Member of X" with an "electoral term" qualifier.
  • "Member of the nth term of X".

It would be useful to explicitly declare somewhere which kind of modelling was being used. This may help improve queries being built, or allow for easier exception reporting in future.

Better represent information regarding a geographical region

The concept of a 'region' is currently poorly represented in general, but it would be worthwhile to be able to explore information which directly pertains to a region, as opposed to a concept within it, such as:

  • Head of government
  • Executive body
  • Population
  • Legislative body

This will also help in automated sanity checking, able to throw exceptions where (eg):

  • A region does not have a head of government
  • The executive given for a region does not appear in a query
  • Legislatures within a region are not the (or part of) the legislative body of the region

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.