I need your help again. If I go to http://www.freebase.com/queryeditor/ and run a simple query, let's say:
我还需要你的帮助。如果我访问http://www.freebase.com/queryeditor/并运行一个简单的查询,假设是:
[{
"type": "/time/month",
"name": [{}],
"month_number": null,
"calendar_system": "Gregorian calendar",
"sort": "month_number"
}]
The results are returned fine. Now, I want to make the same thing, but call this from an Android application. As I see it, the query is a JSON string so my guess is that I could use a library like GSON to handle calls and responses. Is there a more simple way ?
结果被罚款。现在,我想做同样的事情,但是从Android应用程序调用它。在我看来,查询是一个JSON字符串,所以我猜测我可以使用一个像GSON这样的库来处理调用和响应。有更简单的方法吗?
Thank you for your time.
谢谢你抽出时间来。
LE: it seems that according to their wiki
似乎是根据他们的*。
Note: Our read APIs have moved into Google Code. We recommend that all developers switch over to these new APIs to make sure that they benefit from all the latest features and bug fixes. See the API Changes page for details.
注意:我们的read api已经转移到谷歌代码中。我们建议所有开发人员切换到这些新的api,以确保从所有最新的特性和bug修复中获益。有关详细信息,请参阅API更改页面。
I have searched around but couldn't manage to get an idea. Their website is awful in providing java samples. On Google api on googlecode I can't find something to guide to. Please help as I am stuck...
我到处找过了,但还是想不出一个主意。他们的网站在提供java示例方面很糟糕。在googlecode上的谷歌api上,我找不到可以指导的内容。我被困住了,请帮忙……
1 个解决方案
#1
2
There are two Java libraries for Freebase which may give you a slightly higher level of abstraction:
有两个用于Freebase的Java库,它们可以提供稍微高一些的抽象级别:
https://github.com/narphorium/freebase-java-api (uses StringtreeJSON) http://code.google.com/p/freebase-java/source/browse/ (uses org.json.simple)
https://github.com/narphorium/freebase-java-api(使用StringtreeJSON) http://code.google.com/p/freebase-java/source/browse/(使用org.json.simple)
(From http://wiki.freebase.com/wiki/Java a good source of information on Freebase)
(从http://wiki.freebase.com/wiki/Java获得Freebase的良好信息来源)
#1
2
There are two Java libraries for Freebase which may give you a slightly higher level of abstraction:
有两个用于Freebase的Java库,它们可以提供稍微高一些的抽象级别:
https://github.com/narphorium/freebase-java-api (uses StringtreeJSON) http://code.google.com/p/freebase-java/source/browse/ (uses org.json.simple)
https://github.com/narphorium/freebase-java-api(使用StringtreeJSON) http://code.google.com/p/freebase-java/source/browse/(使用org.json.simple)
(From http://wiki.freebase.com/wiki/Java a good source of information on Freebase)
(从http://wiki.freebase.com/wiki/Java获得Freebase的良好信息来源)