[Developers] mql_filter parameter to search API
Shawn Simister
narphorium at gmail.com
Fri Mar 13 18:00:04 UTC 2009
Wow, great minds think alike! I was just experimenting with the same
type of idea last week. You can check out my rough hack here
<http://answers.narphorium.user.dev.freebaseapps.com/index?q=What%20is%20the%20height%20of%20the%20Empire%20State%20Building?>.
If you look at the source of the app you'll find also the MQL queries
that I use to look up the data.
Shawn
Philip Kendall wrote:
> What I'm trying to do is to get a list of all properties within Commons
> that "match" a string in some way or another.
>
> I'm currently doing this via the search API[1] and then post-filtering
> the results to remove any which have ids starting with /user/, /base/ or
> /guid/. This obviously isn't ideal as it means I throw away a large
> number of results, and may not find the results I'm looking for if
> they're further down the list, but just hidden by lots of user-created
> properties.
>
> There's an "mql_filter" parameter documented from the search API, but I
> can't get it to do anything useful (other than blow up, which I've filed
> a bug for[2]).
>
> Two (or maybe three) questions:
>
> 1) Is there any documentation for mql_filter available anywhere?
> 2) Is mql_filter the right way to be doing this? If not, what is?
>
> If anyone's interested in why I want this, take a look at "Hey,
> Freebase!": <http://heyfreebase.pak21.user.dev.freebaseapps.com/>. Yes,
> my graphic design sucks :-)
>
> [1]
> <http://www.freebase.com/api/service/search?type=/type/property&type_strict=all&query=birth%20place>
> [2] <https://bugs.freebase.com/browse/FREEBASE-494>
>
> Cheers,
>
> Phil
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freebase.com/pipermail/developers/attachments/20090313/968c5dd2/attachment.htm
More information about the Developers
mailing list