[Data-modeling] surprised that I could assign properties without also typing an object with the property's parent type

John Giannandrea jg at metaweb.com
Thu Jul 16 16:22:20 UTC 2009


Raymond Yee wrote:
> The question I was mulling this morning was whether a Freebase object
> can be assigned properties without also being typed with the  
> property's
> parent type.

Yes, MQL does not enforce that an object is typed any particular way.  
The type system is non-normative.
Sometimes we refer to this feature as "bare properties" that you can  
have any specific property regardless of your types.

The freebase.com application will assert a type on the target topic  
when you enter a topic value in a property field.  It does this by  
using the expected_type property of /type/property to figure out what  
the destination type should be.  MQL is acting at a lower level and  
does not enforce that.

-jg




More information about the Data-modeling mailing list