iCalendar recurring schedules

The story continues...

With some help from Jim Ley [1] I found some samples of RDF using this 
schema.  As far as I can tell, nobody else has done anything with recurring 
events, so here's my attempt for comment.

>I'm also struggling to understand how iCalendar does repeated intervals as 
>opposed to repeated instants:  all the recurrence examples in RFC 2445 [6] 
>seem to deal with repeated instances rather than intervals.  To capture 
>the example schedule above (7:00-9:00PM every Monday to Friday, and 
>4:00-10:00PM every Saturday and Sunday), does something like this work?:
>
>BEGIN:VCALENDAR
>VERSION:2.0
>PRODID:http://id.ninebynine.org/wip/2002/timetable
>BEGIN:VEVENT
>DTSTART:20021201T190000
>DTEND:20021201T210000
>RRULE:FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
>END:VEVENT
>BEGIN:VEVENT
>DTSTART:20021201T160000
>DTEND:20021201T220000
>RRULE:FREQ=WEEKLY;BYDAY=SA,SU
>END:VEVENT
>END:VCALENDAR

Using RDF/N3 to represent the corresponding RDF, I have:

[[
@prefix rdf:      <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix 
ical: 
<http://www.ilrt.bris.ac.uk/discovery/2001/06/schemas/ical-full/hybrid.rdf#> .
@prefix icalutil: <http://ilrt.org/discovery/2001/06/schemas/ical-util#> .
#prefix icalutil: 
<http://ilrt.org/discovery/2001/06/schemas/swws/index.rdf#> .  ###this one?###
@prefix homenet:  <http://id.ninebynine.org/wip/2002/homenet/> .

homenet:AccessTimes a ical:VCALENDAR ;
     ical:VEVENT-PROP
       [ a ical:VEVENT ;
         ical:DTSTART
           [ a ical:TIME ;
             rdf:value       "T190000" ;
             icalutil:hour   "19" ;
             icalutil:minute "00" ] ;
         ical:DTEND
           [ a ical:TIME ;
             rdf:value       "T210000" ;
             icalutil:hour   "21" ;
             icalutil:minute "00" ] ;
         ical:RRULE
           [ a ical:RECUR ;
             ical:FREQ       "WEEKLY" ;
             ical:BYDAY      "MO,TU,WE,TH,FR" ]
       ] ;
     ical:VEVENT-PROP
       [ a ical:VEVENT ;
         ical:DTSTART
           [ a ical:TIME ;
             rdf:value       "T160000" ;
             icalutil:hour   "16" ;
             icalutil:minute "00" ] ;
         ical:DTEND
           [ a ical:TIME ;
             rdf:value       "T220000" ;
             icalutil:hour   "22" ;
             icalutil:minute "00" ] ;
         ical:RRULE
           [ a ical:RECUR ;
             ical:FREQ       "WEEKLY" ;
             ical:BYDAY      "SA,SU" ]
       ] ;
     rdfs:comment
         """
         Designated access times:
           weekdays: 19:00-21:00
           weekends: 16:00-22:00
         """ .
]]

Does this make sense?

#g
--

[1] Foafnaut Predicate search:  http://jibbering.com/2002/12/pred.html



-------------------
Graham Klyne
<GK@NineByNine.org>

Received on Thursday, 5 December 2002 13:12:22 UTC