[Developers] "one of" operator |=

augusto callejas acallejas at appliedminds.com
Fri Dec 5 22:26:35 UTC 2008


hi-

why can't "master_property|=" take a list with several values?

===
[
   {
     "creator" : null,
     "master_property" : null,
     "master_property|=" : [
       "/people/person/date_of_birth",
       "/people/person/height_meters",
       "/type/object/guid",
       "/common/topic/alias",
       "/people/person/weight_kg",
       "/type/object/name"
     ],
     "operation" : null,
     "source" : {
       "q:/type/object/guid" : "#9202a8c04000641f800000000003dc2f",
       "r:/type/object/guid" : [],
       "type" : "/people/person"
     },
     "target" : {
       "id" : null,
       "optional" : true,
       "type" : []
     },
     "target_value" : null,
     "timestamp" : null,
     "timestamp>=" : "292269055-12-02T16:47:04.192Z",
     "type" : "/type/link"
   }
]
---
{
   "code" : "/api/status/ok",
   "q1" : {
     "code" : "/api/status/error",
     "messages" : [
       {
         "code" : "/api/status/error/mql/parse",
         "info" : {
           "mode" : "read"
         },
         "message" : "Expected a dictionary or a list with one element  
in a read (were you trying to write?)",
         "path" : "master_property|=",
         "query" : [
           {
             "creator" : null,
             "error_inside" : "master_property|=",
             "master_property" : null,
             "master_property|=" : [
               "/people/person/date_of_birth",
               "/people/person/height_meters",
               "/type/object/guid",
               "/common/topic/alias",
               "/people/person/weight_kg",
               "/type/object/name"
             ],
             "operation" : null,
             "source" : {
               "q:/type/object/guid" :  
"#9202a8c04000641f800000000003dc2f",
               "r:/type/object/guid" : [],
               "type" : "/people/person"
             },
             "target" : {
               "id" : null,
               "optional" : true,
               "type" : []
             },
             "target_value" : null,
             "timestamp" : null,
             "timestamp>=" : "292269055-12-02T16:47:04.192Z",
             "type" : "/type/link"
           }
         ]
       }
     ]
   },
   "status" : "200 OK",
   "transaction_id" :  
"cache;cache01.p01.sjc1:8101;2008-12-05T18:38:26Z;0019"
}
===

i am able to run this query though:

===
[{
   "type":"/chemistry/chemical_element",
   "name":null,
   "atomic_number|=":[1,2,3],
   "atomic_number":null,
   "sort":"atomic_number"
}]
===

thanks
augusto.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freebase.com/pipermail/developers/attachments/20081205/d0acb05b/attachment.htm 


More information about the Developers mailing list