[Developers] getting descriptions and wikipedia links

Tom Gordon tomgordon at mac.com
Tue Nov 13 22:37:56 UTC 2007


Hi, I'm a bit stumped about how to get a good item description.

For example, take the United States item on www.freebase.com:

http://www.freebase.com/view/guid/9202a8c04000641f8000000000959f60

There's a rather nice-sized description, the start of the Wikipedia  
article.

If I try to get that via trans, I can do one of these:

http://www.freebase.com/api/trans/blurb/% 
239202a8c04000641f8000000000959f6a

or

http://www.freebase.com/api/trans/raw/% 
239202a8c04000641f8000000000959f6a

The first is too short, and the second is the entire article.

Soooo how do you generate those nice descriptions?  If I want  
something similar, do I need to parse them out from the Wikipedia  
article myself?

Second question: given some article data below (for the United  
States), I see there's a wikipedia article ID in the source URI.  But  
that URI doesn't work directly.  How would I get the actual Wikipedia  
link (or generate it)?

{
   "code":"/api/status/ok",
   "result":[{
     "article":[{
       "attribution":["/user/mwcl_wikipedia_en"],
       "author":[],
       "content":[],
       "contributor":[],
       "creator":["/user/mwcl_wikipedia_en"],
       "guid":["#9202a8c04000641f8000000000959f6a"],
       "id":["/guid/9202a8c04000641f8000000000959f6a"],
       "in_reply_to":[],
       "key":[],
       "name":[],
       "permission":["/boot/all_permission"],
       "published":[],
       "replies":[],
       "source_uri":["http://wp/en/3434750"],
       "summary":[],
       "timestamp":["2006-10-23T17:20:21.0045Z"],
       "type":["/common/document"],
       "updated":[]
     }],
     "guid":"#9202a8c04000641f8000000000959f60",
     "name":"United States",
     "type":"/common/topic"
   }]
}

Thanks in advance for any info,
Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freebase.com/pipermail/developers/attachments/20071113/220da91e/attachment.htm 


More information about the Developers mailing list