Freebase MQL 查询打印文章?
这是我的查询:
[{
"type": "/tv/tv_series_episode",
"series": "The Simpsons",
"guest_stars": [{
"actor": {
"/common/topic/article": [{
"id": null,
"optional": true,
"limit": 3
}],
"name": null
}
}]
}]
Freebase 返回文章的 ID,例如:id:“/m/0sw7x”,我将如何打印此 ID。我读过您必须使用“跨”服务,但我不太确定如何做到这一点......
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 how to do this...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
trans 服务实际上使用起来非常简单。您只需将该 ID 附加到 GET 请求的末尾,它就会发回如下文章内容:
我对类似问题给出了更详细的解释 此处。
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:
I gave a more detailed explanation to a similar question here.
或者,您可以直接使用 MQL 获取文章,如我对 narphorium 所指出的问题的回答中所述。
Or you can fetch the article directly with MQL as detailed in my answer to the question narphorium's pointed at.