A blog about things that interest me, politics, news, media, architecture, development, environment, local history, secularism, web, dublin ireland, tara

Contact me at expectationlost@gmail.com
Showing posts with label timeline. Show all posts
Showing posts with label timeline. Show all posts

Wednesday, 13 October 2010

Government aircraft travel of Irish ministers 2010 exhibited, mapped, timelined, listed and editable

This screen shot shows an exhibit of Irish Government Ministers travel on Government aircraft in 2010 using this data via Ken Foxe's FOI's

I made the 2008 and 2009 travel exhibits last year when Ken Foxe put up the Freedom of Information requests of the Ministers Air Travel it hasn't got many views although I haven't promoted it a lot, but it didn't get as much notice or use as I hoped,I thought it could be a prototype for visual data journalism in Ireland I'm not sure of displayed entirely correctly or usefully for people but the one thing that was incomplete is the purpose of the visits, its unfair to show the travel without context of why they travelled, I should have spent as much as much time searching for that information, it takes a lot of work to go find the reason for the trip, even when the St Patrick's day ministerial travel was put out it was only one line of information they gave out to news organisations to explain what the ministers were doing when the flew around the world for March 17th. I couldn't hope to find details of every last trip myself and left it to other people to help find it, but its been difficult to find a quick and easy way to allow people add info to the Exhibit on the web page itself as opposed the google doc.

Its pity there no way to batch search, so I could quickly find why Mary Harney was in Helsinki in 2009 and Michael Martin went to New York in July 2010, although google Timeline has been useful Brian Cowen New York

If there was a way to search for trip keywords and return the top and allow people 1 click to confirm the relevant result? To gamify data correction. This hasn't been possible with google docs, but maybe possible with google apps. The only place I've seen something like that is Freebase's, acre apps like matchmaker

They could drown you in information but they don't? Government communications is still stuck in the notion of giving info to the press rather then the public, or its hard to find on their websites, although merrionstreet.ie may now make it easier to find information on the government. I need regular engaging posts to get links that's hard to do with old information thats incomplete, I guess that's where the actual journalism of the Sunday Tribune's Ken Foxe's comes in. I could suggest that the amount of trips and therefore the costs has reduced significantly from 2008 to 2010, although Im missing the data from the last months of 2009 and 2010, so I can't compare definitively as yet.

The source
Ken Foxe of the Sunday Tribune has been requesting information (FOIs) about government minister's travel and particularity noticed the excessively costly travel arrangements of John O'Donoghue the Ceann Comhairle (also when he was Minister for Tourism). Because of his and others journalism and rather then justify the costs he resigned as chair of the Irish house of parliament (Dail) in October 2009.

The change
Ken Foxe in a very unusual move for a professional journalist has shared the raw information he got in his FOI's with the public. The information from the Ministerial Air Transport Service is voluminous so with more eyes and perhaps my exhibit of the information in a more visual and manipulatable manner we can comprehend more of what politicians are doing with government resources. He used FOI'd government aircraft travel data to write ...Living on our jet plane, at a cost of €10.6m (18 Oct 2009, Sunday Tribune).

TRANSPORTING government ministers aboard the government jet over the past four years has cost the taxpayer more than €10.6 million.

Figures from the Department of Defence show that the €7,890-an-hour Gulfstream IV jet has been in use for 1,214 hours since the beginning of 2006. The government's Learjet – the running costs of which now come in at almost €3,000 an hour – has been in the air for 826 hours at a cost of €1.89 million.

...continue reading at tribune.ie

Ken's FOI data
Using the spreadsheets he then re-published Ken Foxe's Gov aircraft use FOI's eg. Ministers Air Travel - 2010 Jan - Oct (Scribd doc).

Mats Stats 2010 Up to 30 Sept 2010 (2)

My Data
I rearranged it into this google doc file with labels so that the Exhibit script can read it as JSON. How to make an exhibit from data fed directly from a Google Spreadsheet


Use Define groupings and calculations to calculate personal totals
Used Batch geocode for the locations and Notepad ++ and jEdit some basic excel/google spreadsheet macros and functions. And converting dates to the right format.

Made with Exhibit from MIT which...

Exhibit enables you to create html pages with dynamic exhibits of data collections without resorting to complex database and server-side technologies. The collections can be searched and browsed using faceted browsing. Assorted views are provided including Timelines, tiles, maps, and more.

