[Developers] Creating new Relationships

Christopher R. Maden crism at metaweb.com
Wed Feb 20 23:16:31 UTC 2008


Christian Hirsch wrote:
> So my question is: given only the 3 variables, What is the best way to 
> find out, that I need to use the type "/film/film"?

The relationship (or property) is not “story_by,” it is 
“/film/film/story_by.”  A shorthand is allowed when the type is known, 
but the full form is always OK.

How did you find that the property is “story_by”?  Anywhere you found 
that, you should also have been able to find the full form.

> The question is again: how do I find out that the new type which needs 
> to be assigned to the person is "/film/film_story_contributor"?

A property is an object in Freebase, just like everything else.  The 
Property type has properties, and instances of Property (like story_by) 
have property values themselves.  In this case, what you are looking for 
is the Expected Type property, which tells you what kind of thing should 
be found at the other end.

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


More information about the Developers mailing list