[Developers] URL on Wikipedia

Brian Karlak zenkat at metaweb.com
Mon Jul 14 14:33:39 UTC 2008


On Jul 14, 2008, at 4:18 AM, Shug Boabby wrote:

> I have not been able to perform any Freebase API queries to retrieve
> the Wikipedia URL for a given object with a GUID. Is this possible? It
> would be incredibly useful if it was.


Wikipedia URLs are created automatically by substituting the / 
wikipedia/en_id key of the topic into the following URL:

	http://en.wikipedia.org/wiki/index.html?curid=8980330

... where 8980330 is the /wikipedia/en_id key.

You can retrieve the /wikipedia/en_id (aka the "wpid") from freebase  
using any variant of the following MQL:

[
   {
     "id" : "/en/barack_obama",
     "key" : {
       "namespace" : "/wikipedia/en_id",
       "value" : null
     }
   }
]

Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freebase.com/pipermail/developers/attachments/20080714/a075567a/attachment.htm 


More information about the Developers mailing list