Tuesday, January 11, 2011

What's in a Name?

Every piece of data on the semantic web has a name. And not just any old name. It has a unique web address, a unique Uniform Resource Locator (URL) or Uniform Resource Identifier (URI). These are those things you type into a web browser that start with http://....

These names become the official way to identify each piece of data. The names need to be easy to use and most importantly, unchanging. Easy to use is a relative term when you are talking about things that start http://, but you don't want to use totally arbitrary names that even techies can't figure out. If other people link to our data (which is what we want), then changing the names will break their links. As we design open data, we need to think carefully about how to name it. For more details, here is a good tutorial: How to Publish Linked Data on the Web.

While the names for each piece of published data can't change, our design needs to be able to handle likely changes related to that data. Changes can come from making mistakes, year-to-year progress, or coming up with a better design. Since we are publishing budgets, we know that every year there are new numbers. Every year there are new account lines or changes to accounts.

As recommended in How to Publish Linked Data on the Web, section 7.1, I think we should use simple static pages and hash URIs. We should have a special directory on the district web site for all RDF data and then subdirectories for each year. The W3C has used the year subdirectories. I think it will help keep the data directory from growing unmanageably. Further, I would append each file name (before the extension) with the publication date as YYYYMMDD. For example, proposed-budget-20110113.rdf, or something like that. This is a crude but effective way to handle versions.

Hash URIs means we name each piece of data by the URL for the file that describes the data and then add a hash tag, e.g., #mytag, to the end. So the full name would be something like this:

http://www.orcsd.org/data/2011/proposed-budget-20110113.rdf#mytag

As I said, easy to use is a relative term.

No comments:

Post a Comment