batch convert vCards and LDIF collections to FOAF
About this toolThe "Friend Of A Friend" (FOAF) project is part of the Semantic Web initiative to describe human relationships in a machine readable form. Each person's profile contains a number of personal information together with brief descriptions of their friends and aquaintances. The relationships themselves can be classified by using different vocabularies and can also include people you have lost contact with or would like to meet one day. If known, a friend's description should also include a link to his or her FOAF description online. That way a FOAF based spider (so called scutters) can explore and connect all existing FOAF descriptions and build a model of a social network.
A more detailed introduction to the HOW's and WHY's of FOAF, please see here.
Similar to the original FOAF-a-matic by Leigh Dodds, you can use this tool to comfortably batch convert an email address book, edit and manually add entries to compile them into a FOAF profile in 3 simple steps. Contacts can be imported as vCards and the LDIF file format. Most email clients can at least output one of these two.
Until now vCards are probably the more commonly available standard for exchanging contact information (RFC 2426). LDIF stands for "LDAP Data Interchange Format" and is a slightly newer official Internet standards track protocol (RFC 2849). Some e-mail clients (e.g. Mozilla Thunderbird) directly support the export of address books in this format.
As address books tend to be quite large, the tool will only consider the first 500 entries. It also tries to pre-process the incoming data to help you with the creation of your profile. People which have your workplace's homepage domain name in their email address are pre-selected with the "worksWith" type of relationship. That value can be of course changed individually.
|
UsageFill in all desired fields in form below and upload or choose an online address collection. You can also skip importing any contacts just add them manually. On the next screen you'll see all entries of the selected file. For each person you can specify the type of relationship you have and edit their personal details. Entries you have edited are automatically selected to be included in your FOAF profile, though all other entries need to be included manually. There are also options to select/deselect all.
The final screen will show you the generated FOAF description which should be copied & pasted into a new textfile and saved as "foaf.rdf" somewhere accessible online. There's also an option to save the output as file. More information how to successfully publish and link to your profile can be found on that page.
Privacy informationAs a rule of thumb, please only include details in your profile you feel comfortable with to be public. None of the personal information entered here will be used for any other purposes than to create your FOAF description file and will only be stored on this server until the uploaded address file has been translated. Or, if using the automatic file creation option the generated FOAF file will be deleted after max. 24 hours. All e-mail addresses (incl. your own) will be encrypted and stored as a SHA1 digital signature by default, but can be left in its original form if you wish so (see the options on next page). Because FOAF is using e-mail addresses as unique ID for each person, providing your email address and name is mandatory. All other fields are considered optional.
|
Source code & Credits
The source code for this project is released under the Creative Commons License and can be downloaded from here:foafgen_v0.3.0.zip
Requirements:
my FOAF profile URL: http://toxi.co.uk/foaf.rdf
Thanks to Leigh Dodds, Libby Miller and everyone on #foaf
- PHP 4.x.x or later
- RdfAPI-PHP (RAP) v0.9.1 or later
my FOAF profile URL: http://toxi.co.uk/foaf.rdf
Thanks to Leigh Dodds, Libby Miller and everyone on #foaf
Version history:
v0.3.0- added vCard import support (plaintext format)
- now accepts multiple entries for each field value (eg. nickname or email addresses), shown as list box
- new features related to del.icio.us:
- added rdfs:seeAlso to RSS feed for interest links
- added onlineAccount description
- added rdfs:seeAlso to foafalicious
- del.icio.us tag retrieval now also works for selected friends
- autodiscovery of foaf:interest's from del.icio.us user page
- added creation date and generatorAgent info
- complete rewrite of PHP code
- optional output of FOAF as file
- uses JS DOM to add extra information for each contact
- attempt autodiscovery of existing foaf profiles of selected friends using swordfish.rdfweb.org DB
- additional manual input of contacts not included in LDIF file
- added "foaf:interest" fields in personal info
- added IM chat ID field
- added "foaf:PersonalProfileDocument" node
- friends now described using "foaf:Person" types
- support for "rdfs:seeAlso" fields for friend's profiles
- initial public version
- support for LDIF URL's, not just local files
- "rel:worksWith" is pre-selected as relationship for entries with the same domain name in e-mail address as work homepage
- "foaf:nick" is only used if different to "foaf:name" value
- autostrip quotes from names
To do's:
- improved autodiscovery features using 3rd party webservices
- support more databases for seeAlso queries
- find workaround for IE DOM bugs (adding further contacts doesn't work in IE)
- provide more information how to publish FOAF
- ability to edit existing FOAF files
- more foaf/relationship vocabularies
- form validation
last updated: March 29 2006 07:41:37.



