Skip to content

Instantly share code, notes, and snippets.

@greenwoodma
Last active August 29, 2015 14:16
Show Gist options
  • Save greenwoodma/e5ade087cfd651cfb517 to your computer and use it in GitHub Desktop.
Save greenwoodma/e5ade087cfd651cfb517 to your computer and use it in GitHub Desktop.
Mapping of Public Whip political party IDs to the relevant Wikipedia pages
<?xml version="1.0" encoding="ISO-8859-1"?>
<publicwhip>
<!--
A mapping from the party IDs used within the all-members.xml and all-members-2010.xml
files to the relevant, English language, page on Wikipedia. There are a few oddities
documented below which you might want to take into account before directly using these
links for search or voting pattern analysis etc.
Produced by the ForgetIT project under European Union grant agreement 600826
-->
<party id="DUP" wikipedia_url="http://en.wikipedia.org/wiki/Democratic_Unionist_Party" />
<party id="SF" wikipedia_url="http://en.wikipedia.org/wiki/Sinn_F%C3%A9in" />
<party id="SDLP" wikipedia_url="http://en.wikipedia.org/wiki/Social_Democratic_and_Labour_Party" />
<party id="Alliance" wikipedia_url="http://en.wikipedia.org/wiki/Alliance_Party_of_Northern_Ireland" />
<party id="UUP" wikipedia_url="http://en.wikipedia.org/wiki/Ulster_Unionist_Party" />
<party id="LDem" wikipedia_url="http://en.wikipedia.org/wiki/Liberal_Democrats" />
<party id="UKIP" wikipedia_url="http://en.wikipedia.org/wiki/UK_Independence_Party" />
<party id="Green" wikipedia_url="http://en.wikipedia.org/wiki/Green_Party_(UK)" />
<party id="Con" wikipedia_url="http://en.wikipedia.org/wiki/Conservative_Party_(UK)" />
<party id="SNP" wikipedia_url="http://en.wikipedia.org/wiki/Scottish_National_Party" />
<party id="UKUP" wikipedia_url="http://en.wikipedia.org/wiki/UK_Unionist_Party" />
<party id="Lab" wikipedia_url="http://en.wikipedia.org/wiki/Labour_Party_(UK)" />
<party id="Res" wikipedia_url="http://en.wikipedia.org/wiki/Respect_Party" />
<party id="PC" wikipedia_url="http://en.wikipedia.org/wiki/Plaid_Cymru" />
<!-- This label is applied to those MPs who are members (and endorsed) by both the Labour
and Co-operative party. The Co-operative party doesn't field it's own candidates and any
member wishing to stand has to do so as a member of the Labour party. While the distinction
is interesting, for the purpose of analytics/statistics it might be more useful to link
or merge this party with the Labour party. -->
<party id="Lab/Co-op" wikipedia_url="http://en.wikipedia.org/wiki/Labour_Co-operative" />
<!-- Not a party as such, but the page accurately describes the notion of an independent politician,
i.e. one who is not the member of any political party. -->
<party id="Ind" wikipedia_url="http://en.wikipedia.org/wiki/Independent_politician" />
<!-- The following three party labels all essentially refer to the MP being an independent but with
a strong affiliation to one political party. It is likely that they vote along the same lines as
the listed party, but they don't hold the party whip and so are not forced into doing so.
Here we've linked them to the page describing an independent MP but depending upon what you
are looking to do with the data you may want to point to the affiliated party instead -->
<party id="Ind Con" wikipedia_url="http://en.wikipedia.org/wiki/Independent_politician" />
<party id="Ind Lab" wikipedia_url="http://en.wikipedia.org/wiki/Independent_politician" />
<party id="Ind UU" wikipedia_url="http://en.wikipedia.org/wiki/Independent_politician" />
<!-- The following three party labels don't actually refer to political parties at all. Instead they
refer to roles within the House of Commons that are generally viewed as non-partisan. The people
holding the roles either do not vote (except to break a tie) or are elected careful to ensure that
their votes cancel out and so would not affect the outcome. The speaker is technically an independent
MP whereas the others can still hold a party affiliation -->
<party id="SPK" wikipedia_url="http://en.wikipedia.org/wiki/Speaker_of_the_House_of_Commons_(United_Kingdom)" />
<party id="DCWM" wikipedia_url="http://en.wikipedia.org/wiki/Chairman_of_Ways_and_Means" />
<party id="CWM" wikipedia_url="http://en.wikipedia.org/wiki/Chairman_of_Ways_and_Means" />
</publicwhip>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment