Dumping the Mac OS X address book to FOAF

Update: There’s a much improved version.

This is a half-finished result from the gnowsis workshop. It’s a little AppleScript that dumps some information from the Mac OS X address book to RDF/XML, using the FOAF vocabulary. It’s severely limited:

  • Only full names and email addresses are exported
  • No XML escaping is performed; the names and email addresses ought to be put in CDATA sections really.

Anyway, maybe it’s useful to somebody, or I may revisit this at a later date. Download ab2foaf.osa, and run it from the command line:

osascript ab2foaf.osa > ab.rdf

This will run the script and store the output in a file called ab.rdf.

This entry was posted in General, Semantic Web. Bookmark the permalink.