Skip to content

Instantly share code, notes, and snippets.

@greenwoodma
greenwoodma / ukraine-keywords.tsv
Last active June 17, 2022 13:33
keywords related to Ukraine to collect tweets for analysis
keyword added removed notes
Ukraine 20220228
Kiev 20220228
Kyiv 20220228
Chernihiv 20220228
Donetsk 20220228
Luhansk 20220228
#UkraineRussiaWar 20220228
Kharkiv 20220228
Crimea 20220228
Individual Contributor License Agreement
Adapted from http://www.apache.org/licenses/icla.txt © The Apache Software
Foundation
Thank you for your interest in GATE developed by The University of Sheffield
(The Organisation). In order to clarify the intellectual property license granted
with Contributions from any person or entity, the Organisation must have a
Contributor License Agreement ("CLA") on file that has been signed by each
Contributor, indicating agreement to the license terms below. This license is
@greenwoodma
greenwoodma / nuts1-codes.nt
Created October 14, 2016 12:36
A consistent mapping from the UK NUTS1 regions in DBpedia to their 3 letter codes
<http://dbpedia.org/resource/Scotland> <http://nesta.org.uk/property/nuts1code> "UKM" .
<http://dbpedia.org/resource/West_Midlands_(region)> <http://nesta.org.uk/property/nuts1code> "UKG" .
<http://dbpedia.org/resource/North_East_England> <http://nesta.org.uk/property/nuts1code> "UKC" .
<http://dbpedia.org/resource/Yorkshire_and_the_Humber> <http://nesta.org.uk/property/nuts1code> "UKE" .
<http://dbpedia.org/resource/North_West_England> <http://nesta.org.uk/property/nuts1code> "UKD" .
<http://dbpedia.org/resource/East_of_England> <http://nesta.org.uk/property/nuts1code> "UKH" .
<http://dbpedia.org/resource/Wales> <http://nesta.org.uk/property/nuts1code> "UKL" .
<http://dbpedia.org/resource/East_Midlands> <http://nesta.org.uk/property/nuts1code> "UKF" .
<http://dbpedia.org/resource/Northern_Ireland> <http://nesta.org.uk/property/nuts1code> "UKN" .
<http://dbpedia.org/resource/South_East_England> <http://nesta.org.uk/property/nuts1code> "UKJ" .
@greenwoodma
greenwoodma / nuts1-constituencies.nt
Created October 14, 2016 12:34
Mapping from UK Constituencies in DBpedia to the NUTS 1 Regions
<http://dbpedia.org/resource/Amber_Valley_(UK_Parliament_constituency)> <http://nesta.org.uk/property/partOf> <http://dbpedia.org/resource/East_Midlands> .
<http://dbpedia.org/resource/Ashfield_(UK_Parliament_constituency)> <http://nesta.org.uk/property/partOf> <http://dbpedia.org/resource/East_Midlands> .
<http://dbpedia.org/resource/Ashton-under-Lyne_(UK_Parliament_constituency)> <http://nesta.org.uk/property/partOf> <http://dbpedia.org/resource/North_West_England> .
<http://dbpedia.org/resource/Aylesbury_(UK_Parliament_constituency)> <http://nesta.org.uk/property/partOf> <http://dbpedia.org/resource/South_East_England> .
<http://dbpedia.org/resource/Barnsley_Central_(UK_Parliament_constituency)> <http://nesta.org.uk/property/partOf> <http://dbpedia.org/resource/Yorkshire_and_the_Humber> .
<http://dbpedia.org/resource/Barnsley_East_(UK_Parliament_constituency)> <http://nesta.org.uk/property/partOf> <http://dbpedia.org/resource/Yorkshire_and_the_Humber> .
<http://dbpedia.org/resource/Barrow_and_Furness_(UK_P
@greenwoodma
greenwoodma / member-constituencies.xml
Created March 17, 2015 17:02
Provides links between the IDs of House of Common members and Constituencies in the Public Whip dataset.
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="UTF-8"?>
<publicwhip>
<!--
The all-members.xml and all-members-2010.xml only give the name of the constituency
a member represents rather than the id of the constituency as given in constituencies.xml.
This file provides the missing link from member id to constituency id. The links
have been generated by by checking not only that the constituency name matches but that
the time period information overlaps, so as to handle the case where there is more than
@greenwoodma
greenwoodma / wikipedia-parties.xml
Last active August 29, 2015 14:16
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
@greenwoodma
greenwoodma / mp_twitter_accounts.csv
Last active September 10, 2015 10:30 — forked from iaincollins/mp_twitter_accounts.csv
A hand corrected and updated list of MP twitter accounts and DBpedia pages, produced as part of a Nesta funded project.
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
"full_name";"party";"official_post";"constituency";"twitter_handle";"twitter_user_id";"uri";"last_updated";"notes"
"Ms Diane Abbott MP";"Labour";;"Hackney North and Stoke Newington";"https://twitter.com/HackneyAbbott";153810216;"http://dbpedia.org/resource/Diane_Abbott";"2014-10-18T10:04:00+01:00";
"Debbie Abrahams MP";"Labour";;"Oldham East and Saddleworth";"https://twitter.com/Debbie_abrahams";225857392;"http://dbpedia.org/resource/Debbie_Abrahams";"2014-10-18T10:04:00+01:00";
"Nigel Adams MP";"Conservative";;"Selby and Ainsty";"TWITTER_UNKNOWN";-1;"http://dbpedia.org/resource/Nigel_Adams";"2014-10-18T10:04:00+01:00";
"Adam Afriyie MP";"Conservative";;"Windsor";"https://twitter.com/AdamAfriyie";22031058;"http://dbpedia.org/resource/Adam_Afriyie";"2014-10-18T10:04:00+01:00";
"Rt Hon Bob Ainsworth MP";"Labour";;"Coventry North East";"TWITTER_UNKNOWN";-1;"http://dbpedia.org/resource/Bob_Ainsworth";"2014-10-18T10:04:00+01:00";
"Peter Aldous MP";"Conservative";;"Waveney";"https://twitter.com/peter_aldous";255998