AskNowQA / AutoSPARQL

Warning: Not working at the moment. Maintainer on parental leave. AutoSPARQL allows to create SPARQL queries over RDF knowledge bases from natural language with low effort.
http://aksw.org/Projects/AutoSPARQL.html
GNU General Public License v3.0
91 stars 54 forks source link

Conjunctive conditions #5

Open timfu opened 12 years ago

timfu commented 12 years ago

Conjunction in conditions works, but only in limited cases:

Works perfectly: "houses in Headington with more than 2 bedrooms and with a garden"

Works, but interprets "and a garden" as ?x is a garden "houses in Headington with more than 2 bedrooms and a garden"

fails: "houses in Headington with a garden and more than 2 bedrooms"

works: "houses in Headington with a garden and with more than 2 bedrooms"

cunger commented 12 years ago

This is indeed a problem. Semantically, "with foo and a bar" should be interpreted as "with foo and with a bar". This kind of ellipsis requires coordinations to denote sets of entities (instead of entities, as it is now the case), which requires an adaptation of the whole semantic composition process. A hack would be to insert the ommitted "with"; however, there's no straightforward way to determine when and where to insert it...