<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
What you're describing is one of the major challenges in question
answering: how to map sentence structure onto data schema. That's what
makes question answering a difficult problem in AI. All the approaches
that I've seen use an explicit list of rules to map questions to
queries. <br>
<br>
If you were to do it automatically in Freebase you would search for
types and properties by name like this:<br>
<br>
[{<br>
"id" : null,<br>
"type" : "/type/type",<br>
"name" : "film"<br>
}]<br>
<br>
[{<br>
"id" : null,<br>
"type" : "/type/property",<br>
"name~=" : "starring"<br>
}]<br>
<br>
But, these queries still depend on Freebase users to create type &
property names that fit your application. I doubt that this would be
sufficient to get usable results in your application.<br>
<br>
A much more interesting solution would be to create your own set of
Freebase types to explicitly map types to nouns and properties to
verbs. This would allow anyone from the Freebase community to
contribute mapping to your application and improve the scope of its
question answering abilities. If you're interesting in that approach
I'd be happy to help you out.<br>
<br>
Shawn<br>
<br>
Vanessa Lopez wrote:
<blockquote cite="mid:DB8F66C3-3A73-4AC6-9944-62F74689F2A7@open.ac.uk"
type="cite">Hi,
<div><br>
</div>
<div>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 .. </div>
<div><br>
</div>
<div>For instance, from the example query : <span
class="Apple-style-span" style="font-size: 14px; font-weight: bold;">George
Lucas films starring Harrison Ford </span></div>
<div>
<div
style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: normal; font-size-adjust: none; font-stretch: normal;">[</div>
<div
style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: normal; font-size-adjust: none; font-stretch: normal;">
{</div>
<div
style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: normal; font-size-adjust: none; font-stretch: normal;">
"directed_by" : "George Lucas",</div>
<div
style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: normal; font-size-adjust: none; font-stretch: normal;">
"name" : null,</div>
<div
style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: normal; font-size-adjust: none; font-stretch: normal;">
"starring" : [</div>
<div
style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: normal; font-size-adjust: none; font-stretch: normal;">
{</div>
<div
style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: normal; font-size-adjust: none; font-stretch: normal;">
"actor" : "Harrison Ford"</div>
<div
style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: normal; font-size-adjust: none; font-stretch: normal;">
}</div>
<div
style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: normal; font-size-adjust: none; font-stretch: normal;">
],</div>
<div
style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: normal; font-size-adjust: none; font-stretch: normal;">
"type" : "/film/film"</div>
<div
style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: normal; font-size-adjust: none; font-stretch: normal;">
}</div>
<div
style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: normal; font-size-adjust: none; font-stretch: normal;">]</div>
<div
style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: normal; font-size-adjust: none; font-stretch: normal;"><br>
</div>
<div
style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: normal; font-size-adjust: none; font-stretch: normal;"><br>
</div>
<div
style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: normal; font-size-adjust: none; font-stretch: normal;">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? </div>
<div
style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: normal; font-size-adjust: none; font-stretch: normal;"><br>
</div>
<div
style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: normal; font-size-adjust: none; font-stretch: normal;">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 ... </div>
<div
style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: normal; font-size-adjust: none; font-stretch: normal;"><br>
</div>
<div
style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: normal; font-size-adjust: none; font-stretch: normal;">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 ... </div>
<div
style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: normal; font-size-adjust: none; font-stretch: normal;">Not
to mention about "starring" ... </div>
<div
style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: normal; font-size-adjust: none; font-stretch: normal;"><br>
</div>
<div
style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: normal; font-size-adjust: none; font-stretch: normal;">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? </div>
<div
style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: normal; font-size-adjust: none; font-stretch: normal;"><br>
</div>
<div
style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: normal; font-size-adjust: none; font-stretch: normal;">Many
thanks!</div>
<div
style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: normal; font-size-adjust: none; font-stretch: normal;">Vanessa</div>
</div>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Developers@freebase.com">Developers@freebase.com</a>
<a class="moz-txt-link-freetext" href="http://lists.freebase.com/mailman/listinfo/developers">http://lists.freebase.com/mailman/listinfo/developers</a>
</pre>
</blockquote>
<br>
</body>
</html>