<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en-us" xmlns="http://www.w3.org/2005/Atom"><title>Simon Willison's Weblog: datastore</title><link href="http://simonwillison.net/" rel="alternate"/><link href="http://simonwillison.net/tags/datastore.atom" rel="self"/><id>http://simonwillison.net/</id><updated>2009-06-12T18:06:05+00:00</updated><author><name>Simon Willison</name></author><entry><title>Dealing with election results data</title><link href="https://simonwillison.net/2009/Jun/12/hublog/#atom-tag" rel="alternate"/><published>2009-06-12T18:06:05+00:00</published><updated>2009-06-12T18:06:05+00:00</updated><id>https://simonwillison.net/2009/Jun/12/hublog/#atom-tag</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="http://hublog.hubmed.org/archives/001862.html"&gt;Dealing with election results data&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
Alf Eaton loaded the Guardian’s European election results spreadsheet in to Google’s new Fusion Tables tool.


    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/alf-eaton"&gt;alf-eaton&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/datablog"&gt;datablog&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/datastore"&gt;datastore&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/elections"&gt;elections&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/fusiontables"&gt;fusiontables&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/google"&gt;google&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/guardian"&gt;guardian&lt;/a&gt;&lt;/p&gt;



</summary><category term="alf-eaton"/><category term="datablog"/><category term="datastore"/><category term="elections"/><category term="fusiontables"/><category term="google"/><category term="guardian"/></entry><entry><title>Exactly how well did the BNP do where you live?</title><link href="https://simonwillison.net/2009/Jun/11/exactly/#atom-tag" rel="alternate"/><published>2009-06-11T11:37:56+00:00</published><updated>2009-06-11T11:37:56+00:00</updated><id>https://simonwillison.net/2009/Jun/11/exactly/#atom-tag</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="http://www.guardian.co.uk/news/datablog/table/2009/jun/09/european-elections-elections-2009"&gt;Exactly how well did the BNP do where you live?&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
Guardian journalists spent a day and a half calling round different local authorities to get a proper breakdown of the European election results (which are only officially published in aggregate) and published the results as a spreadsheet on the Datablog.


    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/bnp"&gt;bnp&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/datablog"&gt;datablog&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/datastore"&gt;datastore&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/elections"&gt;elections&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/guardian"&gt;guardian&lt;/a&gt;&lt;/p&gt;



</summary><category term="bnp"/><category term="datablog"/><category term="datastore"/><category term="elections"/><category term="guardian"/></entry><entry><title>#DataJourn part 1: a new conversation</title><link href="https://simonwillison.net/2009/Apr/9/datajourn/#atom-tag" rel="alternate"/><published>2009-04-09T10:57:03+00:00</published><updated>2009-04-09T10:57:03+00:00</updated><id>https://simonwillison.net/2009/Apr/9/datajourn/#atom-tag</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="http://blogs.journalism.co.uk/editors/2009/04/08/datajourn-part-1-a-new-conversation-please-re-tweet/"&gt;#DataJourn part 1: a new conversation&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
Journalism.co.uk report on the first instance of a Guardian story that was driven by an external developer’s work with data originally released on our Datablog.


    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/data-journalism"&gt;data-journalism&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/datablog"&gt;datablog&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/datastore"&gt;datastore&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/guardian"&gt;guardian&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/journalism"&gt;journalism&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/openplatform"&gt;openplatform&lt;/a&gt;&lt;/p&gt;



</summary><category term="data-journalism"/><category term="datablog"/><category term="datastore"/><category term="guardian"/><category term="journalism"/><category term="openplatform"/></entry><entry><title>Automating PowerPoint with Python</title><link href="https://simonwillison.net/2009/Apr/3/automating/#atom-tag" rel="alternate"/><published>2009-04-03T15:13:23+00:00</published><updated>2009-04-03T15:13:23+00:00</updated><id>https://simonwillison.net/2009/Apr/3/automating/#atom-tag</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="http://www.s-anand.net/blog/automating-powerpoint-with-python/"&gt;Automating PowerPoint with Python&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
Useful tutorial on using ActivePython’s win32com module to automate PowerPoint. The example code pulls in the top 50 banks by assets from the Guardian Data Store and generates a treemap using PowerPoint’s shape drawing primitives.


    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/activepython"&gt;activepython&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/datastore"&gt;datastore&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/guardian"&gt;guardian&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/powerpoint"&gt;powerpoint&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/python"&gt;python&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/treemap"&gt;treemap&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/visualisation"&gt;visualisation&lt;/a&gt;&lt;/p&gt;



