[Developers] Creating new Relationships
Christian Hirsch
hirsch.christian at gmail.com
Thu Feb 21 21:27:38 UTC 2008
I am getting the "story_by" property using a simple query like this:
{
"query" : {
"*" : [],
"id" : "movieID",
"type" : "/film/film"
}
}
the answer looks like:
"result": {
"story_by": [...],
"directed_by": [...],
"starring": [...
I couldn't get the "/film/film/story_by" property from that response... what
am I doing wrong?
Cheers,
Christian
On Thu, Feb 21, 2008 at 12:16 PM, Christopher R. Maden <crism at metaweb.com>
wrote:
> 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/ >
> _______________________________________________
> Developers mailing list
> Developers at freebase.com
> http://lists.freebase.com/mailman/listinfo/developers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freebase.com/pipermail/developers/attachments/20080222/bf587263/attachment.htm
More information about the Developers
mailing list