|
|
The Social Graph Node Mapper is a community project to build a portable library to map social networking sites' URLs to and from a new canonical form (sgn:// URLs).
For example, the following URLs are all the same person:
- http://brad.livejournal.com/
- http://brad.livejournal.com/data/foaf
- http://brad.livejournal.com/data/rss
- http://brad.livejournal.com/data/atom
- http://brad.livejournal.com/profile
- http://www.livejournal.com/userinfo.bml?user=brad
- etc
With sgnodemapper, all of those would map to sgn://livejournal.com/?ident=brad . And then, from the sgn URL, you can map back to http:// URLs for any known type: content page, profile page, RSS, Atom, etc.
The core library is portable, implemented in JavaScript, and then there are tiny bridge layers which bind the language-specific libraries to both a JavaScript interpreter (either SpiderMonkey or Rhino) and the sgnodemapper core. Bindings are available for:
- C, C++ -- using SpiderMonkey
- Java -- using Rhino
- Perl -- using JavaScript::SpiderMonkey
- PHP -- thanks to Plaxo, wrapping the C++ library
Coming soon:
- Python -- using python-spidermonkey
- Ruby -- using ruby-spidermonkey
Commit emails go here:
Live web demo using the latest files in svn is here:
