Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a hierarchical representation of the Freebase types?

Tags:

freebase

mql

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?

like image 790
London guy Avatar asked Jan 04 '13 08:01

London guy


1 Answers

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.

like image 116
Philip Kendall Avatar answered Sep 21 '22 13:09

Philip Kendall