[Developers] How do you ask MQL to get a count of the number of available results?

Will Moffat willmoffat at metaweb.com
Sat Jan 5 22:57:07 UTC 2008


Hi Indy,

> Hi, we're trying to ask freebase how many topics of a particular  
> type exist. Below is what we tried, but it doesn't work - is this  
> even available?

The (undocumented) syntax is "return":"count"

So this is what you're looking for:
{
   "query" : [
     {
       "return" : "count",
       "type" : "/user/corallink/default_domain/underwater_location"
     }
   ]
}

regards,
--Will



More information about the Developers mailing list