zazuko/rdf-validate-shacl

Wrong pair constraint comparison using lessThan / lessThanOrEquals

Tomas2D opened this issue · 1 comments

Using property constraint validation with sh:lessThan or sh:lessThanOrEquals I get wrong result in Zazuko SHACL Plaground (https://s.zazuko.com/d56u3).

From my observation, it looks like only the first digit is being compared. For example, if the value of ex:candidates_active is 65, there is no validation error which is obviously fine, but when I change to 8 or 9, I get a validation error.

Thanks in advance.

I just found this comment in the term comparison function: // TODO: Does not handle numeric or date comparison

It's been in the library from the beginning and somehow got overlooked. I'll label this issue as a bug.