[Developers] FreeSpin - Successor to CineSpin

John Giannandrea jg at metaweb.com
Wed Sep 12 18:47:50 UTC 2007


  Ketan Anjaria wrote:
> FreeSpin is the latest app I am working on for Freebase.
> http://kidbombay.com/clients/freebase/freeSpin/
> It works very similar to CineSpin in that it lets you view  
> relationships to objects through specific queries.
> Currently we have a Family Query which returns children/parents for  
> an object and a Business query which returns employers, employees,  
> board memberships/ board members for an object.

Hi Ketan
There is a different way to do this, which is to use /type/reflect/ 
any_master
and /type/reflect/any_reverse to get *any* link between two objects.
You can still constrain the links by domain, see the example below.
This way you could have one query that lets you see any relations
in any one domain.
To deal with CVTs the query gets a little more complex, but its still  
doable.
-jg


{
   "query":[{
     "/type/reflect/any_master":[{
       "link":{
         "master_property":{
           "name":null,
           "schema":{
             "domain":"/business"
           }
         }
       },
       "name":null,
       "optional":true,
       "type":"/common/topic"
     }],
     "/type/reflect/any_reverse":[{
       "link":{
         "master_property":{
           "name":null,
           "schema":{
             "domain":"/business"
           }
         }
       },
       "name":null,
       "optional":true,
       "type":"/common/topic"
     }],
     "name":"Danny Hillis",
     "type":"/common/topic"
   }]
}



More information about the Developers mailing list