Saturday, January 22, 2011

Workflow

As promised last post, I've cleaned up my transformation of the NH Financial Accounting Handbook for LEAs this weekend. I think it is all ready to publish this week! Keep your fingers crossed!

Today, Jay Hilyard of the Advisory Budget Committee (ABC) emailed to the committee an Excel spreadsheet of the final budget approved by the school board last week. Rob McEwan of the ABC had the great idea of publishing Jay's documents as Google Docs:
This is great since now you can easily see the data this project is working with. Besides getting the financial handbook ready to publish, I am also working on getting the first part of this budget spreadsheet ready to publish, though I don't think it will be ready this week.

I don't want this project to turn into a full-time job for me, or anyone else for that matter. Besides making it easier to use the data, I want it to be easier to publish the data. To do that, we need to look at workflow: how does the data get processed.

Jay's spreadsheet started in ADS, the accounting system used by ORCSD. The Business Administrator developed a report from ADS and converted it into an Excel spreadsheet. Based on her comments at the last board meeting, this conversion is not easy. She emailed that spreadsheet to Jay. Jay converted that data into a relational database he developed for the ABC. He merged the new data with some comments from earlier versions of the spreadsheet. Jay then converted the database into a new Excel spreadsheet and graphs that he emailed to the ABC members. Rob took those documents and copied them to Google Docs.

I now take Jay's spreadsheet and start to convert it into RDF. I take the first sheet of Jay's spreadsheet and save it in comma-separated value (CSV) format. I then convert that CSV into XML.

Converting from CSV to XML took a little bit of effort. I found a simple open source Java program on //javareference submitted by Darshan Singh. Unfortunately, this didn't handle quoted values well, so I replaced the Java StringTokenizer with my own. For this spreadsheet, this simple program did the trick.

The XML that comes from the CSV is pretty generic. It uses the column headers as the element tag names. This is quite handy, since it means my XSLT stylesheets to process this XML don't have to change when the columns move around or new columns are added, which happened this time.

Jay's spreadsheet is the only real source data I have to work with, so I want to get the most out of it. I think I need to make 3 different RDF files: 1) a list of account categories specific to ORCSD, but similar to the NH Financial Accounting Handbook for LEAs; 2) a list of accounts; and 3) the slice of proposed budget amounts for those accounts. I am writing separate XSLT stylesheets for each of these files.

The budget notebook handed to the ABC has a list of account categories. Jay's spreadsheet has sheets based on that handout, but it doesn't really cover the actual categories used in the budget. So, I will extract the actually used categories to generate the RDF. This is the stylesheet I am working on now.

No comments:

Post a Comment