FOAF hacks of the day
A bit of hacking tonight, after a lot of interesting talks this afternoon about FOAF, OpenID and online identity (and certainly more to come tomorrow):
- Added queries to retrieve user accounts from FOAF profile and display them in comments with SparqlPress. Once again, it’s done by SPARQLing the FOAF URI of the user logged-in on this blog using an OpenID URL. To be displayed, the account must either have a URI (i.e. not to be a blank node) or a foaf:accountProfilePage (BTW, this one is not in the specs while it seems most people agreed on it - and already use it. Dan, what about it ?). Also added icons for some well-knows services. Live example here, and screenshot:

- Updated the simple network browser script to be compliant with the new release of a GraphGear (1.2). The component has new interesting features that can be set in the xml file, as setting the size of the nodes, and adding images. I updated the script to benefit from those features, and so it now display pictures and smaller nodes, which make the script run faster. The image detection only handles foaf:img at the moment, so this is something that whould need more work (e.g. retrieve sioc:avatar from the related online account …). Yet, here’s a sreenshot of the new rendering that you can browse there:

Time to sleep now …
February 16, 2008 | Filed Under Semantic Web |
Tags: foaf, graphgear, sparql, sparqlpress, wordpress
Tags: foaf, graphgear, sparql, sparqlpress, wordpress

Hi,
Well done, it starts to look good -:)
Instead of the foaf:accountProfilePage that is not (yet?) in the spec’, I use foaf:OnlineAccount@rdf:about, which I think gives some meaning, as it qualifies foaf:OnlineAccount and does not require the introduction of foaf:accountProfilePage.
The only thing with foaf:OnlineAccount@rdf:about is that it does not allow multiple accountProfilePage, but is this something we would like to have?
Example:
Alkarex
Alkarex on the French Wikipedia
Arf, my FoaF markup was filtered out. Here it is again.
Example:
[foaf:holdsAccount]
[foaf:OnlineAccount rdf:about=”http://fr.wikipedia.org/wiki/Utilisateur:Alkarex” dc:title=”Wikipedia”]
[foaf:accountServiceHomepage rdf:resource=”http://fr.wikipedia.org/”/]
[foaf:accountName]Alkarex[/foaf:accountName]
[dc:description xml:lang=”en-GB”]Alkarex on the French Wikipedia[/dc:description]
[/foaf:OnlineAccount]
[/foaf:holdsAccount]
I updated my foaf file using foaf:accountProfilePage
to see how this new feature works.
Quick test, a few months later, with FoaF updated…