</summary><category term="activepython"/><category term="datastore"/><category term="guardian"/><category term="powerpoint"/><category term="python"/><category term="treemap"/><category term="visualisation"/></entry><entry><title>UK Guardian Data + ManyEyes = ISAF Troops Contribution Story</title><link href="https://simonwillison.net/2009/Apr/3/datalibreca/#atom-tag" rel="alternate"/><published>2009-04-03T14:44:06+00:00</published><updated>2009-04-03T14:44:06+00:00</updated><id>https://simonwillison.net/2009/Apr/3/datalibreca/#atom-tag</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="http://datalibre.ca/2009/03/28/uk-guardian-data-manyeyes-isaf-troops-contribution-story/"&gt;UK Guardian Data + ManyEyes = ISAF Troops Contribution Story&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
Including a heat map showing countries that are contributing the most troops to Afghanistan.


    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/afghanistan"&gt;afghanistan&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/datastore"&gt;datastore&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/guardian"&gt;guardian&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/heatmap"&gt;heatmap&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/manyeyes"&gt;manyeyes&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/military"&gt;military&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/visualisation"&gt;visualisation&lt;/a&gt;&lt;/p&gt;



</summary><category term="afghanistan"/><category term="datastore"/><category term="guardian"/><category term="heatmap"/><category term="manyeyes"/><category term="military"/><category term="visualisation"/></entry><entry><title>Get our full university data</title><link href="https://simonwillison.net/2009/Mar/11/university/#atom-tag" rel="alternate"/><published>2009-03-11T13:52:27+00:00</published><updated>2009-03-11T13:52:27+00:00</updated><id>https://simonwillison.net/2009/Mar/11/university/#atom-tag</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="http://www.guardian.co.uk/news/datablog/2009/mar/10/universityguide"&gt;Get our full university data&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
“The Guardian’s university rankings are the most visited part of Education Guardian”—and now they’re available as a spreadsheet.


    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/datastore"&gt;datastore&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/guardian"&gt;guardian&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/leaguetables"&gt;leaguetables&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/openplatform"&gt;openplatform&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/university"&gt;university&lt;/a&gt;&lt;/p&gt;



</summary><category term="datastore"/><category term="guardian"/><category term="leaguetables"/><category term="openplatform"/><category term="university"/></entry><entry><title>A few notes on the Guardian Open Platform</title><link href="https://simonwillison.net/2009/Mar/10/openplatform/#atom-tag" rel="alternate"/><published>2009-03-10T14:28:39+00:00</published><updated>2009-03-10T14:28:39+00:00</updated><id>https://simonwillison.net/2009/Mar/10/openplatform/#atom-tag</id><summary type="html">
    &lt;p&gt;This morning we launched the &lt;a href="http://www.guardian.co.uk/open-platform"&gt;Guardian Open Platform&lt;/a&gt; at a well attended event in our new offices in &lt;a href="http://www.kingsplace.co.uk/"&gt;Kings Place&lt;/a&gt;. This is one of the main projects I've been helping out with since joining the Guardian last year, and it's fantastic to finally have it out in the open.&lt;/p&gt;

&lt;p&gt;There are two components to the launch today: the Content API and the Data Store. I'll describe the Data Store first as it deserves not to get buried in the discussion about its larger cousin.&lt;/p&gt;

&lt;h4&gt;The Data Store&lt;/h4&gt;

&lt;p&gt;&lt;a href="http://www.guardian.co.uk/profile/simonrogers"&gt;Simon Rogers&lt;/a&gt; is the Guardian news editor who is principally responsible for gathering data about the world. If you ever see an infographic in the paper, the chances are Simon had a hand in researching the data for it. His delicious feed is a &lt;a href="http://delicious.com/smfrogers"&gt;positive gold mine&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;As of today, a sizeable portion the data he collects for the newspaper will also be published online. As a starting point, we're publishing over &lt;a href="http://www.guardian.co.uk/data-store"&gt;80 data sets&lt;/a&gt;, all using Google Spreadsheets which means it's all accessible through the &lt;a href="http://code.google.com/apis/spreadsheets/overview.html"&gt;Spreadsheets Data API&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Here's Simon's take on it, from &lt;a href="http://www.guardian.co.uk/news/datablog/2009/mar/10/blogpost1"&gt;Welcome to the Datablog&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote cite="http://www.guardian.co.uk/news/datablog/2009/mar/10/blogpost1"&gt;&lt;p&gt;Everyday we work with datasets from around the world. We have had to check this data and make sure it's the best we can get, from the most credible sources. But then it lives for the moment of the paper's publication and afterward disappears into a hard drive, rarely to emerge again before updating a year later.&lt;/p&gt;

