<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 "type" mean? And how to use it? What does "statistically incompatible type" and "statistically compatible type" mean? I didn'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&limit=1&type=/people/person&strict=true">http://www.freebase.com/api/service/search?query=Madonna&limit=1&type=/people/person&strict=true</a><br>
</div><div><a href="http://www.freebase.com/api/service/search?query=Madonna&limit=1&type=/people/person&strict=false">http://www.freebase.com/api/service/search?query=Madonna&limit=1&type=/people/person&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"><<a href="mailto:developers-request@freebase.com">developers-request@freebase.com</a>></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>
<a href="mailto:developers@freebase.com">developers@freebase.com</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<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 'help' to<br>
<a href="mailto:developers-request@freebase.com">developers-request@freebase.com</a><br>
<br>
You can reach the person managing the list at<br>
<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 "Re: Contents of Developers digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: different search results from freebase & api (Eynard, Davide)<br>
2. Re: different search results from freebase & api (Faye Harris)<br>
3. Re: different search results from freebase & api (Tim Kientzle)<br>
4. Re: different search results from freebase & api (Warren Harris)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Wed, 3 Sep 2008 00:29:46 +0000<br>
From: "Eynard, Davide" <<a href="mailto:davide.eynard@hp.com">davide.eynard@hp.com</a>><br>
Subject: Re: [Developers] different search results from freebase & api<br>
To: "For discussions about MQL, Freebase API and apps built on<br>
Freebase" <<a href="mailto:developers@freebase.com">developers@freebase.com</a>><br>
Message-ID:<br>
<<a href="mailto:72AE9D04FE9DD4498133C97A3366DAA744683EC669@GVW0547EXC.americas.hpqcorp.net">72AE9D04FE9DD4498133C97A3366DAA744683EC669@GVW0547EXC.americas.hpqcorp.net</a>><br>
<br>
Content-Type: text/plain; charset="us-ascii"<br>
<br>
Hi!<br>
<br>
Yes, actually searching for "Louise Ciccone Ritchie" via the Web interface<br>
does a much fuzzier search which, as far as I know, also takes into account<br>
"also known as" 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>
{<br>
"alias~=" : "Louise Ciccone Ritchie",<br>
"id" : null,<br>
"name" : null,<br>
"type" : "/common/topic"<br>
}<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 & 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 "Louise Ciccone Ritchie" on web page (<a href="http://www.freebase.com/search?limit=30&start=0&query=Louise+Ciccone+Ritchie" target="_blank">http://www.freebase.com/search?limit=30&start=0&query=Louise+Ciccone+Ritchie</a>). But I failed 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><<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>>)<br>
<br>
Could anybody tell me the "secret"? I didn't correctly write MQL query or Mediapedia does more work in "Fuzzy" 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 <<a href="mailto:faye@metaweb.com">faye@metaweb.com</a>><br>
Subject: Re: [Developers] different search results from freebase & api<br>
To: "For discussions about MQL, Freebase API and apps built on<br>
Freebase" <<a href="mailto:developers@freebase.com">developers@freebase.com</a>><br>
Message-ID: <<a href="mailto:48BDD999.9080801@metaweb.com">48BDD999.9080801@metaweb.com</a>><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 ("Madonna") that has an alias of<br>
"Madonna Louise Ciccone Ritchie".<br>
<br>
Your MQL query, on the other hand, asks for things with "Louise Ciccone<br>
Ritchie" as its name and name only. As you'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>
> Dear All,<br>
><br>
> When I played with freebase data and API, I found I could find search<br>
> results when I used search query of "Louise Ciccone Ritchie" on web<br>
> page<br>
> (<a href="http://www.freebase.com/search?limit=30&start=0&query=Louise+Ciccone+Ritchie" target="_blank">http://www.freebase.com/search?limit=30&start=0&query=Louise+Ciccone+Ritchie</a><br>
> <<a href="http://www.freebase.com/search?limit=30&start=0&query=Louise+Ciccone+Ritchie" target="_blank">http://www.freebase.com/search?limit=30&start=0&query=Louise+Ciccone+Ritchie</a>>).<br>
> But I failed at any results when I used MQL query<br>
> (<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>
> <<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>>)<br>
><br>
> Could anybody tell me the "secret"? I didn't correctly write MQL query<br>
> or Mediapedia does more work in "Fuzzy" search part, that is, it<br>
> 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>
><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>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Tue, 2 Sep 2008 17:52:48 -0700<br>
From: Tim Kientzle <<a href="mailto:tim@metaweb.com">tim@metaweb.com</a>><br>
Subject: Re: [Developers] different search results from freebase & api<br>
To: "For discussions about MQL, Freebase API and apps built on<br>
Freebase" <<a href="mailto:developers@freebase.com">developers@freebase.com</a>><br>
Message-ID: <<a href="mailto:D52DD6BC-D0DB-4FFE-83EA-24447BDBB929@metaweb.com">D52DD6BC-D0DB-4FFE-83EA-24447BDBB929@metaweb.com</a>><br>
Content-Type: text/plain; charset=WINDOWS-1252; format=flowed;<br>
delsp=yes<br>
<br>
You might also try using the "search API", which uses a ranking engine<br>
to generate "likely" matches for a piece of text. It'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: mqlread is best when your<br>
constraints have structure (e.g., you're looking for actors who were<br>
born in a certain place) and when you want to get all possible<br>
matches. In contrast, search is best when you'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 "best" matches.<br>
<br>
Tim Kientzle<br>
<br>
<br>
On Sep 2, 2008, at 5:29 PM, Eynard, Davide wrote:<br>
<br>
> Hi!<br>
><br>
> Yes, actually searching for "Louise Ciccone Ritchie" via the Web<br>
> interface<br>
> does a much fuzzier search which, as far as I know, also takes into<br>
> account<br>
> ?also known as? properties and substrings instead of exact matches.<br>
><br>
> In this particular case the name is a substring of an alias of a<br>
> common topic,<br>
> so you can find the original topic id and name with a query like the<br>
> following<br>
> one:<br>
><br>
> {<br>
> "alias~=" : "Louise Ciccone Ritchie",<br>
> "id" : null,<br>
> "name" : null,<br>
> "type" : "/common/topic"<br>
> }<br>
><br>
> Hope the solution is not too trivial, let me know if you need<br>
> 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><br>
> ] 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 & api<br>
><br>
> Dear All,<br>
><br>
> When I played with freebase data and API, I found I could find<br>
> search results when I used search query of "Louise Ciccone Ritchie"<br>
> on web page (<a href="http://www.freebase.com/search?limit=30&start=0&query=Louise+Ciccone+Ritchie" target="_blank">http://www.freebase.com/search?limit=30&start=0&query=Louise+Ciccone+Ritchie</a><br>
> ). But I failed 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>
> {%22item%22:{%22query%22:{%22name%22:%22Louise%20Ciccone%20Ritchie<br>
> %22,%22type%22:[]}}})<br>
><br>
> Could anybody tell me the "secret"? I didn't correctly write MQL<br>
> query or Mediapedia does more work in "Fuzzy" search part, that is,<br>
> it provides some methods to directly map Louise Ciccone Ritchie to<br>
> Madonna?<br>
><br>
> Thank you very much!<br>
><br>
> Best,<br>
> --<br>
> Qi Li<br>
> School of Information Science<br>
> University of Pittsburgh<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>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Tue, 2 Sep 2008 17:28:51 -0700<br>
From: Warren Harris <<a href="mailto:warren@metaweb.com">warren@metaweb.com</a>><br>
Subject: Re: [Developers] different search results from freebase & api<br>
To: "For discussions about MQL, Freebase API and apps built on<br>
Freebase" <<a href="mailto:developers@freebase.com">developers@freebase.com</a>><br>
Message-ID: <<a href="mailto:1AE275B4-8A57-45CF-84FC-EC90DCFF027C@metaweb.com">1AE275B4-8A57-45CF-84FC-EC90DCFF027C@metaweb.com</a>><br>
Content-Type: text/plain; charset="us-ascii"<br>
<br>
<br>
On Sep 2, 2008, at 5:07 PM, qi li wrote:<br>
<br>
> Dear All,<br>
><br>
> When I played with freebase data and API, I found I could find<br>
> search results when I used search query of "Louise Ciccone Ritchie"<br>
> on web page (<a href="http://www.freebase.com/search?limit=30&start=0&query=Louise+Ciccone+Ritchie" target="_blank">http://www.freebase.com/search?limit=30&start=0&query=Louise+Ciccone+Ritchie</a><br>
> ). But I failed 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>
> {%22item%22:{%22query%22:{%22name%22:%22Louise%20Ciccone%20Ritchie<br>
> %22,%22type%22:[]}}})<br>
><br>
> Could anybody tell me the "secret"? I didn't correctly write MQL<br>
> query or Mediapedia does more work in "Fuzzy" search part, that is,<br>
> it provides some methods to directly map Louise Ciccone Ritchie to<br>
> Madonna?<br>
<br>
Since names like "Ciccone" 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'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&limit=1" target="_blank">http://www.freebase.com/api/service/search?query=Ciccone&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>
><br>
><br>
> Thank you very much!<br>
><br>
> Best,<br>
> --<br>
> Qi Li<br>
> School of Information Science<br>
> University of Pittsburgh<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>
-------------- 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>