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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With