Pezholio

Spending Data - Beyond the CSV

| Comments

It’s been a while since my last post about local spending data, and, since then, our finance team have been busy beavering away behind the scenes to get our own spending data out of the council’s finance systems.

However, from the outset, I was really pleased that both our finance people and our chief exec wanted to go beyond just whacking a CSV (or worse, a PDF) on the internet and show our commitment to transparency by putting the data on the web in an easy, human readable format.

Armed with a few CSVs, a Macbook Pro and some server space, I was put to task, and the the results can be seen here. Users can navigate by the various parts of the cost code (called “Department”, “Type” and “Subject”), as well as by month and supplier.

As well as human readable formats, almost every view of the data has an XML, JSON, CSV and RDF equivalent, achieved either by putting the relevant extension on the end, or through content negotiation.

The user interface had been heavily influenced by OpenlyLocal (after all, if it ain’t broke, why fix it?) and, as well as feeding our data in to OpenlyLocal, we also take a little bit away. When data is imported into OpenlyLocal, the system does some clever data matching to match company names to real life entities on Open Corporates. We have a batch job that takes that information and puts it on our spending system - you can see an example here. This is an example of how open data cuts both ways, by sharing our data, we can improve it.

Also, thanks to the wonderful people at Talis, we have our RDF data in a triple store, so it can be queried, both through SPARQL queries and a free text search, making the data even more useful from the off. I’m hoping to put together a tutorial in SPARQL soon, both here and on the Lichfield District Council website, which should hopefully demystify the process a bit more.

Finally, I’m hoping to open source the code (once it’s tidied up a bit), so of you’re from a local authority and want to make your spending data a little more clear to Joe Public, then you can benefit from my work too!

Comments