I modified the Presidents Births and Death example of which you can see it's simple JSON file. You can use MIT's Babel to convert your data to JSON or XML (create live XML with editgrid.com) or any google spreadsheets form. The exhibit
You can pick out any element or facet of the info from the list on the left, the central tag cloud, the timeline, map or Flight time slider below the map, deselect it by un-checking on the sidebar list or use your browser's back button. You can zoom into the map under Ireland or Europe or view the Details of the trips in a table.

Your help
I need to add the purpose of the trip and a contemporaneous news article to give them fair context. Anyone can help me to do that by going to the google spreadsheet and editing the 'purposeoftrip' or 'contexturl' and 'urllabel' columns for each row/trip. I also need fill in the unnamed Ministers of State in the person column.If there is a another way to arrange the data to make it more comprehendable by people please suggest it.

Added paths so you can see the routes was easier then i thought using werelate.org coder additions and added to my own, didn't even have to run it locally polylines extension of exhibit made by www.werelate.org code changes

To do

I'm also worked on a politicians constituency map and TD exhibit

Snout in the the Trough
Ken Foxe has written a book called Snout in the the Troughbased on his Tribune articles and previously unpublished research and FOI's. I bought it and am reading it by the index, I haven't read much of it yet but it seems to be mostly a exhaustive description of recent political expenses, it may be better used as index reference then to be read front to back. I disappointed he didn't go more behind the scenes into the civil service part in the carrying out the privileged operations of the government but I guess its up to the politicians to take the lead in use and reform, though I still think he could have gone into the operation in more detail on this. When I got the book I went straight to the issue of the london embassy car hire practice, politics.ie gets a mention in the book, or alteast via Gavin Sheridan..., who said posting a link to his thestory site and the detailed expenses document from his FOI work here helped raise the issue beyond discussion and into the national daily papers. Ken foxe wrote...

Tens of thousands of euros had been paid to a London-based chaffeur company Cartel Limousines. The costs seemed at times incredibly high often more then £1400 per day The owner of the firm was Terry Gallgher, the son of the late Fianna Fail Minister Denis Gallagher. The anonymous whispers of the internet forums screamed crony-ism but the reality was somewhat different. Terry Gallgher's firm had been doing business with the Irish Embassy in London for two decades during a series of governments, including Fine Gael led administrations.
disappointed with the view taken, he should know that establishment cronyism goes beyond party politics, the civil service will favour the establishment across parties and allow for such costly practices to go on for years untackled. The book spends most of first half detailing the exposure of John O'Donoghue's excessive spending and of the other ministers who also overspent but eventual resignation of the Ceann Chomhairle overshadowed the expenses of all members of the Dail and their resistance to reform and the resignation of Tom O'Higgins who was supposed to in charge of reform, the eventual reform when it came made things even more opaque

Sunday, 5 September 2010

Dublin Bay Coastline Google Timeline Map

Click through to google earth plugin view
One of many half done things, should I finish it give it labels etc.


2013 update
spreadsheet of sources for dublin bay coastline
looking at this again to see if i can find a tool that put this much info on screen.
things that don't quite work Bridges time line

ver2
Dublin Bay coast polygon timeline


using qgis+time manager plugin and mapstory http://mapstory.org/maps/507/ http://mapstory.org/maps/508/ unfortunatly neither display info before 1900!...?



Dublin Bridges over Liffey by year

Saturday, 27 February 2010

Irish Dail TDs, members of Ireland's parliament information exhibited, mapped, charted, listed and editable.

This screen shot shows how I have used Simile Exhibit Widget to display Ireland's 166 Dáil TD's, members of Ireland's parliament, information exhibited, mapped, charted, listed and editable.Using information I gathered on this google spreadsheet and having geo-coded their constituency_offices_address' and used that constituency spreadsheet as basis to show information about them on a map of Ireland on top of polygons of Dáil constituencies.

Made with Exhibit from MIT which...

Exhibit enables you to create html pages with dynamic exhibits of data collections without resorting to complex database and server-side technologies. The collections can be searched and browsed using faceted browsing. Assorted views are provided including Timelines, tiles, maps, and more.

I have been very impressed with MIT exhibit, there is a whole suite of systems for displaying large amounts of data simply and lightly. Though its a fair few years old and isn't being updated any more I wasn't sure whether it was worth pursuing and using to create my Irish Politics displays but I haven't seem anything as impressive and easy to adapt for a copy and paste coder like me. Looking around for visualisations, faceted search (which is usually associated with semantic web) and mapping systems, I haven't seen any better. The original creator of Exhibit David Huynh has gone on to work on freebase which hopes to automatically gather and similarly display data,(mainly from wikipedia). Try Dipty for timelines by themselves also. It helps to be able to run it off MIT servers, running it all of your system takes a little bit of changing of calls within the scripts.

