[Developers] Compound/Standard Type

Christopher R. Maden crism at metaweb.com
Tue Apr 1 23:35:07 UTC 2008


Torbin Pace wrote:
> I am currently trying to figure out how to determine whether or not a 
> type is Standard/Compound/Enumerated etc. through use of the mql api.
> Right now I am pulling in a listing of types by domain and I'm wondering 
> if there is a specific property that shows the value I'm looking for, or if
> there are a set of properties that I need to look at.

You are looking for three properties:

/freebase/type_hints/mediator is True if a type is a compound value type 
(which we used to call mediators).

/freebase/type_hints/minor is True if a type is a supporting type.

/freebase/type_hints/enumeration is True if a type is enumerated.

The properties may be explicitly False or may be absent altogether.

~Chris
-- 
Christopher R. Maden
Data Architect
Metaweb Technologies, Inc.
<URL: http://www.metaweb.com/ >


More information about the Developers mailing list