26 Jun 2005 connolly   » (Master)

Using hCard, XSLT, and RDF to sync the family cellphones

Mary got a new Motorola V188, which iSync supports. Buoyed by the success of moving the kitchen calendar from paper to iCal, I took her paper address book and keyed it into Apple's addressbook. Now I want to sync (or at least copy) several of the categories (family, medical) from the contacts in my gizmo to hers.

In palmagent, dangerSync.py produces contact.rdf; I could use N3 rules to convert that to a vCard RDF vocabulary, and then do a syntactic RDF to vCard syntactic transform, but I'm a little down on N3 rules lately; the rules I use to process my calendar are really slow. I have been thinking about having dangerSync.py spit out .ics format directly. Or maybe having it spit out RDF diffs is the way to go...

Meanwhile, there's hCard, whence comes X2V including xhtml2vcard.xsl. And I'm a big fan of using XHTML to archive important data anyway, so I think I'll write some XSLT to convert contact.rdf to XHTML and then use xhtml2vcard.xsl to get vcard syntax.

grumble... advogato diary entries don't have titles, do they?

Tags: hCard, WearableGizmo, palmagent, RDF diff/sync, DIG

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!