Google's SocialGraph Node Mapper

Not sure if anyone else here has had much of a look at this, but it's  
certainly interesting. A Javascript library (with Perl, C, etc  
bindings, courtesy of Mozilla's libjs) that is able to interpret URIs  
for many, many social networking / blogging sites.

Given a URI for a person's page on one of these sites it will return  
a URI, using the unregistered "sgn" URI scheme, for the person  
themselves. Also, when that URI is fed back into the library, it can  
give you further URIs of interest about that person.

Say, for example, you came across an hCard like this:

	<span class="vcard">
	  <a class="fn url" href="http://twitter.com/foobar"
	  >Foo Bar</a>
	</span>

Previously you could generate something like this:

	_:x1
	  a foaf:Person ;
	  foaf:page <http://twitter.com/foobar> ;
	  foaf:name "Foo Bar" .

Whereas using the node mapper, you can generate:

	<sgn://twitter.com/?ident=foobar>
	  a foaf:Person ;
	  foaf:page <http://twitter.com/foobar> ;
	  foaf:name "Foo Bar" ;
	  plink:profile <http://twitter.com/foobar> ;
	  plink:atom <http://twitter.com/statuses/user_timeline/foobar.atom> ;
	  plink:rss <http://twitter.com/statuses/user_timeline/foobar.rss> .

So you gain a real URI for the person (albeit using a weird  
unregistered URI scheme, but that's still better than a blank node)  
and three extra triples.

I've set up a vocab that may be of use for people who want to use SGNM:

	http://buzzword.org.uk/rdf/personal-link-types#

-- 
Toby A Inkster
<mailto:mail@tobyinkster.co.uk>
<http://tobyinkster.co.uk>

Received on Friday, 28 November 2008 19:23:55 UTC