[Developers] any_reverse?

John Giannandrea jg at metaweb.com
Wed Dec 5 18:11:41 UTC 2007


Arthur,
the master property in this case is broadcasts, so you want "/type/ 
reflect/any_master"  not  "any_reverse"

which one is master depends on how the schema was built.  this schema  
viewer displays a little [m] for the master side.
http://mjtemplate.org/examples/schemas/type.html?id=/user/cotton/default_domain/broadcaster

-jg


On Dec 5, 2007, at 9:55 AM, Arthur van Hoff wrote:

> I am trying to write a query to find the broadcaster for a podcast  
> without inverting the query. I am guess that I can use  
> “any_reverse”, but the query below is not working for me and I can’t  
> find a good explanation of how it is supposed to work. Any  
> suggestions on what I might be doing wrong?
>
> “query”: [{
>     "name": "ABC News",
>     "type": "/user/cotton/default_domain/podcast",
>      "/type/reflect/any_reverse": [{
>         "optional":true,
>         "name": null,
>         "link": {
>             "master_property": "/user/cotton/default_domain/ 
> broadcaster/broadcasts"
>          }
>     }]
> }]
>
> PS: I know there is a back pointer "/user/cotton/default_domain/ 
> broadcast/broadcaster” which makes this easy, but I am trying to  
> understand how to do it the hard way.
> ___________________________________________
> Arthur van Hoff, CTO Software and Services, Dell-ZING
> W: 650-267-2413, F: 650-267-2498, M: 650-283-0842
>
> _______________________________________________
> Developers mailing list
> Developers at freebase.com
> http://lists.freebase.com/mailman/listinfo/developers



More information about the Developers mailing list