Reputation: 854
What are common methods / official standards for surfacing event or calendar data?
My use case is that I want to aggregate event information from several different websites into a single calendar or event listing (this is on an intranet, we have control over all websites). I want to ask the websites to present their data in a certain format so I can consume it.
Things that I have looked into:
While iCalendar seems to be most commonly used, my hesitation is that it isn't easy for content creators to also present their data in iCalendar format. I suppose that is where hCalendar becomes useful.
Upvotes: 6
Views: 497
Reputation: 32367
Present the calendar data as RFC 2445 iCalendar format.
Present a syndication feed of updates as RFC 5023 AtomPub format.
Upvotes: 3
Reputation: 16858
I suggest using an Atom feed with XHTML entries containing hCalendar records.
Upvotes: 0
Reputation: 30163
I would recommend publishing the source information using hCalendar. You can then use a parsing library or service to convert from hCalendar to iCalendar (or some other useful format, like XML or JSON).
The benefit over publishing iCalendar directly is twofold:
There are various microformats parsers that either run as web services or that you can install and run on your own servers. There's information on the microformats wiki: http://microformats.org/wiki/implementations, http://microformats.org/wiki/parsers.
In particular you might find X2V useful: http://microformats.org/wiki/implementations#X2V
Upvotes: 1
Reputation: 4619
Take a look at Duke University's Data Feeds. They provide calendar/event feeds in RSS and custom XML. They've also posted sample PHP/JavaScript code for how to consume their feeds. You might want to have the sites on your intranet provide their feeds in one of those 2 formats and use something similar to their sample PHP script to aggregate the feeds.
Upvotes: 0