<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. In fact, <br>that is why I am using Freebase - to tell me what "The Police" is. <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> "id" : "/en/the_police",<br> "type" : []<br>}<br><br>Thank you very much,<br>Alex<br><br>> Date: Fri, 17 Apr 2009 16:36:32 +0100<br>> From: philip-freebase@shadowmagic.org.uk<br>> To: developers@freebase.com<br>> Subject: Re: [Developers] New user with MQL question<br>> <br>> On Fri, Apr 17, 2009 at 03:18:53PM +0000, Alex Genadinik wrote:<br>> > <br>> > I am new to the list and am experimenting with freebase. 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. 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? How would I do that?<br>> <br>> At a simple level, ask for the types of The Police:<br>> <br>> {<br>> "id" : "/en/the_police",<br>> "type" : []<br>> }<br>> <br>> and then ask for all the properties of one of those types:<br>> <br>> {<br>> "*" : null,<br>> "id" : "/en/the_police",<br>> "type" : "/music/artist"<br>> }<br>> <br>> After that, you probably want to see the Schema Introspection Cookbook<br>> <http://www.freebase.com/view/en/schema_introspection_cookbook> in<br>> particular the sections on "Types and Properties", "Link Queries" and<br>> "Top-level queries", with reference to the MQL Reference Guide<br>> <http://mql.freebaseapps.com/> as and when necessary.<br>> <br>> Hope this helps,<br>> <br>> Phil<br>> <br>> -- <br>> Philip Kendall <philip@shadowmagic.org.uk><br>> http://www.shadowmagic.org.uk/<br>> _______________________________________________<br>> Developers mailing list<br>> Developers@freebase.com<br>> 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>