Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
New SGAPI method: otherme
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  10 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Brad Fitzpatrick  
View profile  
(1 user)  More options Jul 11 2008, 7:04 pm
From: "Brad Fitzpatrick" <bradf...@google.com>
Date: Fri, 11 Jul 2008 16:04:23 -0700
Local: Fri, Jul 11 2008 7:04 pm
Subject: New SGAPI method: otherme

The Social Graph API was launched February 1st right before the Social Graph
Foo Camp.  The main Foo Camp starts today, so this seems like a good time to
launch some more SGAPI features.

So far the Social Graph API has only had 1 method (/lookup) and 1 other
debug method (/testparse).  Now there's the first new high-level API,
"otherme".

No docs are written yet, so consider this a sneak preview if you'd like:

http://socialgraph.apis.google.com/otherme?pretty=1&q=bradfitz.com
http://socialgraph.apis.google.com/otherme?pretty=1&q=davidrecordon.com

Parameters are:

q - comma-separated list of URLs/emails that a user has said are theirs
jscb - JSON-P callback, optional.
pretty - optional boolean: pretty-print
sgn - optional boolean: include sgn canonicalizationd details/nodes
(including sgn mboxsha1sum nodes)

Response is all the other URLs that user has, not including the one or more
you passed in in the 'q' parameter.  They're keyed by URL and include all
the new attributes that are being parsed (name, photo, rss, atom, etc).

Note that this is simply a mechnical transformation on the /lookup method,
not offering anything that wasn't possible before.  It's just that the
transformation was tedious and error-prone and silly to have to repeat in
each client library.  Hopefully putting it in the server makes it more
convenient for everybody.

Why is this useful?  A lot of websites are now letting you list your other
websites/profiles on your profile, but it's just as annoying to repeat this
information on every site as it is to redefine your friends everywhere.  If
the site incrementally hits this API in the background as you enter profile
URLs, the site can then recommend you link/share your other websites.
Examples of sites that let you enter your other profile URLs and could use
this API include:  Pownce, Digg, Vox, Typepad, Movable Type, Plaxo,
Friendfeed, Mugshot.  And that's just off the top of my head from sites I'm
familiar with.  I'm sure there's a bunch more.

(Also new:  Google Profiles[1] data is now served live, rather than from
crawl data.  It'd be nice to do this optionally also for other willing sites
in the future so I did Google Profiles as an experiment and to setup the
infrastructure for it.)

Docs to come soon.  Let me know if there's any questions/requests in the
meantime.

- Brad

[1] http://www.google.com/s2/profiles/me


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ade Oshineye  
View profile  
 More options Jul 13 2008, 12:25 pm
From: "Ade Oshineye" <a...@google.com>
Date: Sun, 13 Jul 2008 17:25:10 +0100
Local: Sun, Jul 13 2008 12:25 pm
Subject: Re: New SGAPI method: otherme
Are these links meant to be bi-directional?
The following 2 urls give different results implying that the SGApi
can only follow links between accounts and doesn't infer
relationships:
http://socialgraph.apis.google.com/otherme?pretty=1&q=bradfitz.com
http://socialgraph.apis.google.com/otherme?pretty=1&q=http://bradfitz...

2008/7/12 Brad Fitzpatrick <bradf...@google.com>:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brad Fitzpatrick  
View profile  
 More options Jul 13 2008, 9:44 pm
From: "Brad Fitzpatrick" <bradf...@google.com>
Date: Sun, 13 Jul 2008 18:44:19 -0700
Local: Sun, Jul 13 2008 9:44 pm
Subject: Re: New SGAPI method: otherme

It doesn't return a strongly-connected set, no.  It's the union of the
follow-me (fme=1) sets as returned by lookup, with duplicates removed
(including cases where sgn pk and ident nodes are both returned).


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brad Fitzpatrick  
View profile  
 More options Jul 13 2008, 9:46 pm
From: "Brad Fitzpatrick" <bradf...@google.com>
Date: Sun, 13 Jul 2008 18:46:40 -0700
Local: Sun, Jul 13 2008 9:46 pm
Subject: Re: New SGAPI method: otherme

On Sun, Jul 13, 2008 at 9:25 AM, Ade Oshineye <a...@google.com> wrote:

> Are these links meant to be bi-directional?
> The following 2 urls give different results implying that the SGApi
> can only follow links between accounts and doesn't infer
> relationships:

... though I'm curious what you mean by "doesn't infer relationships".

There are no me links from bradfitz.jaiku.com:

http://socialgraph.apis.google.com/lookup?pretty=1&q=http://bradfitz....

So if you start there, it's a dead-end.  What would you expect it to do?  (I
do plan to add a fuzzy=1 option in the future, where if a node is
uncontested we could walk up the me edge in the wrong direction.  Fuzzy mode
would only be for when human reviewers are involved.)


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ade Oshineye  
View profile  
 More options Jul 14 2008, 12:45 pm
From: "Ade Oshineye" <a...@google.com>
Date: Mon, 14 Jul 2008 17:45:57 +0100
Local: Mon, Jul 14 2008 12:45 pm
Subject: Re: New SGAPI method: otherme
At the moment any tool based on the idea that the user enters some of
their urls and the system works out their urls will still have to
implement something like the following algorithm:

