[Developers] Creating new Relationships
Christopher R. Maden
crism at metaweb.com
Thu Feb 21 21:39:41 UTC 2008
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/ >
More information about the Developers
mailing list