[Developers] different search results from freebase & api
Tim Kientzle
tim at metaweb.com
Wed Sep 3 00:52:48 UTC 2008
You might also try using the "search API", which uses a ranking engine
to generate "likely" matches for a piece of text. It's documented here:
http://www.freebase.com/view/guid/9202a8c04000641f8000000006ad84c9
This is very different from mqlread: mqlread is best when your
constraints have structure (e.g., you're looking for actors who were
born in a certain place) and when you want to get all possible
matches. In contrast, search is best when you're dealing with
informal text entry (Freebase.com uses the search API for autocomplete
and basic search functionality) and you only want the "best" matches.
Tim Kientzle
On Sep 2, 2008, at 5:29 PM, Eynard, Davide wrote:
> Hi!
>
> Yes, actually searching for "Louise Ciccone Ritchie" via the Web
> interface
> does a much fuzzier search which, as far as I know, also takes into
> account
> “also known as” properties and substrings instead of exact matches.
>
> In this particular case the name is a substring of an alias of a
> common topic,
> so you can find the original topic id and name with a query like the
> following
> one:
>
> {
> "alias~=" : "Louise Ciccone Ritchie",
> "id" : null,
> "name" : null,
> "type" : "/common/topic"
> }
>
> Hope the solution is not too trivial, let me know if you need
> something more
> general.
>
> Cheers,
>
> da
>
> From: developers-bounces at freebase.com [mailto:developers-bounces at freebase.com
> ] On Behalf Of qi li
> Sent: Tuesday, September 02, 2008 5:07 PM
> To: crism at metaweb.com; developers at freebase.com
> Subject: [Developers] different search results from freebase & api
>
> 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?
>
> 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
More information about the Developers
mailing list