<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <author>
    <name>danm</name>
    <uri>http://www.freebase.com:80/view/user/danm</uri>
  </author>
    <generator uri="http://www.freebase.com/">Freebase Atom Feed Generator</generator>
    <id>http://www.freebase.com:80/view/guid/9202a8c04000641f800000000544e13e</id>
    <link rel="self" href="http://www.freebase.com:80/feed/discuss/topic/guid/9202a8c04000641f800000000544e13e"/>
    <title>3. The Metaweb Query Language</title>
    <updated>2008-08-08T18:46:03Z</updated>
  <entry>
    <author>
    <name>crism</name>
    <uri>http://www.freebase.com:80/view/user/crism</uri>
  </author>
    <content type="html">You use cursors. Ask for &lt;strong&gt;cursor:null&lt;/strong&gt; in your first query. It will come back with a token filled in; pass that back to get the next set of results and a new cursor.</content>
    <id>http://www.freebase.com:80/view/guid/9202a8c04000641f8000000008d9525c</id>
    <link rel="alternate" type="text/html" href="http://www.freebase.com:80/view/guid/9202a8c04000641f8000000008d9525c" title="3. The Metaweb Query Language: Limit and offset"/>
    <summary type="html">You use cursors. Ask for cursor:null in your first query. It will come back with a token filled in;...</summary>
    <title>3. The Metaweb Query Language: Limit and offset</title>
    <updated>2008-08-04T13:23:58.0000Z</updated>
  </entry><entry>
    <author>
    <name>rishav</name>
    <uri>http://www.freebase.com:80/view/user/rishav</uri>
  </author>
    <content type="html">&lt;p&gt;I figured enough that you can use &amp;quot;limit&amp;quot; reserved to get the first few results of a query, &lt;/p&gt;&lt;p&gt;&amp;nbsp;say for some query&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;quot;limit&amp;quot; : 5&lt;/p&gt;&lt;p&gt;&amp;nbsp;this fetches the first five ,&amp;nbsp;&lt;/p&gt;&lt;p&gt;how do I fetch the next 5 &lt;/p&gt;</content>
    <id>http://www.freebase.com:80/view/guid/9202a8c04000641f8000000008d95168</id>
    <link rel="alternate" type="text/html" href="http://www.freebase.com:80/view/guid/9202a8c04000641f8000000008d95168" title="3. The Metaweb Query Language: Limit and offset"/>
    <summary type="html">I figured enough that you can use &amp;quot;limit&amp;quot; reserved to get the first few results of a...</summary>
    <title>3. The Metaweb Query Language: Limit and offset</title>
    <updated>2008-08-04T13:06:21.0010Z</updated>
  </entry><entry>
    <author>
    <name>dwiel</name>
    <uri>http://www.freebase.com:80/view/user/dwiel</uri>
  </author>
    <content type="html">&lt;p&gt;something which is not documented here is that &amp;quot;optional&amp;quot; : &amp;quot;forbidden&amp;quot; can be used to require that nothing like that object exist.&lt;/p&gt;</content>
    <id>http://www.freebase.com:80/view/guid/9202a8c04000641f80000000086125fe</id>
    <link rel="alternate" type="text/html" href="http://www.freebase.com:80/view/guid/9202a8c04000641f80000000086125fe" title="3. The Metaweb Query Language: Howto forbid a property from existing"/>
    <summary type="html">something which is not documented here is that &amp;quot;optional&amp;quot; : &amp;quot;forbidden&amp;quot; can be...</summary>
    <title>3. The Metaweb Query Language: Howto forbid a property from existing</title>
    <updated>2008-06-12T22:09:49.0005Z</updated>
  </entry><entry>
    <author>
    <name>dorjeduck</name>
    <uri>http://www.freebase.com:80/view/user/dorjeduck</uri>
  </author>
    <content type="html">&lt;p&gt;&lt;p&gt;Good morning all. &lt;/p&gt;&lt;p&gt;Has a random feature become manifest in the meantime or is is on the agenda?&lt;/p&gt;&lt;p&gt;Cheers&lt;/p&gt;&lt;p&gt;&amp;nbsp;martin &lt;/p&gt;&lt;/p&gt;</content>
    <id>http://www.freebase.com:80/view/guid/9202a8c04000641f8000000008599a0c</id>
    <link rel="alternate" type="text/html" href="http://www.freebase.com:80/view/guid/9202a8c04000641f8000000008599a0c" title="3. The Metaweb Query Language: sort by random"/>
    <summary type="html">Good morning all.  Has a random feature become manifest in the meantime or is is on the agenda? Cheers...</summary>
    <title>3. The Metaweb Query Language: sort by random</title>
    <updated>2008-06-06T07:11:39.0007Z</updated>
  </entry><entry>
    <author>
    <name>cheunger</name>
    <uri>http://www.freebase.com:80/view/user/cheunger</uri>
  </author>
    <content type="html">&lt;p&gt;No problem!&amp;nbsp; One thing though... the query may time out on types with a large number of instances.&lt;/p&gt;</content>
    <id>http://www.freebase.com:80/view/guid/9202a8c04000641f8000000008525b28</id>
    <link rel="alternate" type="text/html" href="http://www.freebase.com:80/view/guid/9202a8c04000641f8000000008525b28" title="3. The Metaweb Query Language: MQL query for instance count"/>
    <summary type="html">No problem!&amp;nbsp; One thing though... the query may time out on types with a large number of...</summary>
    <title>3. The Metaweb Query Language: MQL query for instance count</title>
    <updated>2008-06-02T16:46:43.0007Z</updated>
  </entry><entry>
    <author>
    <name>amanshakya</name>
    <uri>http://www.freebase.com:80/view/user/amanshakya</uri>
  </author>
    <content type="html">&lt;p&gt;Thanks a lot&amp;nbsp;&lt;a href="../view/user/cheunger"&gt; cheunger&lt;/a&gt;. That was of great help.&lt;/p&gt;</content>
    <id>http://www.freebase.com:80/view/guid/9202a8c04000641f800000000850f457</id>
    <link rel="alternate" type="text/html" href="http://www.freebase.com:80/view/guid/9202a8c04000641f800000000850f457" title="3. The Metaweb Query Language: MQL query for instance count"/>
    <summary type="html">Thanks a lot&amp;nbsp; cheunger. That was of great help. </summary>
    <title>3. The Metaweb Query Language: MQL query for instance count</title>
    <updated>2008-06-01T14:34:09.0000Z</updated>
  </entry><entry>
    <author>
    <name>cheunger</name>
    <uri>http://www.freebase.com:80/view/user/cheunger</uri>
  </author>
    <content type="html">&lt;p&gt;&lt;p&gt;{&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;quot;type&amp;quot; : &amp;quot;/type/type_name&amp;quot;,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;quot;return&amp;quot; : &amp;quot;count&amp;quot; &lt;/p&gt;&lt;p&gt;} &lt;/p&gt;&lt;p&gt;I tried to find the documentation for this, but I wasn't able to.&amp;nbsp; We're in the process of cleaning up the documenation, and I am sure will be included.&lt;/p&gt;&lt;/p&gt;</content>
    <id>http://www.freebase.com:80/view/guid/9202a8c04000641f8000000008502d79</id>
    <link rel="alternate" type="text/html" href="http://www.freebase.com:80/view/guid/9202a8c04000641f8000000008502d79" title="3. The Metaweb Query Language: MQL query for instance count"/>
    <summary type="html">{ &amp;nbsp;&amp;quot;type&amp;quot; : &amp;quot;/type/type_name&amp;quot;, &amp;nbsp;&amp;quot;return&amp;quot; : &amp;quot;count&amp;quot;  ...</summary>
    <title>3. The Metaweb Query Language: MQL query for instance count</title>
    <updated>2008-06-01T03:33:51.0000Z</updated>
  </entry><entry>
    <author>
    <name>amanshakya</name>
    <uri>http://www.freebase.com:80/view/user/amanshakya</uri>
  </author>
    <content type="html">&lt;p&gt;&lt;p&gt;Helo,&lt;/p&gt;&lt;p&gt;I am trying to write an MQL to count the number of instances of a given type but not being able to figure out. Can anyone help please?&amp;nbsp;&lt;/p&gt;&lt;/p&gt;</content>
    <id>http://www.freebase.com:80/view/guid/9202a8c04000641f80000000084e75ca</id>
    <link rel="alternate" type="text/html" href="http://www.freebase.com:80/view/guid/9202a8c04000641f80000000084e75ca" title="3. The Metaweb Query Language: MQL query for instance count"/>
    <summary type="html">Helo, I am trying to write an MQL to count the number of instances of a given type but not being...</summary>
    <title>3. The Metaweb Query Language: MQL query for instance count</title>
    <updated>2008-05-31T11:24:14.0012Z</updated>
  </entry><entry>
    <author>
    <name>cheunger</name>
    <uri>http://www.freebase.com:80/view/user/cheunger</uri>
  </author>
    <content type="html">&lt;p&gt;Currently there is no way to have MQL return a random set of items.&amp;nbsp; You might want to post this as an enhancement request &lt;a href="/site/feedback"&gt;here&lt;/a&gt;.&lt;/p&gt;</content>
    <id>http://www.freebase.com:80/view/guid/9202a8c04000641f8000000007c666c1</id>
    <link rel="alternate" type="text/html" href="http://www.freebase.com:80/view/guid/9202a8c04000641f8000000007c666c1" title="3. The Metaweb Query Language: sort by random"/>
    <summary type="html">Currently there is no way to have MQL return a random set of items.&amp;nbsp; You might want to post...</summary>
    <title>3. The Metaweb Query Language: sort by random</title>
    <updated>2008-04-01T02:47:13.0007Z</updated>
  </entry><entry>
    <author>
    <name>divideby0</name>
    <uri>http://www.freebase.com:80/view/user/divideby0</uri>
  </author>
    <content type="html">&lt;p&gt;&lt;p&gt;is there any way to retrieve a random item in list of items?&amp;nbsp; I often run into scenarios where i want to test a random series of (valid) us addresses against my business rules.&amp;nbsp; it would be great if i could so something like this:&lt;/p&gt;&lt;p&gt;&amp;nbsp;{&lt;/p&gt;&lt;pre&gt;  &amp;quot;&lt;strike&gt;query&lt;/strike&gt;&amp;quot; : [&lt;br /&gt;    {&lt;br /&gt;      &amp;quot;citytown&amp;quot; : &lt;strong&gt;null&lt;/strong&gt;,&lt;br /&gt;      &amp;quot;limit&amp;quot; : 10,&lt;br /&gt;      &amp;quot;sort&amp;quot; : &lt;strong&gt;random&lt;/strong&gt;,&lt;br /&gt;      &amp;quot;state_province_region&amp;quot; : &lt;strong&gt;null&lt;/strong&gt;,&lt;br /&gt;      &amp;quot;street_address&amp;quot; : &lt;strong&gt;null&lt;/strong&gt;,&lt;br /&gt;      &amp;quot;type&amp;quot; : &amp;quot;/&lt;u&gt;location&lt;/u&gt;/mailing_address&amp;quot;&lt;br /&gt;    }&lt;br /&gt;  ]&lt;/pre&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/p&gt;</content>
    <id>http://www.freebase.com:80/view/guid/9202a8c04000641f8000000007bee476</id>
    <link rel="alternate" type="text/html" href="http://www.freebase.com:80/view/guid/9202a8c04000641f8000000007bee476" title="3. The Metaweb Query Language: sort by random"/>
    <summary type="html">is there any way to retrieve a random item in list of items?&amp;nbsp; I often run into scenarios where...</summary>
    <title>3. The Metaweb Query Language: sort by random</title>
    <updated>2008-03-28T21:47:37.0012Z</updated>
  </entry><entry>
    <author>
    <name>cheunger</name>
    <uri>http://www.freebase.com:80/view/user/cheunger</uri>
  </author>
    <content type="html">&lt;p&gt;Good question - currently, MQL supports constraints on number and datetime properties, but not properties where the expected type is something other than that.&amp;nbsp; I'll pass your request on to the MQL team.&lt;/p&gt;</content>
    <id>http://www.freebase.com:80/view/guid/9202a8c04000641f8000000006f49669</id>
    <link rel="alternate" type="text/html" href="http://www.freebase.com:80/view/guid/9202a8c04000641f8000000006f49669" title="3. The Metaweb Query Language: requesting lists with minimum counts"/>
    <summary type="html">Good question - currently, MQL supports constraints on number and datetime properties, but not...</summary>
    <title>3. The Metaweb Query Language: requesting lists with minimum counts</title>
    <updated>2008-01-16T23:52:17.0007Z</updated>
  </entry><entry>
    <author>
    <name>lmz</name>
    <uri>http://www.freebase.com:80/view/user/lmz</uri>
  </author>
    <content type="html">&lt;p&gt;&lt;p&gt;Is there any way to require a number of items in a list?&amp;nbsp; For example, query for all movie actors with 20+ films to their name?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/p&gt;</content>
    <id>http://www.freebase.com:80/view/guid/9202a8c04000641f8000000006f48bb2</id>
    <link rel="alternate" type="text/html" href="http://www.freebase.com:80/view/guid/9202a8c04000641f8000000006f48bb2" title="3. The Metaweb Query Language: requesting lists with minimum counts"/>
    <summary type="html">Is there any way to require a number of items in a list?&amp;nbsp; For example, query for all movie...</summary>
    <title>3. The Metaweb Query Language: requesting lists with minimum counts</title>
    <updated>2008-01-16T20:47:48.0012Z</updated>
  </entry><entry>
    <author>
    <name>jdouglas</name>
    <uri>http://www.freebase.com:80/view/user/jdouglas</uri>
  </author>
    <content type="html">&lt;p&gt;You are correct that this section is incorrect.  We need to correct that.  Two issues:&lt;br /&gt;
&lt;br /&gt;
1) the syntax for guids in the ID field just changed to /guid/9202a8c04000641f800000000006df1b&lt;br /&gt;
2) if there's a human-readable ID for a topic, that we will be returned rather than the guid, so as you pointed out: /topic/en/the_police.&lt;/p&gt;</content>
    <id>http://www.freebase.com:80/view/guid/9202a8c04000641f8000000005f15e2c</id>
    <link rel="alternate" type="text/html" href="http://www.freebase.com:80/view/guid/9202a8c04000641f8000000005f15e2c" title="3. The Metaweb Query Language: 3.2.3 Suggested Correction"/>
    <summary type="html">You are correct that this section is incorrect. We need to correct that. Two issues:
1) the...</summary>
    <title>3. The Metaweb Query Language: 3.2.3 Suggested Correction</title>
    <updated>2007-10-13T00:03:21.0007Z</updated>
  </entry><entry>
    <author>
    <name>lee</name>
    <uri>http://www.freebase.com:80/view/user/lee</uri>
  </author>
    <content type="html">&lt;p&gt;In section 3.2.3, and example is given on how to get the ID of an object, more specifically, its guid.  However, following along with the example, the online query editor actually returns the full-qualified name (right?), for example: "topic/en/the_police."&lt;/p&gt;</content>
    <id>http://www.freebase.com:80/view/guid/9202a8c04000641f8000000005f13e53</id>
    <link rel="alternate" type="text/html" href="http://www.freebase.com:80/view/guid/9202a8c04000641f8000000005f13e53" title="3. The Metaweb Query Language: 3.2.3 Suggested Correction"/>
    <summary type="html">In section 3.2.3, and example is given on how to get the ID of an object, more specifically, its...</summary>
    <title>3. The Metaweb Query Language: 3.2.3 Suggested Correction</title>
    <updated>2007-10-12T01:44:02.0012Z</updated>
  </entry>
</feed>