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

Re: a syntactic approach to RDF/ical interchange

From: Dan Connolly <connolly@w3.org>
Date: 01 Aug 2002 14:19:18 -0500
To: Gary Frederick <gary.frederick@jsoft.com>
Cc: www-rdf-calendar@w3.org, Tim Berners-Lee <timbl@w3.org>
Message-Id: <1028229559.21237.2153.camel@dirk>

On Wed, 2002-07-31 at 18:50, Gary Frederick wrote:
> Dan,
> I finally got some time to look further. I have some questions/comments. Should I post here?

Yes, please.
(I'm not currently subscribed to rdf-calendar; if you post here,
I'll eventually see it via the archives, but pls copy me
explicitly for conviniece all around. Maybe I'll subscribe...

> Anyone object?
> For example
> The elements in xCal are all lower case.
> icaltordf.pl generates 
>   <Vcalendar
>   <Vevent>
>   etc.

Yes... by convention, in RDF, class names start
with an uppercase letter, and property names
start with a lowercase letter.

> You may want to generate
>   <vcalendar
>   <vevent>

No, then they would look like property names.

I might want to generate

but that would add a special case to the routine
that normalizes capitalization...

excerpt from
v 1.4 2002/07/18 05:26:36

sub camelCase{
  my($n, $initialCap) = @_;

  my(@words) = map(lc, split(/-/, $n));

    return join('', map(ucfirst, @words));
    return $words[0] . join('', map(ucfirst, @words[1..$#words]));

sub testCamelCase{
  my(@cases, $n);

  @cases = ("DTSTART", "LAST-MODIFIED");
  foreach $n (@cases){
    printf "case: %s: prop: %s class: %s\n",
      $n, camelCase($n), camelCase($n, 1);


Dan Connolly, W3C http://www.w3.org/People/Connolly/
see you in Montreal in August at Extreme Markup 2002?
Received on Thursday, 1 August 2002 15:19:00 UTC

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