[Developers] New user with MQL question

Shawn Simister narphorium at gmail.com
Fri Apr 17 19:21:50 UTC 2009


The URL to look up "The Police" using the Search API would be:

http://www.freebase.com/api/service/search?query=The%20Police

There are additional parameters for mql_filter and mql_output if you 
want to further customize the output. Just click the more link at the 
end of the description on the Search API 
<http://www.freebase.com/view/en/api_service_search> page to get a 
description of the different parameters.

Shawn

Alex Genadinik wrote:
> Hi,
>
> Thank you very much for your responses.  So if I was to use the search 
> API to be able to get results for "The Police" without knowing the 
> Freebase ID for that topic, what would the URL look like for this?  
> There would still be an MQL search string in the URL, correct? 
>
> Thank you very much,
> Alex
>
> ------------------------------------------------------------------------
> Date: Fri, 17 Apr 2009 12:10:09 -0400
> From: narphorium at gmail.com
> To: developers at freebase.com
> Subject: Re: [Developers] New user with MQL question
>
> There seem to be two parts to this question. First, you would like to 
> be able to get results for "The Police" without knowing the Freebase 
> ID for that topic. Second, you would like to get a list of attributes 
> for that topic without knowing the specific property IDs.
>
> The first part is a bit difficult because Freebase currently has 14 
> different topics called "The Police". That's why it's a lot easier to 
> narrow down the results if you know which Freebase type you're looking 
> for. Another alternative is to use the Freebase Search API 
> <http://www.freebase.com/view/en/api_service_search> which will give 
> you a list of topics about "The Police" sorted in order of relevance. 
> You should be able to get reasonably good results by just taking the 
> first result that you get back from the search API as long as you're 
> only dealing with popular topics like The Police (the band).
>
> The second part is much more straight-forward and can be done by 
> searching for all the links (/type/link) that are attached to the 
> topic that you're interested in. I wrote up a brief description of how 
> to do it 
> <http://stackoverflow.com/questions/694037/write-a-freebase-mql-query-that-gets-everything-back-about-a-given-topic> 
> over at StackOverflow a couple weeks ago.
>
> Shawn
>
> Alex Genadinik wrote:
>
>     Hi,
>
>     I am new to the list and am experimenting with freebase.  I am
>     looking at MQL
>     and I think the biggest question I have is that sometimes I do not
>     know the URI or the path
>     of the topic I am querying for.  I just want to throw in a term
>     like "The Police" and
>     get back results about them without having to provide the path
>     /music/album
>
>     Is that possible in MQL?  How would I do that?
>
>     Sincerely,
>     Alex Genadinik
>     ------------------------------------------------------------------------
>     Rediscover Hotmail®: Get e-mail storage that grows with you. Check
>     it out.
>     <http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Storage2_042009>
>
>
>     ------------------------------------------------------------------------
>
>     _______________________________________________
>     Developers mailing list
>     Developers at freebase.com <mailto:Developers at freebase.com>
>     http://lists.freebase.com/mailman/listinfo/developers
>       
>
>
>
> ------------------------------------------------------------------------
> Windows Live™: Life without walls. Check it out. 
> <http://windowslive.com/explore?ocid=TXT_TAGLM_WL_allup_1b_explore_042009> 
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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/20090417/7c7a6cd7/attachment.htm 


More information about the Developers mailing list