[Developers] mql_filter parameter to search API
Philip Kendall
philip-freebase at shadowmagic.org.uk
Fri Mar 13 16:42:59 UTC 2009
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
--
Philip Kendall <philip at shadowmagic.org.uk>
http://www.shadowmagic.org.uk/
More information about the Developers
mailing list