[Developers] different search results from freebase & api
Warren Harris
warren at metaweb.com
Wed Sep 3 00:28:51 UTC 2008
On Sep 2, 2008, at 5:07 PM, qi li wrote:
> Dear All,
>
> 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 (http://www.freebase.com/search?limit=30&start=0&query=Louise+Ciccone+Ritchie
> ). But I failed at any results when I used MQL query (http://www.freebase.com/api/service/mqlread?queries=
> {%22item%22:{%22query%22:{%22name%22:%22Louise%20Ciccone%20Ritchie
> %22,%22type%22:[]}}})
>
> 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?
Since names like "Ciccone" appear in the /common/topic/alias property,
you could do a query like this:
http://www.freebase.com/api/service/mqlread?queries={%22item%22:
{%22query%22:{%22name%22:null,%22/common/topic/alias~=%22:%22Ciccone
%22,%22type%22:[]}}}
However, it sounds like you're interested in general search with mql
results, you can use this api instead:
http://www.freebase.com/api/service/search?query=Ciccone&limit=1
See http://www.freebase.com/view/guid/9202a8c04000641f8000000006ad84c9
for more info.
Warren
>
>
> Thank you very much!
>
> Best,
> --
> Qi Li
> School of Information Science
> University of Pittsburgh
>
> _______________________________________________
> Developers mailing list
> Developers at freebase.com
> http://lists.freebase.com/mailman/listinfo/developers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freebase.com/pipermail/developers/attachments/20080902/542f91c4/attachment-0001.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3739 bytes
Desc: not available
Url : http://lists.freebase.com/pipermail/developers/attachments/20080902/542f91c4/attachment-0001.bin
More information about the Developers
mailing list