Is there a hierarchical representation of the Freebase types?

余生长醉 提交于 2019-12-07 04:13:43

问题


For example, if some topic (Ex: Texas) is of type /location/citytown, I also see that there is a type "/location/location" attached to the same topic. In addition, here as the topic is the name of a city or town, it is also by default a general location, right? So, would that conclude if a topic has a type /location/citytown, then it would by default have /location/location also as a type associated with the same topic?

In summary, does Freebase have a hierarchical representation of the types in a way that lets us understand that if something is a /location/citytown, then it is also a /location/location, and so on for other cases too?


回答1:


There isn't a hierarchical representation as such, but types have a /freebase/type_hints/included_types property which specifies the types which the Freebase web client will automatically include when a type is asserted. You can see these listed in the web client or fetch them with an MQL query.

Important points to note here are that these are hints only: nothing enforces the fact that a /location/citytown must be a /location/location, and that it is only the web client which automatically adds the included types - if you are creating topics by any other means, you'll have to add the included types yourself.



来源:https://stackoverflow.com/questions/14153865/is-there-a-hierarchical-representation-of-the-freebase-types

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!