使用MQL在Freebase中查找属性描述

时间:2012-09-16 16:02:31

标签: freebase mql

我疯狂地试图获取属性描述,我的意思是出现在模式中的那些...

1)文本服务找不到属性描述:   https://www.googleapis.com/freebase/v1/text/people/person/profession

2)属性不包括/ common / topic所以他们没有/ common / topic / description?!我是对的吗?

3)/ freebase / property_hint(或某些东西......)不适用于描述...

感谢 卢卡

2 个答案:

答案 0 :(得分:1)

属性描述的文本存储在/ freebase / documentation_object / tip中。您可以查询like this

{
  "id": "/people/person/profession",
  "/freebase/documented_object/tip": null
}​

为了解决这些问题,我经常发现在这个主题中滚动原始的Freebase三元组很有用:

http://dev.freebase.com/people/person/profession?links

在那里你可以看到架构和数据之间的直接关系。

答案 1 :(得分:0)

只需使用带有属性ID的Text API,例如https://www.googleapis.com/freebase/v1/text/type/property

顺便说一下,一个对象不需要具有该类型的特定类型的属性,例如,如果您要查看/ type / property对象,您会看到它在事实上有一个/ common / topic / article属性,你可以遵循它最终导致文本blob,但使用Text API更容易。

相关问题