[Developers] New user with MQL question
Michele Berg
michele.r.berg at gmail.com
Fri Apr 17 19:23:16 UTC 2009
Alex,
The /en/ doesn't stand for entertainment; it's a standard part of a topic's id.
Michele
On Fri, Apr 17, 2009 at 2:08 PM, Alex Genadinik <genadinik at hotmail.com> 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.
> _______________________________________________
> Developers mailing list
> Developers at freebase.com
> http://lists.freebase.com/mailman/listinfo/developers
>
>
More information about the Developers
mailing list