[Developers] New user with MQL question
Philip Kendall
philip-freebase at shadowmagic.org.uk
Fri Apr 17 15:36:32 UTC 2009
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/
More information about the Developers
mailing list