[Developers] Creating new Relationships

Christian Hirsch hirsch.christian at gmail.com
Sat Feb 23 21:54:41 UTC 2008


alright, it works.

thanks,
Christian



On Fri, Feb 22, 2008 at 10:39 AM, Christopher R. Maden <crism at metaweb.com>
wrote:

> Christian Hirsch wrote:
> > 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?
>
> You're not doing anything wrong, you're just missing one intermediate
> step.
>
> If you ask for
>
> "type":"/foo/bar"
> "*":[]
>
> then the property values you get back are for properties of the /foo/bar
> type, and can be referred to as /foo/bar/baz.
>
> (There is an exception for the properties of /type/object, such as type
> itself, name, creator, timestamp, etc.)
>
> ~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/20080224/a1728664/attachment.htm 


More information about the Developers mailing list