AutoSPARQL icon indicating copy to clipboard operation
AutoSPARQL copied to clipboard

Case in queries

Open timfu opened this issue 12 years ago • 2 comments

"houses in summertown" fails for me, as does "houses in headington" etc.

I think it's about capitalization, as

"houses in Summertown" works as does "houses in Headington"

etc.

I guess we can live with this, but it would be great if we could just accept lowercase locations as well.

timfu avatar Jul 11 '12 11:07 timfu

Yes, that's indeed a problem, but currently I see no solution to this problem. We use a POS tagger (e.g. http://nlp.stanford.edu:8080/parser/index.jsp) when processing the question.

houses in Summertown -> houses/NNS in/IN Summertown/NNP houses in Summertown -> houses/NNS in/IN Summertown/NN

Based on the POS tagging we decide whether it is a class or resource.

LorenzBuehmann avatar Jul 11 '12 11:07 LorenzBuehmann

Could you add something to the error message, like if it's "in" followed by a lower-case, we add something like "try in upper case" or "did you mean...".

Doesn't have high priority, but I fear most people will run into this.

timfu avatar Jul 11 '12 11:07 timfu