<div dir="ltr">Hi All,<div><br></div><div>Thanks for all of responds and great helps.</div><div><br></div><div>I went through the search API. It is exactly what I want. But I still confused with some arguments, "type"</div>
<div><br></div><div>What does this argument of &quot;type&quot; mean? And how to use it? What does &quot;statistically incompatible type&quot; and &quot;statistically compatible type&quot; mean? I didn&#39;t find examples in this page. I try some queries, but there is no difference.</div>
<div><br></div><div><a href="http://www.freebase.com/api/service/search?query=Madonna&amp;limit=1&amp;type=/people/person&amp;strict=true">http://www.freebase.com/api/service/search?query=Madonna&amp;limit=1&amp;type=/people/person&amp;strict=true</a><br>
</div><div><a href="http://www.freebase.com/api/service/search?query=Madonna&amp;limit=1&amp;type=/people/person&amp;strict=false">http://www.freebase.com/api/service/search?query=Madonna&amp;limit=1&amp;type=/people/person&amp;strict=false</a><br>
</div><div><br></div><div>Best,</div><div>Qi</div><div><br></div><div><br><br><div class="gmail_quote">On Tue, Sep 2, 2008 at 6:35 PM,  <span dir="ltr">&lt;<a href="mailto:developers-request@freebase.com">developers-request@freebase.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Send Developers mailing list submissions to<br>
 &nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:developers@freebase.com">developers@freebase.com</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
 &nbsp; &nbsp; &nbsp; &nbsp;<a href="http://lists.freebase.com/mailman/listinfo/developers" target="_blank">http://lists.freebase.com/mailman/listinfo/developers</a><br>
or, via email, send a message with subject or body &#39;help&#39; to<br>
 &nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:developers-request@freebase.com">developers-request@freebase.com</a><br>
<br>
You can reach the person managing the list at<br>
 &nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:developers-owner@freebase.com">developers-owner@freebase.com</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of Developers digest...&quot;<br>
<br>
<br>
Today&#39;s Topics:<br>
<br>
 &nbsp; 1. Re: different search results from freebase &amp; api (Eynard, Davide)<br>
 &nbsp; 2. Re: different search results from freebase &amp; api (Faye Harris)<br>
 &nbsp; 3. Re: different search results from freebase &amp; api (Tim Kientzle)<br>
 &nbsp; 4. Re: different search results from freebase &amp; api (Warren Harris)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Wed, 3 Sep 2008 00:29:46 +0000<br>
From: &quot;Eynard, Davide&quot; &lt;<a href="mailto:davide.eynard@hp.com">davide.eynard@hp.com</a>&gt;<br>
Subject: Re: [Developers] different search results from freebase &amp; api<br>
To: &quot;For discussions about MQL, Freebase API and apps built on<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Freebase&quot; &nbsp; &nbsp; &nbsp; &lt;<a href="mailto:developers@freebase.com">developers@freebase.com</a>&gt;<br>
Message-ID:<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;<a href="mailto:72AE9D04FE9DD4498133C97A3366DAA744683EC669@GVW0547EXC.americas.hpqcorp.net">72AE9D04FE9DD4498133C97A3366DAA744683EC669@GVW0547EXC.americas.hpqcorp.net</a>&gt;<br>
<br>
Content-Type: text/plain; charset=&quot;us-ascii&quot;<br>
<br>
Hi!<br>
<br>
Yes, actually searching for &quot;Louise Ciccone Ritchie&quot; via the Web interface<br>
does a much fuzzier search which, as far as I know, also takes into account<br>
&quot;also known as&quot; properties and substrings instead of exact matches.<br>
<br>
In this particular case the name is a substring of an alias of a common topic,<br>
so you can find the original topic id and name with a query like the following<br>
one:<br>
<br>
 &nbsp;{<br>
 &nbsp; &nbsp;&quot;alias~=&quot; : &quot;Louise Ciccone Ritchie&quot;,<br>
 &nbsp; &nbsp;&quot;id&quot; : null,<br>
 &nbsp; &nbsp;&quot;name&quot; : null,<br>
 &nbsp; &nbsp;&quot;type&quot; : &quot;/common/topic&quot;<br>
 &nbsp;}<br>
