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!
![]()
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…