views:

73

answers:

1

I've been working to apply the hCalendar microformat to the events displayed on my web site. However, from my research, I get the impression that microformats are not recommended (or at least looked down upon by some). Instead, RDF seems to be the preferred way for representing semantic-rich information.

However, I'm confounded by RDF. I don't even know where to start. Microformats provide an easy to understand guide for using the hCalendar format. RDF, on the other hand, is written using moon people language.

Is there an RDF alternative to hCalendar? Is there some resource that describes how to implement it? Should I just continue with hCalendar since it's easy to implement?

+2  A: 

Simple google search brought up a spec written in that moonlanguage, which includes a draft XSL from hCalendar to RDF calendar. The moonlanguage therein seems actually pretty reasonable for that moonlanguage, so I suggest that you become fluent in it.

The major problem that most people have, is that RDF is just so damn weird. So, here's a three rule primer.

  1. RDF documents describe a graph, which describe stuff.
  2. All the arrows/nodes are described in terms of "triples", which are "subject, predicate, object", (e.g. "Ball" "HasColor" "Red")
  3. Everything is described in terms of URIs. (e.g. <http://d8uv.org/about/id> <http://xmlns.com/foaf/spec/mbox> <mailto:[email protected]>

With that in your arsenal, then it should be much easier to pull sense from the moonlanguage. Note that I'm not saying "easy", because, again, RDF is damn weird.

My personal advise is to just forget the whole notion, and stick with microformats. They're semantic enough, and won't drive you to insanity. (The type of insanity that leads people to make things like RDF/XML)

d8uv
Thanks so much for the reply. As an aside, another question led me to this - http://www.youtube.com/watch?v=ldl0m-5zLz4 - which is a gentle introduction to RDFa.
Gabe
Another useful link - SchemaWeb - http://www.schemaweb.info/ - lists some of the most popular RDF vocabularies.
Gabe
I cannot find any big adopters of RDF Calendar, although there are several notable adopters of hCalendar (Yahoo!, Wikipedia, Google). One other note, accessibility concerns have been raised about hCalendar's frequent use of <abbr>. http://www.sitepoint.com/blogs/2008/06/25/bbc-rejects-hcalendar-microformat-because-of-accessibility-concerns/
Gabe
With all the microformats, the abbr-title idiom has been deprecated for the [Value Class Pattern](http://microformats.org/wiki/value-class-pattern). So, use that. hCalendar is being used, is perfectly semantic, and is on-the-whole less nuts than the SemWeb stuff.
d8uv
+1 just for the jibe at RDF/XML - everyone should be sensible and just use Turtle
RobV