<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hi,<br><br>Thank you very much for your responses.&nbsp; 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?&nbsp; There would still be an MQL search string in the URL, correct?&nbsp; <br><br>Thank you very much,<br>Alex<br><br><hr id="stopSpelling">Date: Fri, 17 Apr 2009 12:10:09 -0400<br>From: narphorium@gmail.com<br>To: developers@freebase.com<br>Subject: Re: [Developers] New user with MQL question<br><br>




  


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.<br>
<br>
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 <a href="http://www.freebase.com/view/en/api_service_search">Freebase
Search API</a> 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).<br>
<br>
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 <a href="http://stackoverflow.com/questions/694037/write-a-freebase-mql-query-that-gets-everything-back-about-a-given-topic">description
of how to do it</a> over at StackOverflow a couple weeks ago. <br>
<br>
Shawn<br>
<br>
Alex Genadinik wrote:
<blockquote cite="mid:COL111-W31F943C45677EDB8DA03ACA37B0@phx.gbl">
  <style>
.ExternalClass .EC_hmmessage P
{padding:0px;}
.ExternalClass body.EC_hmmessage
{font-size:10pt;font-family:Verdana;}
</style>Hi,<br>
  <br>
I am new to the list and am experimenting with freebase.&nbsp; I am looking
at MQL<br>
and I think the biggest question I have is that sometimes I do not know
the URI or the path<br>
of the topic I am querying for.&nbsp; I just want to throw in a term like
"The Police" and<br>
get back results about them without having to provide the path
/music/album<br>
  <br>
Is that possible in MQL?&nbsp; How would I do that?<br>
  <br>
Sincerely,<br>
Alex Genadinik<br>
  <hr>Rediscover Hotmail®: Get e-mail storage that grows with you. <a href="http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Storage2_042009">Check it out.</a>
  <pre><hr size="4" width="90%"><br>_______________________________________________<br>Developers mailing list<br><a class="EC_moz-txt-link-abbreviated" href="mailto:Developers@freebase.com">Developers@freebase.com</a><br><a class="EC_moz-txt-link-freetext" href="http://lists.freebase.com/mailman/listinfo/developers">http://lists.freebase.com/mailman/listinfo/developers</a><br>  </pre>
</blockquote>
<br><br /><hr />Windows Live™: Life without walls. <a href='http://windowslive.com/explore?ocid=TXT_TAGLM_WL_allup_1b_explore_042009' target='_new'>Check it out.</a></body>
</html>