For open data to be useful, it needs to have meaning. Meaning comes from identifying each piece of data with a well-defined dictionary of words, or what is called a vocabulary or even ontology. But, to really make the open data useful, it needs to have shared meaning. The vocabulary needs to be shared between your data and other similar data.
In other words, you don't want to create your own vocabulary for everything. Instead, you need to find published vocabularies that fit your data. This was the source for some of my frustration. I couldn't find a vocabulary for budgets. That didn't make sense. Much of the published open data is from the US and UK governments, surely money (budgets) would be a big part of that, right? Instead, most of it is more operational or statistical. After some time I found UK government data on spending. They even have a vocabulary on payments. This is a big step forward, but still not quite budgets.
Then I found the UK Combined Online Information System (COINS) that includes budget data. This uses a hypercube or Statistical Data and Metadata eXchange (SDMX) vocabulary that seems a bit more abstract and complicated for our budget. It seems more aimed at complicated but generic statistical analysis. To me, that seems to miss the point because the assigned vocabulary gives the meaning, and generic meaning really has no meaning. Also, COINS includes spending data but doesn't use the simpler payments vocabulary. Anyway, as the best fit so far, I will have to study it further.
Coming closer to home in New Hampshire, I found the NH Department of Education (NH DOE) has a New Hampshire Financial Accounting Handbook for Local Education Agencies. This was last revised in August 2010. Most importantly to this project, it specifically defines accounting categories for local schools in New Hampshire. While this is not a vocabulary for budgets, it is a vocabulary for school accounts. What a find!
The categories defined in the handbook are very similar to those used by Oyster River. Of course, they are not quite the same. But the match is clearly close enough to be very useful.
But, the document published by the NH DOE is a PDF! It is not a semantic vocabulary. It is at least a textual PDF and not just a scanned image. Over a weekend I copied the text and edited it into HTML for the relevant sections (Appendix A). I made sure the HTML was clean XML (XHTML actually) so I could use XSLT to transform it into at least a skeleton of an RDF vocabulary, once I figured out what that meant.
After first trying to just transform the account categories into vanilla RDF resource descriptions, I stumbled onto the Simple Knowledge Organization System (SKOS). This is another offical part of the W3C semantic web. It is used to codify things like classification systems as an RDF vocabulary. It is a great fit for the NH DOE accounting categories. SKOS even has a way of relating similar vocabularies like the Oyster River categories to the NH DOE categories.
So, I changed my XSLT stylesheet to transform the XHTML page into a SKOS vocabulary. It took a bit of tweaking, but in the end I think it is a great start. I hope soon that I can get it published on the ORCSD web site as our first piece of open data!
The NH DOE PDF on accounting categories illustrates a few key points of open data. The couple days work it took me to convert the PDF into RDF was very tedious. Even with some power search and replace it took hours and hours of editing. That is a good example of how hard it is to use a document that is not published as data.
The second point is that the accounting categories are a shared vocabulary. Not only do they refine Oyster River's accounts, but they also work for other school districts throughout New Hampshire (and maybe even broader). The single published vocabulary can be linked to by other districts who follow our example. And, when they do that, suddenly Oyster River budget data can be compared to that of other districts. Shared vocabularies applied to multiple data sets makes it easy to integrate all that data.
No comments:
Post a Comment