comunica / sparqlee

⚙️ SPARQL expression evaluator library - Moved to @comunica/expression-evaluator
https://www.npmjs.com/package/sparqlee
14 stars 7 forks source link

Equality check Error should not be thrown #167

Closed danielbeeke closed 1 year ago

danielbeeke commented 1 year ago

I think the error on https://github.com/comunica/sparqlee/blob/master/lib/functions/RegularFunctions.ts#L111 should not be thrown when the terms are equal.

See: https://www.w3.org/TR/rdf-concepts/#section-Literal-Equality

produces a type error if the arguments are both literal but are not the same RDF term

Could it be we just have to add !val && to the if statement?

See https://github.com/comunica/comunica/issues/1146