我想开发一个 Freebase java 应用程序,让您可以浏览 Freebase。
我认为一个好的起点是模仿 Freebase Schema Explorer,并允许我的应用程序的用户“向下钻取”域、域中的类型,然后是类型中的实例。
有人可以帮助您检索域列表吗?
那么该域中的列表? ETC...
然后,用户可以选择一个域,我想预设该域内的类型列表,依此类推,直到他们找到他们正在调查的一个或多个条目。
域的 MQL:
[{
"id": null,
"name": null,
"type": "/type/domain",
"!/freebase/domain_category/domains": {
"id": "/category/commons"
}
}]
The "!/freebase/domain_category/domains"
其中的子句是将事物限制为仅公共(官方)域 - 否则您将获得为每个用户自动创建的域,并且可能不是您想要的域。
域中的类型:
[{
"id": null,
"name": null,
"type": "/type/type",
"domain": "/cvg"
}]
Replace "/cvg"
作为适当的。
类型的实例:
[{
"id": null,
"name": null,
"type": "/cvg/computer_videogame"
}]
Replace "/cvg/computer_videogame"
作为适当的。
这至少应该让你开始。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)