<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hi Phil,<br><br>I think the problem is that since I am planning to do this dynamically, I will not know that<br>the URL is /en/the_police because I do not know the police is in entertainment.&nbsp; In fact, <br>that is why I am using Freebase - to tell me what "The Police" is.&nbsp; <br><br>So I can't really use the below query because of the /en/ - is there a more general query than the one below?<br>{<br>&nbsp; "id" : "/en/the_police",<br>&nbsp; "type" : []<br>}<br><br>Thank you very much,<br>Alex<br><br>&gt; Date: Fri, 17 Apr 2009 16:36:32 +0100<br>&gt; From: philip-freebase@shadowmagic.org.uk<br>&gt; To: developers@freebase.com<br>&gt; Subject: Re: [Developers] New user with MQL question<br>&gt; <br>&gt; On Fri, Apr 17, 2009 at 03:18:53PM +0000, Alex Genadinik wrote:<br>&gt; &gt; <br>&gt; &gt; I am new to the list and am experimenting with freebase.  I am looking at MQL<br>&gt; &gt; and I think the biggest question I have is that sometimes I do not know the URI or the path<br>&gt; &gt; of the topic I am querying for.  I just want to throw in a term like "The Police" and<br>&gt; &gt; get back results about them without having to provide the path /music/album<br>&gt; &gt; <br>&gt; &gt; Is that possible in MQL?  How would I do that?<br>&gt; <br>&gt; At a simple level, ask for the types of The Police:<br>&gt; <br>&gt; {<br>&gt;   "id" : "/en/the_police",<br>&gt;   "type" : []<br>&gt; }<br>&gt; <br>&gt; and then ask for all the properties of one of those types:<br>&gt; <br>&gt; {<br>&gt;   "*" : null,<br>&gt;   "id" : "/en/the_police",<br>&gt;   "type" : "/music/artist"<br>&gt; }<br>&gt; <br>&gt; After that, you probably want to see the Schema Introspection Cookbook<br>&gt; &lt;http://www.freebase.com/view/en/schema_introspection_cookbook&gt; in<br>&gt; particular the sections on "Types and Properties", "Link Queries" and<br>&gt; "Top-level queries", with reference to the MQL Reference Guide<br>&gt; &lt;http://mql.freebaseapps.com/&gt; as and when necessary.<br>&gt; <br>&gt; Hope this helps,<br>&gt; <br>&gt; Phil<br>&gt; <br>&gt; -- <br>&gt;   Philip Kendall &lt;philip@shadowmagic.org.uk&gt;<br>&gt;   http://www.shadowmagic.org.uk/<br>&gt; _______________________________________________<br>&gt; Developers mailing list<br>&gt; Developers@freebase.com<br>&gt; http://lists.freebase.com/mailman/listinfo/developers<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>