Still to do
I need to reduce the heaviness of the page, by removing script from the main html page and putting it in includes, and seeing how to reduce calls by putting the whole system on my host rather then calling to the MIT.

Corrections, for instance do you know where in the town the constituency office is?, go to maps.google.com centre over it then take the latitude and longitude from the link, double check by pasting those coorindates back into the google maps search and then change in the TD spreadsheet and leave a comment on the cell too.

Im looking for medium detail file of polygon data of Dáil Constituencies. In KML or geojson format. I have just gotten an Irish counties KML and traced the maps available with the difference between the counties and constituencies. The .json files is only 1.5mb with each of the 42 constituencies polygon being around a 1000 coordinates, but this is too much and causes a slow script warning in IE.

You can use exhibit with in a semantic mediawiki install, or simpler table wibbit version. You can embed exhibit and timelines in wordpress using Datapress or Drupal once you converted some data to static json file. .json file example with Babel.

The best part of Exhibit is using faceted sidebar menus to display lots of categories of data and combinations of data. And being able to call that from google spreadsheets which you can leave open for editing and correction.

You can pick out any element or facet of the info from the list on the left, click on map or sliders, deselect it by un-checking on the sidebar list or use your browser's back button. You click on any icon to get an info bubble on that TD. You can zoom into the map by clicking on the constituencies map on the right or turn off the constituency polygons below, you can click any of the panels at the top to show, charts and voting maps, look at list of information on the TDs or see all the data on them.

I have made panels showing

Irish TDs • Dublin • Percent Vote • Expenses vs. Votes • Parties • FF TDs • FG TDs • Labour TDs • GP TDs • SF TDs • Ind TDs • Constituencies • Votes • expenses • Donations • Donors • Elections • Travel Details • TD Details • Contact • Position • All Data
which you can combine with the sliders
Terms - Age - Distance from Dail - Percent Vote - Gender

can you think of any more ways to display the data?

Exhibit
MIT Exhibit
I modified the Presidents Births and Death example of which you can see it's simple JSON file. You can use MIT's Babel to convert your data to JSON or XML (create live XML with editgrid.com) or any exhibit friendly form.

I rearranged my information into this google doc file with {labels} so that the Exhibit script can read it as JSON. How to make an exhibit from data fed directly from a Google Spreadsheet You copy code from the examples and Exhibit wiki and add panels that are coded like this

 ex:role="exhibit-view"   id="map1"  ex:collectionID="bothcollection2"  
   ex:viewClass="Exhibit.MapView"
   ex:label="Irish TDs"
   ex:eventlabel=".td"
   ex:size="large"
   ex:zoom="7"
   ex:mapHeight="600"
   ex:center="53.45,-8.0"
   ex:overviewControl="true"
   ex:showSummary="true"
   ex:latlng=".latlng"
   ex:polygon=".constpoly"
   ex:pin="false"
   ex:borderOpacity="1.0"
   ex:borderWidth="1"
   ex:borderColor="purple"
   ex:opacity="0.0"
   ex:showToolbox="false"
   ex:icon=".imageURL"
    
   
...calling the named columns from the google spreadsheets.

Description of how I made the government travel exhibit.

I have used more of the Exhibit extensions, with more maps, bar charts, scatter plots, polygons, and more sliders, gradients and icons,.. copying these example exhibits

and after a lot of searching through the simile mailing list.

Information
I have geo-coded the constituency_offices_address' of the 166 TDs and used that as basis to show information about them on map of Ireland with polygons of constituencies.

Polygons
Adding polygons was major extension from my previous exhibit you can use this version exhibit babel to help you convert kml and other formats to geojson. I adapted the creator David Huynh's election 2008 example and polylines example.
The coder behind werelate.org has created some extensions exhibit pedi maps to make connection icons on the map.

Timelines
I've created a time line of when the currents TDs were first elected. The time line extension is part of its own Simile timeline system which can get more info on how to use on its wiki. Although its not easy to show the times TDs didn't get elected and then returned a following election. (to stop and start the timeline on the same line with the same person). So for the moment it does not show that and goes straight first election to most recent.

Collections and Types
I had to change to having multiple collections in this exhibit to call the types and collections 166 TDS in one spreadsheet and 42 constituency polygons and associated info in another spreadsheet. Thankfully David Huynh provided the code to call from one the other or both collections in the mailing list. I'm not sure if can write code to add a third one (partys).

