[Developers] Query with : in id string returns an error

Jesse Wang wjxhome at gmail.com
Tue Jun 10 17:48:49 UTC 2008


I try to use MQL read to do a query say for say "2001: A Space Odyssey", as
in:
{
  "*" : null,
  "id" : "/topic/en/2001:_a_space_odyssey"
}

but I got an error as:
{
  "code" : "/api/status/error",
  "messages" : [
    {
      "code" : "/api/status/error/mql/type",
      "info" : {
        "expected_type" : "/type/id",
        "value" : "/topic/en/2001:_a_space_odyssey",
        "value_type" : "string"
      },
      "message" : "/topic/en/2001:_a_space_odyssey is a JSON string, but the
expected type is /type/id"
    }
  ]
}
However, if I used words like "Bill Gates" (i.e. replacing
"../en/2001:_a..." with "../en/bill_gates"), it works fine, escaping (%3A)
doesn't seem to help, any ideas?

Thanks.
-- 
Jesse
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freebase.com/pipermail/developers/attachments/20080610/ccc61762/attachment.htm 


More information about the Developers mailing list