[Developers] help - MQL to query by type and get all types

John Merrells john at merrells.com
Wed Mar 18 19:29:50 UTC 2009


I'm having trouble writing a query. I want to get all the instances of  
a type, including a list of types for every instance. So, for example  
I might want to search for all instances of type /music/artist and  
then get back instances like these...

{
   "id" : "#9202a8c04000641f800000000006df1b",
   "name" : "The Police",
   "type" : [
     "/music/artist",
     "/common/topic",
     "/music/producer",
     "/music/musical_group",
     "/broadcast/artist",
     "/award/award_winner"
   ]
}

So, I thought I'd have to write something like this...

[{
     "id" : null,
     "name" : null,
     "type" : "/music/artist"
     "type" : []
}]

But that doesn't work, as 'type' can only appear once. I can't work  
out the syntax to express this query :-( Any help much appreciated :-)

John

-- 
John Merrells
http://www.johnmerrells.com
+1.415.244.5808





-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freebase.com/pipermail/developers/attachments/20090318/5a96ffb1/attachment.htm 


More information about the Developers mailing list