Last post I described the beginnings of a budget vocabulary. I listed 9 classes and as many relationships between those classes. As I started coding this vocabulary into RDF, I realized that 1 of those classes is already defined elsewhere. Namely, the Account Category class is already defined in the NH Financial Accounting Handbook for LEAs vocabulary I converted to SKOS. Basically, the handbook vocabulary just defines account categories. The ORCSD account category RDF that I transform from the ABC spreadsheet is defined in terms of the NH handbook, so it doesn't need to define a new class, either.
The budget vocabulary so far doesn't include any properties. Here, I mean details about the classes, not properties in the sense of predicates or relationships. It sure would be nice if there was a consistent vocabulary for talking about vocabularies! As an example, the Budget class has an instance for each fiscal year. So, it needs a property that defines the fiscal year. Besides defining the fiscal year, the Budget class is like a container for the Budget Versions for the same fiscal year.
Each Budget Version has an "as of date" property. This is the date when the snapshot of budget figures was taken. This isn't necessarily the same as the date when the Budget Version is published. A Planned Version adds a property to indicate if it is the final approved budget. Likewise, the Actual Version adds a property to indicate if it is the final audited budget. These Boolean properties are used to find the official versions, as opposed to intermediate versions.
Each Budget Change is basically a container for Budget Components that serve the same purpose. A Budget Change just has a description property. A Budget Component also has a comment property based on the real budget spreadsheets that have comments. I can see in the future, the budget vocabulary being extended to add additional semantics to these comments. For example, several budget components correspond to specific employees, and a count of those employees is useful. For now, we'll leave that to the next version of the vocabulary.
The key property for a Budget Component is an amount. The currency of the amounts should be a property on the Budget class. The Budget Account class doesn't add any properties. It is just related to Account Lines and is the primary Budget Component. The sum of the amounts for all Budget Accounts for a Budget give the total for the fiscal year.
For an RDF vocabulary, each of these properties is defined as a predicate with a class as the subject and usually a literal value for the subject. With these properties, I now have a very rough draft of the budget vocabulary in RDF. It at least passed the W3C RDF validator after a few tries. I need to study the SDMX vocabulary used by the payment vocabulary to make sure I get it all correct.
No comments:
Post a Comment