fusepoolP3 / p3-dictionary-matcher-transformer

Dictionary Matcher is P3 transformer for SKOS based entity extraction.
Apache License 2.0
2 stars 3 forks source link

Case sensitivity seems not to work #11

Closed nicky508 closed 7 years ago

nicky508 commented 7 years ago

Taxonomy containing the term Brand (with capital B).

When using dictionary matcher, with parameter casesensitive false it only finds the term when written with Capital B. Dictionary matcher does not find it when the word is written with lowercase b.

Using this curl request:

curl -X POST -d "brand" "http://10.0.0.6:8301/?taxonomy=http://10.0.0.6/firebrary.rdf&stemming=dutch&casesensitive=false"

nicky508 commented 7 years ago

DictionaryMatcherTransformer checks only whether the casesensitivity variable is not null in the request. If it is null it is false otherwise it is true. Documentation tells that the value given with the argument determines whether it is either true or false (casesensitivity=true or casesensitivity=false) but this not the case.

nicky508 commented 7 years ago

using just using the var or not solves the problem, However it is a bug.