W3C home > Mailing lists > Public > www-rdf-calendar@w3.org > January 2003

handling VALUE=duration, VALUE=URI

From: Dan Connolly <connolly@w3.org>
Date: Tue, 21 Jan 2003 18:22:46 -0600
To: www-rdf-calendar@w3.org
Message-id: <1043194966.19747.53.camel@dirk.dm93.org>

For tomorrow's meeting, I see libby added
http://www.w3.org/2002/12/cal/test/20030122mtg.ics

so I tried ical2rdf.pl on it, and discovered
a new value type... URI. I just committed
code that basically treats them like strings...

2002/12/cal/ical2rdf.pl,v  <--  ical2rdf.pl
new revision: 1.5; previous revision: 1.4

So from this...

BEGIN:VALARM
ATTACH;VALUE=URI:Ping
TRIGGER;VALUE=DURATION:-PT5M
ACTION:AUDIO
END:VALARM

we get...

  <valarm rdf:parseType='Resource'>
    <attach>Ping</attach>
    <trigger rdf:parseType='Resource'>
      <duration>-PT5M</duration>
    </trigger>
    <action rdf:resource='http://www.w3.org/2002/12/cal/ical#audio'/>
  </valarm>
  </Vevent>


An alternative would be...

    <attach rdf:resource="Ping"/>

(gotta think about relative URIs too...).

Also, note that

TRIGGER;VALUE=DURATION:-PT5M

turned into

    <trigger rdf:parseType='Resource'>
      <duration>-PT5M</duration>
    </trigger>

This follows
  http://www.w3.org/DesignIssues/InterpretationProperties
and does *not* follow recent RDF Core WG
on datatypes.

Sorry this message is rushed; I gotta go
pick up the kids, but I didn't want to
leave the little bit of code I wrote
un-checked-in, and we have this agreement
that all changes are announced for review...


-- 
Dan Connolly, W3C http://www.w3.org/People/Connolly/
Received on Tuesday, 21 January 2003 19:23:18 GMT

This archive was generated by hypermail 2.2.0 + w3c-0.30 : Friday, 25 March 2005 11:20:43 GMT