[Developers] New user with MQL question

David Huynh david at metaweb.com
Fri Apr 17 19:16:12 UTC 2009


Alex,

Is this close to what you want?
    
http://umql.dfhuynh.user.dev.freebaseapps.com/queryeditor?q=[{%22%2Fservice%2Frelevance%22%3A{%22pattern%22%3A%22the%20police%22}%2C%22*%22%3Anull}]

David

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



More information about the Developers mailing list