W3C home > Mailing lists > Public > semantic-web@w3.org > November 2008

Google's SocialGraph Node Mapper

From: Toby A Inkster <tai@g5n.co.uk>
Date: Fri, 28 Nov 2008 19:23:08 +0000
Message-Id: <D3185F4E-481A-4044-8D9B-9ABBDE0B0E95@g5n.co.uk>
To: Semantic Web <semantic-web@w3.org>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:45:34 GMT