The Data
Google doc JSON TD editable spreadsheet.
Google doc JSON Constituency editable spreadsheet.
Google doc JSON Party editable spreadsheet.

Sources Constituency Profiles
TDs info from Oireachtas.ie
Wikipedia
electionsireland
Oireacthas.ie 2007 Results
SIPO
The Story

20 TDs example of information

Information categories most of which you can select in any combination.

json categoryexplanation
{label}don't edit
{td}don't edit
{person}person
{type}type
{constituencyofficeaddress}constituency office address
{street}street
{city}city
{county}county
{co}county code
{party}party
{tdconstituency}td constituency
{donations}donations
{seat}seat
{electorate}electorate
{validvote}validvote
{firstprefvotes}firstprefvotes
{percentcalcvote}percentcalcvote
{percentvote}percentvote
{partyvote}partyvote
{expenses}expenses
{party}party
{donorlatlng}donorlatlng
{labourlatlng}if you replace latlng replace this
{fflatlng}if you replace latlng replace this
{fglatlng}if you replace latlng replace this
{gplatlng}if you replace latlng replace this
{sflatlng}if you replace latlng replace this
{indlatlng}if you replace latlng replace this
{distance}distance
{lat}if you replace latlng replace this
{lng}if you replace latlng replace this
{latlng}constituency office coorindate approx
{LHlatlng}Leinster House latlng
{distanceC}distance from leinster house
{constlatlng}center of constituency
{zoom}zoom to constituency
{nicestartdate}nicestartdate first elected
{start}start first elected
{election}year election
{latestStart}latestStart
{earliestEnd}earliestEnd
{now}now
{terms}terms
{yearsofservice}yearsofservice
{event}event
{constphone}constphone
{end}end
{imageURL}imageURL
{partywebsite}party website
{email}email
{website}personal website
{electiontype}election type
{istd}istd
{wikiurl}wikiurl
{age}age
{gender}gender
{gov}gov
{position}position
{spokepersonissue}spokepers on issue
{committee}committee

Constituencies

json categoryexplanation
{id}don't edit
{label}don't edit
{type}don't edit
{seats}seats
{population2006}population2006
{electorate}electorate
{validvote}validvote
{partyvote}partyvote
{opac}opac
{labour-vote}labour-vote
{ff-vote}ff-vote
{fg-vote}fg-vote
{sf-vote}sf-vote
{gp-vote}gp-vote
{pd-vote}pd-vote
{ind-vote}ind-vote
{tdsofc}tds of consituency
{constlat}constlat
{constlng}constlng
{constlatlng}constlatlng
{area}area
{ctagrade}ctagrade
{ctaaallowance}ctaaallowance
{zoom}zoom
{election}election
{wikiURL}wikiURL
{lastelectiontype}lastelectiontype
{constituency2}constituency2
{constituencyprofile}constituencyprofile
{vote-for}vote-for
{vote-forts}vote-forts

Parties
Number of TDs
Vote percentage by party
party vote
party
swing
logoURL
tds of party
party url
partywikiURL

To do Make a CSS highlighting image map
Automatically geocode the donors for each TD
Search doesn't work
make it easier to edit, ie. add wiki backend

Sunday, 1 November 2009

Government aircraft travel of Irish ministers 2009 exhibited, mapped, timelined, listed and editable.

This screen shot shows an exhibit of Irish Government Ministers travel on Government aircraft in 2009 using this data using Ken Foxe's Freedom Of Information Requests.

2008 finished

Made with Exhibit from MIT which...

Exhibit enables you to create html pages with dynamic exhibits of data collections without resorting to complex database and server-side technologies. The collections can be searched and browsed using faceted browsing. Assorted views are provided including Timelines, tiles, maps, and more.
You can copy examples from the Exhibit wiki and simile mailing list.

                        ex:role="view"
                        ex:viewClass="Map"
                        ex:label="Birth Places with Photos"
                        ex:latlng=".birthLatLng"
                        ex:center="38.479394673276445, -115.361328125"
                        ex:zoom="3"
                        ex:bubbleWidth="200"
                        ex:icon=".imageURL"
                        ex:shapeWidth="60"
                        ex:shapeHeight="60"
                        ex:selectCoordinator="president"
                        

...calling the named columns from the google spreadsheets.

The source
Ken Foxe of the Sunday Tribune has been requesting information (FOIs) about government minister's travel and particularity noticed the excessively costly travel arrangements of John O'Donoghue the Ceann Comhairle (also when he was Minister for Tourism). Because of his and others journalism and rather then justify the costs he resigned as chair of the Irish house of parliament (Dail) in October 2009.

