[Developers] /wikipedia/en_id not giving results for redirected ids

Brian Karlak zenkat at metaweb.com
Wed Jul 23 22:56:10 UTC 2008


On Jul 23, 2008, at 3:40 PM, Shug Boabby wrote:

> I was expecting Freebase to return the GUID of the article that it
> redirects to. Is there another way to achieve what I want? I don't
> seem to be able to get *any* information for the redirected page...
> this is quite concerning.

The /wikipedia/en_id key is used to point to the current wikipedia  
article that best matches the topic.  It explicitly does not contain  
redirects.

The /wikipedia/en key contains all article AND redirect titles that  
point to the topic.  To do what you want, you need to query on the  
urlencoded wikipedia name:

{
   "guid" : null,
   "id" : "/wikipedia/en/Mr_Spock",
   "key" : {
     "namespace" : "/wikipedia/en_id",
     "value" : null
   }
}

This will return for you the GUID of the freebase article that matches  
the redirect article name, as well as the current WPID for the article  
that it redirects to.

Brian


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freebase.com/pipermail/developers/attachments/20080723/770672e1/attachment.htm 


More information about the Developers mailing list