#pseudo-python
userUrlsSet = set(["somebaseurl"])
urlsToVisitSet = set(["somebaseurl"])
visitedUrlsSet = ()

while len(urlsToVisitSet) > 0:
    for url in urlsToVisitSet.copy():
        #network call to sgapi
        fetchedUrlsSet = fetchOtherUrls(url)
        visitedUrlsSet.add(url)
        for fetchedUrl in fetchedUrlsSet:
            if fetchedUrl not in visitedUrlsSet:
                urlsToVisitSet.add(fetchedUrl)
        userUrlsSet = userUrlsSet.union(fetchedUrlsSet)

Note that this is approximately O(N**2) and that it hammers Google servers.
However it has the benefit that if a user enters just one url we can
find all the other urls. It would be _very_ useful if the SGApi could
do this and expose it as one call.

2008/7/14 Brad Fitzpatrick <bradf...@google.com>:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brad Fitzpatrick  
View profile  
 More options Jul 14 2008, 1:06 pm
From: "Brad Fitzpatrick" <bradf...@google.com>
Date: Mon, 14 Jul 2008 10:06:17 -0700
Local: Mon, Jul 14 2008 1:06 pm
Subject: Re: New SGAPI method: otherme

Ade,

On Mon, Jul 14, 2008 at 9:45 AM, Ade Oshineye <a...@google.com> wrote:

> At the moment any tool based on the idea that the user enters some of
> their urls and the system works out their urls will still have to
> implement something like the following algorithm:

The "otherme" method takes a list of URLs already.  I'm not sure why you'd
need the code below.

- Brad


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dale Newfield  
View profile  
 More options Jul 15 2008, 4:38 pm
From: Dale Newfield <D...@Newfield.org>
Date: Tue, 15 Jul 2008 16:38:49 -0400
Local: Tues, Jul 15 2008 4:38 pm
Subject: Re: [SGapi] New SGAPI method: otherme

Brad Fitzpatrick wrote:
> The "otherme" method takes a list of URLs already.  I'm not sure why
> you'd need the code below.

The original service accepts multiple URLs and has the fme (follow "me"
links) argument.  I'm still unclear as to how this "otherme" query
differs from "lookup".

-Dale


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brad Fitzpatrick  
View profile  
 More options Jul 15 2008, 4:50 pm
From: "Brad Fitzpatrick" <bradf...@google.com>
Date: Tue, 15 Jul 2008 13:50:31 -0700
Local: Tues, Jul 15 2008 4:50 pm
Subject: Re: [SGapi] New SGAPI method: otherme

On Tue, Jul 15, 2008 at 1:38 PM, Dale Newfield <D...@newfield.org> wrote:

> Brad Fitzpatrick wrote:
> > The "otherme" method takes a list of URLs already.  I'm not sure why
> > you'd need the code below.

> The original service accepts multiple URLs and has the fme (follow "me"
> links) argument.  I'm still unclear as to how this "otherme" query
> differs from "lookup".

As I said in my email, it's the same data, organized differently.  It also
de-dups stuff using ident_is and pk_is attributes (only visible in lookup's
sgn=1 mode).  That is, if fme=1 would both my sgn://myspace.com/?pk=123 and
sgn://myspace.com/?ident=bradfitz nodes, and those were known to be
identical, the otherme API combines those.

It's basically just an easier way to access the data when that's the exact
question you want to see answered (Given some URLs, what are the other
ones?) without walking the often-nasty data structure that is returned by
lookup.

- Brad


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Giovanni Tummarello  
View profile  
 More options Jul 30 2008, 1:59 pm
From: Giovanni Tummarello <g.tummare...@gmail.com>
Date: Wed, 30 Jul 2008 10:59:29 -0700 (PDT)
Local: Wed, Jul 30 2008 1:59 pm
Subject: Re: New SGAPI method: otherme
Brad, we've tried running this api, e.g.
http://socialgraph.apis.google.com/otherme?pretty=1&q=http://dowhatim...

the problem is that its over 95% wrong results.  (the other URLs are
not other locations for Richard Cyganiak) . My question is pretty
general, what would you says are the top causes for these false
positives.

Giovanni

On Jul 12, 12:04 am, "Brad Fitzpatrick" <bradf...@google.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brad Fitzpatrick  
View profile  
 More options Jul 30 2008, 2:39 pm
From: "Brad Fitzpatrick" <bradf...@google.com>
Date: Wed, 30 Jul 2008 11:39:54 -0700
Local: Wed, Jul 30 2008 2:39 pm
Subject: Re: New SGAPI method: otherme

Without knowing what the right data is, I can't answer.  But I can recommend
that you can debug this yourself by using the /lookup API instead and seeing
the raw data from which the /otherme data is calculated:

http://socialgraph.apis.google.com/lookup?pretty=1&q=http://dowhatime...

For any given bogus URL that's not him, go find where it has a "me" link
from.

Let me know what you find!

- Brad

On Wed, Jul 30, 2008 at 10:59 AM, Giovanni Tummarello <


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google