The change
Ken Foxe in a very unusual move for a professional journalist has shared the raw information he got in his FOI's with the public. The information from the Ministerial Air Transport Service is voluminous so with more eyes and perhaps my exhibit of the information in a more visual and manipulatable manner we can comprehend more of what politicians are doing with our government resources. He used FOI'd government aircraft travel data to write ...Living on our jet plane, at a cost of €10.6m (18 Oct 2009, Sunday Tribune).

TRANSPORTING government ministers aboard the government jet over the past four years has cost the taxpayer more than €10.6 million.

Figures from the Department of Defence show that the €7,890-an-hour Gulfstream IV jet has been in use for 1,214 hours since the beginning of 2006. The government's Learjet – the running costs of which now come in at almost €3,000 an hour – has been in the air for 826 hours at a cost of €1.89 million.

...continue reading at tribune.ie

MIT Exhibit
I modified the Presidents Births and Death example of which you can see it's simple JSON file. You can use MIT's Babel to convert your data to JSON or XML (create live XML with editgrid.com) or any exhibit friendly form.

Ken's FOI data
Using the spreadsheets he then re-published Ken Foxe's Gov aircraft use FOI's eg. Ministers Air Travel - 2009 Jan - Oct (Scribd doc).

Mats - 2009 Jan - Oct

My Data
I rearranged it into this google doc file with labels so that the Exhibit script can read it as JSON. How to make an exhibit from data fed directly from a Google Spreadsheet


Use Define groupings and calculations to calculate personal totals
Used Batch geocode for the locations and Notepad ++ and jEdit some basic excel/google spreadsheet macros and functions. And converting dates to the right format.

The exhibit
You can pick out any element or facet of the info from the list on the left, the central tag cloud, the timeline, map or Flight time slider below the map, deselect it by un-checking on the sidebar list or use your browser's back button. You can zoom into the map under Ireland or Europe or view the Details of the trips in a table.

Your help
I need to add the purpose of the trip and a contemporaneous news article to give them fair context. Anyone can help me to do that by going to the google spreadsheet and editing the 'purposeoftrip' or 'contexturl' and 'urllabel' columns for each row/trip. I also need fill in the unnamed Ministers of State in the person column.If there is a another way to arrange the data to make it more comprehendable by people please suggest it.

I need to display the helicopter trips better.Working on it here to add polylines extension of exhibit made by www.werelate.org code changes

Its pity there no way to batch search, so I could quickly find why Mary Harney was in Helsinki and Michael maritin went to New York in July.

Want to do 2008
2008 MATS spreadsheet FOI'd by Ken Foxe
via scribd.
JSON base file
MATS 2008 Exhibit

To do
I need to figure out functions to add up totals...

I'm also working on a politicians constituency map and TD/Dail diary similar to the above.

The Story
A couple of young (ish) journalists have set up thestory.ie to gather and release data about Irish politics for crowd sourcing and crowd reviewing. Gavinblog and Mark Coughlan have, as have I, been inspired by the work of projects like the UK's mysociety.org in opening up shared data resources for citizen journalism. They are working towards creating an Irish version of whatdotheyknow.com, which makes it easier to request and share 'Freedom of Information' requests. Another MySociety project created a more accessible and manipulatable parliamentary record called Theyworkforyou, programmer John Handalaar has already created a version called kildarestreet.com for the Irish parliamentary debates.

The visualisations
I have taken some of thestory's spreadsheets of data and made visualisations (I'll describe how in another blog post).

A visualisation of donations to parties by-industry using Tree Map's via Manyeyes and Google Docs. Visualised Liam Carroll's Corporate Structure, a more dynamic ZVTM version of LC companies
Minister for Finance for Ireland Brian Lenihan's Diary during the financial crisis, in google calendar form, in SIMILE WIDGET timeline form.

APIs, feeds and linked data
I had been using some of the above methods to follow the Howth Malahide council elections and hope improve with use of RDF and XML and geocoded feeds. With free collaboration and document sharing sites, RDF and XML and feeds and API's its becoming easier for non-programmers to serve, slice and link data.

Links
Another Irish Journalist Mark Tighe is releasing data for his Sunday times articles
Guardian Open Platform.
Batch geocoding addresses.
Sunlight Labs the tech development of open government US.
The sunlight centre for open politics UK.
Zoho: Document collaboration site To do
The coder behind werelate.org has created some extensions exhibit pedi maps to make connection icons on the map. I think you havve to put the whole system on your own host, which when I manage to add it I can use to connect flight.