开发者

Freebase MQL Query print article?

here's my query:

[{
  "type":   "/tv/tv_series_episode",
  "series": "The Simpsons",
  "guest_stars": [{
    "actor": {
      "/common/topic/article": [{
        "id":       null,
        "optional": true,
        "limit":    3
      }],
      "name": null
    }
  }]
}]

Freebase is returning an id for the article such as: id: "/m/0sw7x", how would I print this ID. I've read that you have to use a "trans" service but I'm not exactly sure h开发者_如何学Pythonow to do this...


The trans service is actually pretty simple to use. You just append that ID to the end of a GET request and it sends back the article content like this:

http://api.freebase.com/api/trans/raw/m/0sw7x

I gave a more detailed explanation to a similar question here.


Or you can fetch the article directly with MQL as detailed in my answer to the question narphorium's pointed at.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