[Developers] Constructing MQL queries automatically

Vanessa Lopez v.lopez at open.ac.uk
Fri Nov 7 17:10:35 UTC 2008


Hi,

I am trying to develop a Question Answering application on the top of  
Freebase.  However, I have some doubts that maybe any of you have  
experience with ..

For instance, from the example query : George Lucas films starring  
Harrison Ford
[
   {
     "directed_by" : "George Lucas",
     "name" : null,
     "starring" : [
       {
         "actor" : "Harrison Ford"
       }
     ],
     "type" : "/film/film"
   }
]


How it is possible to obtain from the keywords "George Lucas", "film",  
"starring" and "Harrison Ford"  that the type we want is "/film/film"  
and the relation we want is "directed_by" automatically?

For instance, the types of film(s) { "name" : "film(s)", "type" :  
null} are: /music/albums, /common/topic, /type/domain , /freebase/ 
domain_profile, and we have 96 ids  { "name" : "film(s)", "id" :null},  
being /film/film one of them ...

Also, we can think of other MQL queries, like {"type":"/film/actor",  
"name":"Harrison Ford", film: null, ...} that in principle could have  
been valid too ...
Not to mention about "starring" ...

In other words, it does not seem to be straight-forward to translate  
this query into MQL without having a lot of knowledge about topics,  
properties, etc in Freebase ...    Is there anywhere to automatically  
do this translation? does any of you encounter this problem before  
while developing an application?

Many thanks!
Vanessa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freebase.com/pipermail/developers/attachments/20081107/88bea484/attachment-0001.htm 


More information about the Developers mailing list