&lt;p&gt;So, together with its companion site, the Data Store – a directory of all the stats we post – we are opening up that data for everyone. Whenever we come across something interesting or relevant or useful, we'll post it up here and let you know what we're planning to do with it.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;It's worth spending quite a while digging around the data. Most sets come with a full description, including where the data was sourced from. New data sets will be announced &lt;a href="http://www.guardian.co.uk/news/datablog"&gt;on the Datablog&lt;/a&gt;, which is cleverly subtitled "Facts are sacred".&lt;/p&gt;

&lt;h4&gt;The Content API&lt;/h4&gt;

&lt;p&gt;&lt;a href="http://api.guardianapis.com/docs/"&gt;The Content API&lt;/a&gt; provides REST-ish access to over a million items of content, mostly from the last decade but with a few gems that are &lt;a href="http://www.guardian.co.uk/world/1944/aug/26/france.secondworldwar"&gt;a little bit older&lt;/a&gt;. Various types of content are available - article is the most common, but you can grab information (though not necessarily content) about audio, video, galleries and more. You can retrieve 50 items at a time, and pagination is unlimited (provided you stay below the API's rate limit).&lt;/p&gt;

&lt;p&gt;Articles are provided with their full body content, though this does not currently include any HTML tags (a known issue). It's a good idea to review &lt;a href="http://www.guardian.co.uk/open-platform/terms-and-conditions"&gt;our terms and conditions&lt;/a&gt;, but you should know that if you opt to republish our article bodies on your site we may ask you to include our ads alongside our content in the future.&lt;/p&gt;

&lt;p&gt;We serve 15 minute HTTP cache headers, but you are allowed to store our content for up to 24 hours. You really, really don't want to store content for longer than that, as in addition to violating our T&amp;amp;Cs you might find yourself inadvertently publishing an article that has been retracted for legal reasons. UK libel laws can be pretty scary.&lt;/p&gt;

&lt;p&gt;In addition to regular search, you can also filter our content using tags. Tags are a core aspect of the Guardian's &lt;a href="http://www.guardian.co.uk/help/insideguardian+series/an-abc-of-r2"&gt;R2 platform&lt;/a&gt;, being used for keywords, contributors, "series" (used to implement blogs), content types and more. Every item returned by the API includes tags, and the tags can be used to further filter the results.&lt;/p&gt;

&lt;p&gt;We also return a list of filters at the bottom of each page of search results showing the tags that could be used to filter that result set, ordered by the number of results (you may have seen this feature referred to as faceted search or guided navigation). Handy tip: you can use ?count=0 in your search API key to turn off results entirely and just get back the filters section. The race is on to be first to release a tag relationship browser based on this feature.&lt;/p&gt;

&lt;p&gt;API responses can be had in custom XML, JSON or Atom. The Atom format is the least mature at the moment, and we'd welcome suggestions for improving it from the community.&lt;/p&gt;

&lt;p&gt;I released &lt;a href="http://code.google.com/p/openplatform-python/"&gt;a Python client library&lt;/a&gt; for the API this morning, and we also have libraries for &lt;a href="http://code.google.com/p/openplatform-ruby/"&gt;Ruby&lt;/a&gt;, &lt;a href="http://code.google.com/p/openplatform-java/"&gt;Java&lt;/a&gt; and &lt;a href="http://code.google.com/p/openplatform-php/"&gt;PHP&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;We also have an API Explorer (written in JavaScript and jQuery, hosted on the same domain as the API so that it can make Ajax requests) but you'll need an API key to try it out.&lt;/p&gt;

&lt;h4&gt;The bad news&lt;/h4&gt;

&lt;p&gt;The response to the API release has been terrific (check out what &lt;a href="http://www.tom-watson.co.uk/2009/03/guardian-open-platform/"&gt;Tom Watson&lt;/a&gt; had to say), but as a result it's likely that API key provisions will be significantly lower than the overall demand for them. Please bear with us while we work towards a more widely accessible release.&lt;/p&gt;
    
        &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/apis"&gt;apis&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/atom"&gt;atom&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/contentapi"&gt;contentapi&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/data"&gt;data&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/datastore"&gt;datastore&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/guardian"&gt;guardian&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/javascript"&gt;javascript&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/journalism"&gt;journalism&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/jquery"&gt;jquery&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/json"&gt;json&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/openplatform"&gt;openplatform&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/simon-rogers"&gt;simon-rogers&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/tom-watson"&gt;tom-watson&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/xml"&gt;xml&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/data-journalism"&gt;data-journalism&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/python"&gt;python&lt;/a&gt;&lt;/p&gt;
    

</summary><category term="apis"/><category term="atom"/><category term="contentapi"/><category term="data"/><category term="datastore"/><category term="guardian"/><category term="javascript"/><category term="journalism"/><category term="jquery"/><category term="json"/><category term="openplatform"/><category term="simon-rogers"/><category term="tom-watson"/><category term="xml"/><category term="data-journalism"/><category term="python"/></entry></feed>