Browsing your FOAF social graph
As a way to demo some thoughts from one of my previous posts, I wrote a small python script that query my main FOAF URI to retrieve my other URIs (flickr, twitter …) and related RDF files, then SPARQL each of them to retrieve relationships and creates an XML file according the needs of Graph Gear.

Live demo here. If you want to run in on your own data, just grab it there. The way is defines color mappings is a bit ugly, so if anyone wants to hack a better regexp for it, I’d be glad to have feedback.
Comments
6 Responses to “Browsing your FOAF social graph”
Leave a Reply
You must be logged in to post a comment.

Nice! Of course, it would be much nicer if you had smushed the people as well - i am sure you have many connections that use several services.
Thanks.
Indeed, would have been better with people-smushing with sha1, and maybe add an optional “same name = same people” for small networks, as some services do not export it.
Or even retrieve FOAF files from people on my blog export to check if they point to their flickr / twitter / … URI and identify them.
I should also look at Knowee, which has this kind of rules.
[…] in the number of links for graph gear. Clearly there is some interest there. Then we noticed Alexandre Passant’s wonderful python script that builds a graph gear from your foaf (friend of a friend) uri, essentially creating a graph of […]
Nice happy face
[…] the simple network browser script to be compliant with the new release of a GraphGear (1.2). The component has new interesting […]
[…] Browsing your FOAF social graph […]