[Developers] New user with MQL question
Alex Genadinik
genadinik at hotmail.com
Fri Apr 17 19:08:24 UTC 2009
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.
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_allup_1b_explore_042009
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freebase.com/pipermail/developers/attachments/20090417/b33f373b/attachment.htm
More information about the Developers
mailing list