<html><body bgcolor="#FFFFFF"><div><br>On Nov 8, 2008, at 14:08, "Lilach Givati" <<a href="mailto:lilachg@semantinet.com">lilachg@semantinet.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>
<div class="Section1">
<p class="MsoNormal">When I submit a simple query to get the type for “madonna”:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt;text-align:justify"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">[ {<o:p></o:p></span></p>
<p class="MsoNormal" style="text-align:justify;text-indent:36.0pt;line-height:
120%;text-autospace:none"><span style="font-size:10.0pt;line-height:120%;
font-family:"Arial","sans-serif";color:black"> "id"
: null,<o:p></o:p></span></p>
<p class="MsoNormal" style="text-align:justify;text-indent:36.0pt;line-height:
120%;text-autospace:none"><span style="font-size:10.0pt;line-height:120%;
font-family:"Arial","sans-serif";color:black">
"name" : "madonna",<o:p></o:p></span></p>
<p class="MsoNormal" style="text-align:justify;text-indent:36.0pt;line-height:
120%;text-autospace:none"><span style="font-size:10.0pt;line-height:120%;
font-family:"Arial","sans-serif";color:black">
"type" : []<o:p></o:p></span></p>
<p class="MsoNormal" style="text-align:justify;text-indent:36.0pt;line-height:
120%;text-autospace:none"><span style="font-size:10.0pt;line-height:120%;
font-family:"Arial","sans-serif";color:black"> }]<o:p></o:p></span></p>
<p class="MsoNormal" style="text-align:justify;line-height:120%;text-autospace:
none"><span style="font-size:10.0pt;line-height:120%;font-family:"Arial","sans-serif";
color:black">I get the /music/artist as the 32<sup>nd</sup> answer.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-align:justify;line-height:120%;text-autospace:
none"><span style="font-size:10.0pt;line-height:120%;font-family:"Arial","sans-serif";
color:black">Is there a way to get the most likely answers first?</span></p></div></div></blockquote><div>For relevance-weighted queries use api/service/search?query=madonna. </div><div>The response includes the types by default. If you want only the name and types of matches add a mql_output parameter that looks like: </div><div> [{"name": null, "type": []}</div><div><br></div>Andi..<br><blockquote type="cite"><div><div class="Section1"><p class="MsoNormal" style="text-align:justify;line-height:120%;text-autospace:
none"><span style="font-size:10.0pt;line-height:120%;font-family:"Arial","sans-serif";
color:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-align:justify;line-height:120%;text-autospace:
none"><span style="font-size:10.0pt;line-height:120%;font-family:"Arial","sans-serif";
color:black">Thank you,<o:p></o:p></span></p>
<p class="MsoNormal" style="text-align:justify;line-height:120%;text-autospace:
none"><span style="font-size:10.0pt;line-height:120%;font-family:"Arial","sans-serif";
color:black">Lilach<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Developers mailing list</span><br><span><a href="mailto:Developers@freebase.com">Developers@freebase.com</a></span><br><span><a href="http://lists.freebase.com/mailman/listinfo/developers">http://lists.freebase.com/mailman/listinfo/developers</a></span><br></div></blockquote></body></html>