[Developers] Freebase users on Google Maps: Better MQL?
Will Moffat
will at hamstersoup.com
Wed May 9 14:09:06 UTC 2007
Hi,
I'm trying to improve the MQL queries (see below) that I use for my
mashup "Freebase users on Google Maps"
http://hamstersoup.wordpress.com/
Since many people haven't filled in "my_full_name" in their user
profile I also search on their username. I have to make 2 almost
identical queries (and get 2 almost identical sets of results)
because of a lack of an OR construct in MQL. This seems pretty
inefficient.
Am I missing something? Is there a better way?
thanks,
--Will
Query1: Search for users with "fi" in their username:
[{
"id":null,
"limit":10,
"location":[{
"geolocation":{
"latitude":null,
"longitude":null
},
"id":null,
"limit":1,
"name":null
}],
"my_full_name":null,
"name":null,
"name~=":"*fi*",
"personal_quote":null,
"type":"/freebase/user_profile"
}]
Query2: Search for users with "fi" in their full name
[{
"id":null,
"limit":10,
"location":[{
"geolocation":{
"latitude":null,
"longitude":null
},
"id":null,
"limit":1,
"name":null
}],
"my_full_name":null,
"my_full_name~=":"*fi*",
"name":null,
"personal_quote":null,
"type":"/freebase/user_profile"
}]
More information about the Developers
mailing list