W3C home > Mailing lists > Public > www-rdf-calendar@w3.org > December 2002

RE: iCalendar recurring schedules

From: Rahul Singh <kingtiny@cs.cmu.edu>
Date: Thu, 5 Dec 2002 14:03:33 -0500
To: "'www-rdf-calendar'" <www-rdf-calendar@w3.org>
Message-ID: <000001c29c91$01df5640$75b20280@cimds.ri.cmu.edu>

Hi,

Here is another example of a recurring schedule that may help you. It's
a class schedule for a graduate course in Robotics held every spring
which I marked up looking at the iCal ontology. 

http://www.daml.ri.cmu.edu/Schedules/test/ai.rdf

Let me know if there are any errors.

Cheers,

Rahul 
http://www.cs.cmu.edu/~kingtiny



> -----Original Message-----
> From: www-rdf-calendar-request@w3.org 
> [mailto:www-rdf-calendar-request@w3.org] On Behalf Of Graham Klyne
> Sent: Thursday, December 05, 2002 1:10 PM
> To: www-rdf-calendar
> Subject: 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-ful
> l/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 14:08:37 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:14:11 UTC