[Developers] cursor problem...

Marc Slayton marc at metaweb.com
Mon Jul 27 17:56:08 UTC 2009


Nevermind -- I've answered my own question. 

Envelope directives happen in a different place in the mql editor. 

Cheers -- 


----- Original Message -----
From: "Marc Slayton" <marc at metaweb.com>
To: developers at freebase.com
Sent: Monday, July 27, 2009 10:41:56 AM GMT -08:00 US/Canada Pacific
Subject: cursor problem...

I'd like to get a few hundred values 
returned from a simple query in freebase. 

>From the docs, it seems like cursors are the 
way to accomplish this.  To understand how 
cursors work, I tried pasting a few examples 
into the mql editor. 

I must be missing something obvious because even 
the simple cursor examples from the mql guide do 
not seem work. 

For example, this query from section 4.2.4 of the 
mql reference guide returns an error when pasted 
into the query editor: 

{
  "cursor":true,
  "query": [{
    "type":"/music/album",
    "artist":"The Police",
    "name":null,
    "limit":10
  }]
}

  
The error: 

http://tinyurl.com/kv2mtt

It seems like the editor doesn't recognize the 
"cursor" directive in the query envelope.

I tried a few permutations of mql looking
for typos, but couldn't get things working. 

Am I taking the wrong approach? 

Could someone demonstrate the mql syntax needed to 
retrieve more than 100 values from a simple query?









More information about the Developers mailing list