Linky Icons

Thanks to Alexandre Passant’s work with the OpenID plugin and SPARQLing online accounts, SparqlPress now shows pretty little icons next to comments by users that were logged in with OpenID when writing the comment — lots of icons!

Linky Icons

This is what a source snippet looks like as Turtle:

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
<#me> foaf:holdsAccount [
  foaf:accountServiceHomepage <http://en.wikipedia.org/wiki/Main_Page> ;
  foaf:accountName "Mortenf" ;
  foaf:accountProfilePage <http://en.wikipedia.org/wiki/User:Mortenf> ] ,
    <http://del.icio.us/mortenf> .
<http://del.icio.us/mortenf> foaf:accountName "mortenf" ;
  foaf:accountServiceHomepage <http://del.icio.us/> .

Here it is as SPARQL:

PREFIX foaf: <http://xmlns.com/foaf/0.1/>
SELECT DISTINCT ?account ?service ?accountname ?profile
WHERE {
  ?person foaf:holdsAccount ?account .
  ?account foaf:accountServiceHomepage ?service .
  OPTIONAL { ?account foaf:accountName ?accountname }
  OPTIONAL { ?account foaf:accountProfilePage ?profile }
  FILTER (isIri(?account) || bound(?profile))
} GROUP BY ?account

Everything is still work in progress, of course, but you can try it out if you wish — just get it from my Bazaar repository in the sidebar.

Don’t forget to leave a comment here too — and come back in a while to see what the Semantic Web has digged up about you…

4 Comments

  1. Posted February 18, 2008 at 23:42:03 | Permalink

    This is a test comment — hopefully shown with lots of little icons…

  2. Posted December 29, 2009 at 18:57:43 | Permalink

    Any thoughts on developing this further?

    I’ve been taking another look at Wordpress, this time around exporting OpenIDs. But I soon find myself wanting a local quadstore…

    http://wiki.foaf-project.org/w/F2FPlugin

    Does your sparqlpress do any exporting, or just the aggregation bits?

    I have slightly more time for semweb stuff again these days :) But my php is as bad as ever…

  3. Posted December 29, 2009 at 20:07:37 | Permalink

    No exporting at the moment, but the original FOAF Export plugin was intended to get included at some point…

    I may get some spare bandwidth in January, so further development is not entirely out of the question. :)

  4. Posted February 15, 2010 at 22:55:45 | Permalink

    Hmmm, it’s now February…

Post a Comment

You must be logged in to post a comment.