I am trying to write an MQL query to format the search result in freebase (the "output" parameter in the search API). I really want to find the (simple) values of all the properties of a given search result (without knowing anything about the result types a priori). By "simple" is meant only the default properties if the values are complex objects.
For example, if I search for "Yo La Tengo" and this leads me to the result for "/ en / yo_la_tengo", I want to be able to get group members (I just need names, not tools or start dates), albums (again , only names), films contributed (again, only names), etc.
Is there an easy way to do this with an output search query , given that I don't know anything about types ? I guess there is some kind of reflection magic that I can use, and I tried to spoof "/ type / reflection", but I'm not going anywhere. I am new to MQL (although I have extensive SQL experience), so this is a bit complicated. Any ideas?
Change Therefore, to clarify, I think that the problem that I see is explained by such types of mediators as "performance" (the actor in the film) or "marriage". For example, with the query Yo La Tengo , I can see the most (everything?) Information that interests me, but a similar query about [The Muppet Movie] (freebase.com/api/service/search?limit=1&mql_output=%5B%7B % 22% 2Ftype% 2Freflect% 2Fany_reverse% 22% 3A% 5B% 7B% 7D% 5D% 2C% 22% 2Ftype% 2Freflect% 2Fany_master% 22% 3A% 5B% 7B% 7D% 5D% 2C% 22% 2Ftype% 2Freflect % 2Fany_value% 22% 3A% 5B% 7B% 7D% 5D% 7D% 5D & query = Value% 20Muppet% 20Movie - sorry, SO thinks I'm a spammer, so I can't make this a link), I don’t see the link at all Frank Oz (probably because his performance is mentioned instead). Is there a general way for me to “follow” the types of intermediaries in order to get all their properties? For example, is there one MQL output that would allow me to get an actor in performance (when it is related to the search result of the movie) and gives the spouse married (when it is connected to the person)
source share