wschella / Sparqlee

Simple SPARQL expression evaluator library
0 stars 0 forks source link

Spec says language tagged string is invalid operand #6

Open wschella opened 6 years ago

wschella commented 6 years ago

See title, (according to this table).

Do we want to follow the spec here?

rubensworks commented 6 years ago

If it's easy to support language-tagged strings as operands, I would support it. But then I would definitely add some kind of strict-mode, where the spec is strictly followed.

wschella commented 6 years ago

The problem with supporting it is we need to define a comparator: do we compare the literal only? do we compare the literal and then on the language tag? both at the same time?

Since these are all deviant from the spec, I would reverse your proposal, and make the default 'strict-mode' as to respect the principle of least astonishment, and optionally, if user know what they're doing, support comparing of language tagged literals with a specific mode.