<br>
Hope the solution is not too trivial, let me know if you need something more<br>
general.<br>
<br>
Cheers,<br>
<br>
da<br>
<br>
From: <a href="mailto:developers-bounces@freebase.com">developers-bounces@freebase.com</a> [mailto:<a href="mailto:developers-bounces@freebase.com">developers-bounces@freebase.com</a>] On Behalf Of qi li<br>
Sent: Tuesday, September 02, 2008 5:07 PM<br>
To: <a href="mailto:crism@metaweb.com">crism@metaweb.com</a>; <a href="mailto:developers@freebase.com">developers@freebase.com</a><br>
Subject: [Developers] different search results from freebase &amp; api<br>
<br>
Dear All,<br>
<br>
When I played with freebase data and API, I found I could find search results when I used search query of &quot;Louise Ciccone Ritchie&quot; on web page (<a href="http://www.freebase.com/search?limit=30&amp;start=0&amp;query=Louise+Ciccone+Ritchie" target="_blank">http://www.freebase.com/search?limit=30&amp;start=0&amp;query=Louise+Ciccone+Ritchie</a>). But I failed &nbsp;at any results when I used MQL query (<a href="http://www.freebase.com/api/service/mqlread?queries={%22item%22:{%22query%22:{%22name%22:%22Louise%20Ciccone%20Ritchie%22,%22type%22:[]}}}" target="_blank">http://www.freebase.com/api/service/mqlread?queries={%22item%22:{%22query%22:{%22name%22:%22Louise%20Ciccone%20Ritchie%22,%22type%22:[]}}}</a>&lt;<a href="http://www.freebase.com/api/service/mqlread?queries=%7b%22item%22:%7b%22query%22:%7b%22name%22:%22Louise%20Ciccone%20Ritchie%22,%22type%22:%5b%5d%7d%7d%7d" target="_blank">http://www.freebase.com/api/service/mqlread?queries=%7b%22item%22:%7b%22query%22:%7b%22name%22:%22Louise%20Ciccone%20Ritchie%22,%22type%22:%5b%5d%7d%7d%7d</a>&gt;)<br>

<br>
Could anybody tell me the &quot;secret&quot;? I didn&#39;t correctly write MQL query or Mediapedia does more work in &quot;Fuzzy&quot; search part, that is, it provides some methods to directly map Louise Ciccone Ritchie to Madonna?<br>

<br>
Thank you very much!<br>
<br>
Best,<br>
--<br>
Qi Li<br>
School of Information Science<br>
University of Pittsburgh<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://lists.freebase.com/pipermail/developers/attachments/20080903/8b631465/attachment-0001.htm" target="_blank">http://lists.freebase.com/pipermail/developers/attachments/20080903/8b631465/attachment-0001.htm</a><br>

<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Tue, 02 Sep 2008 17:26:01 -0700<br>
From: Faye Harris &lt;<a href="mailto:faye@metaweb.com">faye@metaweb.com</a>&gt;<br>
Subject: Re: [Developers] different search results from freebase &amp; api<br>
To: &quot;For discussions about MQL, Freebase API and apps built on<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Freebase&quot; &lt;<a href="mailto:developers@freebase.com">developers@freebase.com</a>&gt;<br>
Message-ID: &lt;<a href="mailto:48BDD999.9080801@metaweb.com">48BDD999.9080801@metaweb.com</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Hi Qi,<br>
<br>
Search does more than querying topic names. Among other things, it looks<br>
for matches to your query in topic aliases, descriptions, and Wikipedia<br>
links. In this case, it found a topic (&quot;Madonna&quot;) that has an alias of<br>
&quot;Madonna Louise Ciccone Ritchie&quot;.<br>
<br>
Your MQL query, on the other hand, asks for things with &quot;Louise Ciccone<br>
Ritchie&quot; as its name and name only. As you&#39;ve found out, there is no<br>
such thing in Freebase.<br>
<br>
You can learn more about the search API at:<br>
<a href="http://www.freebase.com/view/guid/9202a8c04000641f8000000006ad84c9" target="_blank">http://www.freebase.com/view/guid/9202a8c04000641f8000000006ad84c9</a><br>
<br>
A very good resource for learning about MQL can be found at:<br>
<a href="http://www.freebase.com/view/guid/9202a8c04000641f800000000544e13e" target="_blank">http://www.freebase.com/view/guid/9202a8c04000641f800000000544e13e</a><br>
<br>
-- Faye<br>
<br>
<br>
qi li wrote:<br>
&gt; Dear All,<br>
&gt;<br>
&gt; When I played with freebase data and API, I found I could find search<br>
&gt; results when I used search query of &quot;Louise Ciccone Ritchie&quot; on web<br>
&gt; page<br>
&gt; (<a href="http://www.freebase.com/search?limit=30&amp;start=0&amp;query=Louise+Ciccone+Ritchie" target="_blank">http://www.freebase.com/search?limit=30&amp;start=0&amp;query=Louise+Ciccone+Ritchie</a><br>
&gt; &lt;<a href="http://www.freebase.com/search?limit=30&amp;start=0&amp;query=Louise+Ciccone+Ritchie" target="_blank">http://www.freebase.com/search?limit=30&amp;start=0&amp;query=Louise+Ciccone+Ritchie</a>&gt;).<br>
&gt; But I failed &nbsp;at any results when I used MQL query<br>
&gt; (<a href="http://www.freebase.com/api/service/mqlread?queries={%22item%22:{%22query%22:{%22name%22:%22Louise%20Ciccone%20Ritchie%22,%22type%22:[]}}}" target="_blank">http://www.freebase.com/api/service/mqlread?queries={%22item%22:{%22query%22:{%22name%22:%22Louise%20Ciccone%20Ritchie%22,%22type%22:[]}}}</a><br>

&gt; &lt;<a href="http://www.freebase.com/api/service/mqlread?queries=%7B%22item%22:%7B%22query%22:%7B%22name%22:%22Louise%20Ciccone%20Ritchie%22,%22type%22:%5B%5D%7D%7D%7D" target="_blank">http://www.freebase.com/api/service/mqlread?queries=%7B%22item%22:%7B%22query%22:%7B%22name%22:%22Louise%20Ciccone%20Ritchie%22,%22type%22:%5B%5D%7D%7D%7D</a>&gt;)<br>

&gt;<br>
&gt; Could anybody tell me the &quot;secret&quot;? I didn&#39;t correctly write MQL query<br>
&gt; or Mediapedia does more work in &quot;Fuzzy&quot; search part, that is, it<br>
&gt; provides some methods to directly map Louise Ciccone Ritchie to Madonna?<br>
&gt;<br>
&gt; Thank you very much!<br>
&gt;<br>
&gt; Best,<br>
&gt; --<br>
&gt; Qi Li<br>
&gt; School of Information Science<br>
&gt; University of Pittsburgh<br>
&gt;<br>
&gt; ------------------------------------------------------------------------<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Developers mailing list<br>
&gt; <a href="mailto:Developers@freebase.com">Developers@freebase.com</a><br>
&gt; <a href="http://lists.freebase.com/mailman/listinfo/developers" target="_blank">http://lists.freebase.com/mailman/listinfo/developers</a><br>
&gt;<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Tue, 2 Sep 2008 17:52:48 -0700<br>
From: Tim Kientzle &lt;<a href="mailto:tim@metaweb.com">tim@metaweb.com</a>&gt;<br>
Subject: Re: [Developers] different search results from freebase &amp; api<br>
To: &quot;For discussions about MQL, Freebase API and apps built on<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Freebase&quot; &lt;<a href="mailto:developers@freebase.com">developers@freebase.com</a>&gt;<br>
Message-ID: &lt;<a href="mailto:D52DD6BC-D0DB-4FFE-83EA-24447BDBB929@metaweb.com">D52DD6BC-D0DB-4FFE-83EA-24447BDBB929@metaweb.com</a>&gt;<br>
Content-Type: text/plain; charset=WINDOWS-1252; format=flowed;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;delsp=yes<br>
<br>
You might also try using the &quot;search API&quot;, which uses a ranking engine<br>
to generate &quot;likely&quot; matches for a piece of text. &nbsp;It&#39;s documented here:<br>
<br>
<a href="http://www.freebase.com/view/guid/9202a8c04000641f8000000006ad84c9" target="_blank">http://www.freebase.com/view/guid/9202a8c04000641f8000000006ad84c9</a><br>
<br>
This is very different from mqlread: &nbsp;mqlread is best when your<br>
constraints have structure (e.g., you&#39;re looking for actors who were<br>
born in a certain place) and when you want to get all possible<br>
matches. &nbsp; In contrast, search is best when you&#39;re dealing with<br>
informal text entry (Freebase.com uses the search API for autocomplete<br>
and basic search functionality) and you only want the &quot;best&quot; matches.<br>
<br>
Tim Kientzle<br>
<br>
<br>
On Sep 2, 2008, at 5:29 PM, Eynard, Davide wrote:<br>
<br>
&gt; Hi!<br>
&gt;<br>
&gt; Yes, actually searching for &quot;Louise Ciccone Ritchie&quot; via the Web<br>
&gt; interface<br>
&gt; does a much fuzzier search which, as far as I know, also takes into<br>
&gt; account<br>
&gt; ?also known as? properties and substrings instead of exact matches.<br>
&gt;<br>
&gt; In this particular case the name is a substring of an alias of a<br>
&gt; common topic,<br>
&gt; so you can find the original topic id and name with a query like the<br>
&gt; following<br>
&gt; one:<br>
&gt;<br>
&gt; &nbsp; {<br>
&gt; &nbsp; &nbsp; &quot;alias~=&quot; : &quot;Louise Ciccone Ritchie&quot;,<br>
&gt; &nbsp; &nbsp; &quot;id&quot; : null,<br>
&gt; &nbsp; &nbsp; &quot;name&quot; : null,<br>
&gt; &nbsp; &nbsp; &quot;type&quot; : &quot;/common/topic&quot;<br>
&gt; &nbsp; }<br>
&gt;<br>
&gt; Hope the solution is not too trivial, let me know if you need<br>
&gt; something more<br>
&gt; general.<br>
&gt;<br>
&gt; Cheers,<br>
&gt;<br>
&gt; da<br>
&gt;<br>
&gt; From: <a href="mailto:developers-bounces@freebase.com">developers-bounces@freebase.com</a> [mailto:<a href="mailto:developers-bounces@freebase.com">developers-bounces@freebase.com</a><br>
&gt; ] On Behalf Of qi li<br>
&gt; Sent: Tuesday, September 02, 2008 5:07 PM<br>
&gt; To: <a href="mailto:crism@metaweb.com">crism@metaweb.com</a>; <a href="mailto:developers@freebase.com">developers@freebase.com</a><br>
&gt; Subject: [Developers] different search results from freebase &amp; api<br>
&gt;<br>
&gt; Dear All,<br>
&gt;<br>
&gt; When I played with freebase data and API, I found I could find<br>
&gt; search results when I used search query of &quot;Louise Ciccone Ritchie&quot;<br>
&gt; on web page (<a href="http://www.freebase.com/search?limit=30&amp;start=0&amp;query=Louise+Ciccone+Ritchie" target="_blank">http://www.freebase.com/search?limit=30&amp;start=0&amp;query=Louise+Ciccone+Ritchie</a><br>

&gt; ). But I failed &nbsp;at any results when I used MQL query (<a href="http://www.freebase.com/api/service/mqlread?queries=" target="_blank">http://www.freebase.com/api/service/mqlread?queries=</a><br>
&gt; {%22item%22:{%22query%22:{%22name%22:%22Louise%20Ciccone%20Ritchie<br>
&gt; %22,%22type%22:[]}}})<br>
&gt;<br>
&gt; Could anybody tell me the &quot;secret&quot;? I didn&#39;t correctly write MQL<br>
&gt; query or Mediapedia does more work in &quot;Fuzzy&quot; search part, that is,<br>
&gt; it provides some methods to directly map Louise Ciccone Ritchie to<br>
&gt; Madonna?<br>
&gt;<br>
&gt; Thank you very much!<br>
&gt;<br>
&gt; Best,<br>
&gt; --<br>
&gt; Qi Li<br>
&gt; School of Information Science<br>
&gt; University of Pittsburgh<br>
&gt; _______________________________________________<br>
&gt; Developers mailing list<br>
&gt; <a href="mailto:Developers@freebase.com">Developers@freebase.com</a><br>
&gt; <a href="http://lists.freebase.com/mailman/listinfo/developers" target="_blank">http://lists.freebase.com/mailman/listinfo/developers</a><br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Tue, 2 Sep 2008 17:28:51 -0700<br>
From: Warren Harris &lt;<a href="mailto:warren@metaweb.com">warren@metaweb.com</a>&gt;<br>
Subject: Re: [Developers] different search results from freebase &amp; api<br>
To: &quot;For discussions about MQL, Freebase API and apps built on<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Freebase&quot; &lt;<a href="mailto:developers@freebase.com">developers@freebase.com</a>&gt;<br>
Message-ID: &lt;<a href="mailto:1AE275B4-8A57-45CF-84FC-EC90DCFF027C@metaweb.com">1AE275B4-8A57-45CF-84FC-EC90DCFF027C@metaweb.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;us-ascii&quot;<br>
<br>
<br>
On Sep 2, 2008, at 5:07 PM, qi li wrote:<br>
<br>
&gt; Dear All,<br>
&gt;<br>
&gt; When I played with freebase data and API, I found I could find<br>
&gt; search results when I used search query of &quot;Louise Ciccone Ritchie&quot;<br>
&gt; on web page (<a href="http://www.freebase.com/search?limit=30&amp;start=0&amp;query=Louise+Ciccone+Ritchie" target="_blank">http://www.freebase.com/search?limit=30&amp;start=0&amp;query=Louise+Ciccone+Ritchie</a><br>

&gt; ). But I failed &nbsp;at any results when I used MQL query (<a href="http://www.freebase.com/api/service/mqlread?queries=" target="_blank">http://www.freebase.com/api/service/mqlread?queries=</a><br>
&gt; {%22item%22:{%22query%22:{%22name%22:%22Louise%20Ciccone%20Ritchie<br>
&gt; %22,%22type%22:[]}}})<br>
&gt;<br>
&gt; Could anybody tell me the &quot;secret&quot;? I didn&#39;t correctly write MQL<br>
&gt; query or Mediapedia does more work in &quot;Fuzzy&quot; search part, that is,<br>
&gt; it provides some methods to directly map Louise Ciccone Ritchie to<br>
&gt; Madonna?<br>
<br>
Since names like &quot;Ciccone&quot; appear in the /common/topic/alias property,<br>
you could do a query like this:<br>
<br>
<a href="http://www.freebase.com/api/service/mqlread?queries={%22item%22" target="_blank">http://www.freebase.com/api/service/mqlread?queries={%22item%22</a>:<br>
{%22query%22:{%22name%22:null,%22/common/topic/alias~=%22:%22Ciccone<br>
%22,%22type%22:[]}}}<br>
<br>
However, it sounds like you&#39;re interested in general search with mql<br>
results, you can use this api instead:<br>
<br>
<a href="http://www.freebase.com/api/service/search?query=Ciccone&amp;limit=1" target="_blank">http://www.freebase.com/api/service/search?query=Ciccone&amp;limit=1</a><br>
<br>
See <a href="http://www.freebase.com/view/guid/9202a8c04000641f8000000006ad84c9" target="_blank">http://www.freebase.com/view/guid/9202a8c04000641f8000000006ad84c9</a><br>
for more info.<br>
<br>
Warren<br>
<br>
&gt;<br>
&gt;<br>
&gt; Thank you very much!<br>
&gt;<br>
&gt; Best,<br>
&gt; --<br>
&gt; Qi Li<br>
&gt; School of Information Science<br>
&gt; University of Pittsburgh<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Developers mailing list<br>
&gt; <a href="mailto:Developers@freebase.com">Developers@freebase.com</a><br>
&gt; <a href="http://lists.freebase.com/mailman/listinfo/developers" target="_blank">http://lists.freebase.com/mailman/listinfo/developers</a><br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://lists.freebase.com/pipermail/developers/attachments/20080902/542f91c4/attachment.htm" target="_blank">http://lists.freebase.com/pipermail/developers/attachments/20080902/542f91c4/attachment.htm</a><br>

-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: smime.p7s<br>
Type: application/pkcs7-signature<br>
Size: 3739 bytes<br>
Desc: not available<br>
Url : <a href="http://lists.freebase.com/pipermail/developers/attachments/20080902/542f91c4/attachment.bin" target="_blank">http://lists.freebase.com/pipermail/developers/attachments/20080902/542f91c4/attachment.bin</a><br>

<br>
------------------------------<br>
<br>
_______________________________________________<br>
Developers mailing list<br>
<a href="mailto:Developers@freebase.com">Developers@freebase.com</a><br>
<a href="http://lists.freebase.com/mailman/listinfo/developers" target="_blank">http://lists.freebase.com/mailman/listinfo/developers</a><br>
<br>
<br>
End of Developers Digest, Vol 19, Issue 2<br>
*****************************************<br>
</blockquote></div><br><br clear="all"><br>-- <br>Qi Li<br>School of Information Science<br>University of Pittsburgh<br><br>
</div></div>