odalic / sti

An API and enhancements to the Semantic Table Interpretation
Other
3 stars 0 forks source link

Handling language tags during fulltext search #477

Closed tomas-knap closed 7 years ago

tomas-knap commented 7 years ago

When searching knowledge base, if there is an exact match, then the language tag in the KB is enforced. But if there is no exact match, fulltext query is executed (which does not take into account language tag). As a result, it may happen, that strange language tags are produced to the output, e.g.: AT225 below (KB should use @en tag)

screen shot 2017-10-24 at 15 54 42

What I would suggest is that:

Relates with #286

tomas-knap commented 7 years ago

Original motivation:

I discovered one issue: It does not respect the settings for language tags in the knowledge base settings. For example, if I set knowledge base dbpedia as follows to use english labels:

screen shot 2017-10-24 at 15 57 44

Then I still got in the result some other tags (see the second line for each item - which is for dbpedia) - you can see lt etc.

screen shot 2017-10-24 at 15 54 42

Tested on file: STMK_2012_LIVEBIRTHS-10lines.csv 2.zip And knowledge bases DBpedia + something

tomas-knap commented 7 years ago

Tested, works