<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>OUseful.Info, the blog... &#187; ukgovdata</title>
	<atom:link href="http://blog.ouseful.info/tag/ukgovdata/feed/?withoutcomments=1" rel="self" type="application/rss+xml" />
	<link>http://blog.ouseful.info</link>
	<description>Trying to find useful things to do with emerging technologies in open education</description>
	<lastBuildDate>Thu, 23 May 2013 22:38:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='blog.ouseful.info' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>OUseful.Info, the blog... &#187; ukgovdata</title>
		<link>http://blog.ouseful.info</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.ouseful.info/osd.xml" title="OUseful.Info, the blog..." />
	<atom:link rel='hub' href='http://blog.ouseful.info/?pushpress=hub'/>
		<item>
		<title>Government Spending Data Explorer</title>
		<link>http://blog.ouseful.info/2010/11/19/government-spending-data-explorer/</link>
		<comments>http://blog.ouseful.info/2010/11/19/government-spending-data-explorer/#comments</comments>
		<pubDate>Fri, 19 Nov 2010 13:00:55 +0000</pubDate>
		<dc:creator>Tony Hirst</dc:creator>
				<category><![CDATA[Data]]></category>
		<category><![CDATA[onlinejournalismblog]]></category>
		<category><![CDATA[datagovuk]]></category>
		<category><![CDATA[datastore]]></category>
		<category><![CDATA[opendata]]></category>
		<category><![CDATA[ukgovdata]]></category>
		<category><![CDATA[wdmmg]]></category>
		<category><![CDATA[wheredoesmymoneygo]]></category>

		<guid isPermaLink="false">http://blog.ouseful.info/?p=4484</guid>
		<description><![CDATA[So&#8230; the UK Gov started publishing spending data for at least those transactions over £25,0000. Lots and lots of data. So what? My take on it was to find a quick and dirty way to cobble a query interface around the data, so here&#8217;s what I spent an hour or so doing in the early [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.ouseful.info&#038;blog=325417&#038;post=4484&#038;subd=ouseful&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>So&#8230; the UK Gov started publishing spending data for at least those transactions over £25,0000. Lots and lots of data. So what? My take on it was to find a quick and dirty way to cobble a query interface around the data, so here&#8217;s what I spent an hour or so doing in the early hours of last night, and a couple of hours this morning&#8230; tinkering with a <a href="http://ouseful.open.ac.uk/datagovuk/govspending.php">Gov spending data spreadsheet explorer</a>:</p>
<p><a href="http://ouseful.open.ac.uk/datagovuk/govspending.php" title="Guardian/gov datastore explorer by psychemedia, on Flickr"><img src="http://farm5.static.flickr.com/4112/5189525132_c483afd39a.jpg" width="500" height="182" alt="Guardian/gov datastore explorer" /></a></p>
<p>The app is a minor reworking of my Guardian datastore explorer, which put some of query front end onto the Guardian Datastore&#8217;s Google spreadsheets. Once again, I&#8217;m exploiting the work of Simon Rogers and co. at the Guardian Datablog, a reusing the <a href="http://www.guardian.co.uk/news/datablog/2010/nov/19/government-spending-data?CMP=ouseful_gsdde">departmental spreadsheets they posted last night</a>. I bookmarked the spreadsheets to delicious (<a href="http://www.delicious.com/psychemedia/gdatastore_11_2010">here</a>) and use these feed to populate a spreadsheet selector:</p>
<p><a href="http://www.flickr.com/photos/psychemedia/5188985249/" title="Photo Sharing"><img src="http://farm5.static.flickr.com/4126/5188985249_bb98f620da.jpg" width="500" height="210" alt="Guardian datastore selector - gov spending data" /></a></p>
<p>When you select a spreadsheet, you can preview the column headings:</p>
<p><a href="http://www.flickr.com/photos/psychemedia/5188986563/" title="Photo Sharing"><img src="http://farm5.static.flickr.com/4103/5188986563_eb81c7f6b0.jpg" width="500" height="133" alt="Datastore explorer - preview" /></a></p>
<p>Now you can write queries on that spreadsheet as if it was a database. So for example, here are Department for Education spends over a hundred million:</p>
<p><a href="http://ouseful.open.ac.uk/datagovuk/govspending.php?run=true&amp;gsKey=tCieqjFZQ9LKQEZxEJX7IXA&amp;gqc=G%2CH%2CJ&amp;gqw=J%20%3E%20100000000&amp;gqo=J&amp;gql=&amp;gqg=&amp;dps=Education%20(DFE)" title="Photo Sharing"><img src="http://farm5.static.flickr.com/4133/5188989865_edb0cba9b9.jpg" width="500" height="175" alt="Education spend - over 100 million" /></a></p>
<p>The query is built up in part by selecting items from lists of options &#8211; though you can also enter values directly into the appropriate text boxes:</p>
<p><a href="http://ouseful.open.ac.uk/datagovuk/govspending.php?run=true&amp;gsKey=tCieqjFZQ9LKQEZxEJX7IXA&amp;gqc=G%2CH%2CJ&amp;gqw=J%20%3E%20100000000&amp;gqo=J&amp;gql=&amp;gqg=&amp;dps=Education%20(DFE)" title="Datstrore explorer - build a query by psychemedia, on Flickr"><img src="http://farm5.static.flickr.com/4108/5188992297_a6793e1949.jpg" width="500" height="315" alt="Datstrore explorer - build a query" /></a></p>
<p>You can bookmark and share queries in the datastore explorer (for example, <a href="http://ouseful.open.ac.uk/datagovuk/govspending.php?run=true&amp;gsKey=tCieqjFZQ9LKQEZxEJX7IXA&amp;gqc=G%2CH%2CJ&amp;gqw=J%20%3E%20100000000&amp;gqo=J&amp;gql=&amp;gqg=&amp;dps=Education%20(DFE)">Education spend over 100 million</a>), and also get URLs that point directly to CSV and HTML versions of the data via Google Spreadsheets.</p>
<p>Several other example queries are given at the bottom of the data explorer page.</p>
<p>For certain queries (e.g. two column ones with a label column and an amount column), you can generate charts &#8211; such as Education spends over 250 million:</p>
<p><a href="http://www.flickr.com/photos/psychemedia/5189630874/" title="Photo Sharing"><img src="http://farm5.static.flickr.com/4125/5189630874_531bc918e7.jpg" width="500" height="304" alt="Education spend - over 250 million" /></a></p>
<p>Here&#8217;s how we construct <a href="http://ouseful.open.ac.uk/datagovuk/govspending.php?run=true&amp;gsKey=tCieqjFZQ9LKQEZxEJX7IXA&amp;gqc=H%2Csum(J)&amp;gqw=J%3E250000000&amp;gqo=sum(J)&amp;gql=&amp;gqg=H&amp;dps=Education%20(DFE)">the query</a>:</p>
<p><a><img src="http://farm5.static.flickr.com/4128/5189033541_0c5e7856f6.jpg" width="500" height="317" alt="Education - query spend over 250 million" /></a></p>
<p>If you do use this app, and find some interesting queries, please bookmark them and tag them with <em>wdmmg-gde10</em>, or post a link in a comment below, along with a description of what the query is and why its interesting. I&#8217;ll try to add interesting examples to the app&#8217;s list of example queries.</p>
<p>Notes: the datastore explorer is an example of a single web page application, though it draws on several other external services &#8211; delicious for the list of spreadsheets, Google spreadsheets for the database and query engine, Google charts for the charts and styled tabular display. The <a href="https://gist.github.com/706403">code is really horrible</a> (it evolved as a series of bug fixes on bug fixes;-), but if anyone would like to run with the idea, start coding afresh maybe, and perhaps make a production version of the app, I have a few ideas I could share;-)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ouseful.wordpress.com/4484/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ouseful.wordpress.com/4484/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.ouseful.info&#038;blog=325417&#038;post=4484&#038;subd=ouseful&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.ouseful.info/2010/11/19/government-spending-data-explorer/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/abbd9f90565ce9ae4d065d93a81d8c03?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">Tony Hirst</media:title>
		</media:content>

		<media:content url="http://farm5.static.flickr.com/4112/5189525132_c483afd39a.jpg" medium="image">
			<media:title type="html">Guardian/gov datastore explorer</media:title>
		</media:content>

		<media:content url="http://farm5.static.flickr.com/4126/5188985249_bb98f620da.jpg" medium="image">
			<media:title type="html">Guardian datastore selector - gov spending data</media:title>
		</media:content>

		<media:content url="http://farm5.static.flickr.com/4103/5188986563_eb81c7f6b0.jpg" medium="image">
			<media:title type="html">Datastore explorer - preview</media:title>
		</media:content>

		<media:content url="http://farm5.static.flickr.com/4133/5188989865_edb0cba9b9.jpg" medium="image">
			<media:title type="html">Education spend - over 100 million</media:title>
		</media:content>

		<media:content url="http://farm5.static.flickr.com/4108/5188992297_a6793e1949.jpg" medium="image">
			<media:title type="html">Datstrore explorer - build a query</media:title>
		</media:content>

		<media:content url="http://farm5.static.flickr.com/4125/5189630874_531bc918e7.jpg" medium="image">
			<media:title type="html">Education spend - over 250 million</media:title>
		</media:content>

		<media:content url="http://farm5.static.flickr.com/4128/5189033541_0c5e7856f6.jpg" medium="image">
			<media:title type="html">Education - query spend over 250 million</media:title>
		</media:content>
	</item>
	</channel>
</rss>
