converter from chefmoz->icalendar

I had an action from the Calendar meeting:

http://rdfig.xmlhack.com/2003/04/23/2003-04-23.html

DanC: ACTION libby: write a converter from chefmoz opening housr format
to rdf calendar format (or icalendar format maybe?). continues, with
danbri helping
http://rdfig.xmlhack.com/2003/02/26/2003-02-26.html#1046279854.884486

See http://esw.w3.org/topic/OpeningHoursUseCase and
http://lists.w3.org/Archives/Public/www-rdf-calendar/2003Mar/0016.html
for more information.

I've done it to icalendar (we can easily convert to RDF), and the perl
script is here:

http://swordfish.rdfweb.org/discovery/2003/05/chefmoz/

Couple of issues

- the chefmoz files are huge! I just used the
<ParsedHours>10-23|10-23|10-23|10-23|10-23|10-23|10-23</ParsedHours>
part (see http://chefmoz.org/rdf.html fro teh original files).

- the ics generated is incorrect as stands - need to get a local
timezone from somewhere, maybe <Country>United Kingdom</Country>

- chefmoz uses both hour 0 and 24 for midnight. According to the W3C
date and time formats note (http://www.w3.org/TR/NOTE-datetime), this
should be 0. So to represent midnight of what is really the next
day, I've used 2359.

- I'm not sure if it completely makes sense to have several 'events' for
each opening hours case, e.g. mondays open 8-10, rest of the week 7-11,
gives two events, grouped as a calendar = opening hours for that place.

It's probably worth looking at skical's optimset for this:

http://skical.org/skical20010905.html#optimes-val

cheers

Libby

Received on Tuesday, 13 May 2003 11:33:39 UTC