openlink / virtuoso-opensource

Virtuoso is a high-performance and scalable Multi-Model RDBMS, Data Integration Middleware, Linked Data Deployment, and HTTP Application Server Platform
https://vos.openlinksw.com
Other
862 stars 210 forks source link

STRLEN too liberal in accepting e.g. IRIs #869

Open metawilm opened 5 years ago

metawilm commented 5 years ago

Function STRLEN should be strict in only accepting strings, see e.g. https://www.w3.org/TR/sparql11-query/#func-string but Virtuoso accepts IRIs too:

select * { bind (strlen(<http://foo>) as ?sl) } returns 10 whereas the result should be an error, so unbound.

The same might be true for other string functions. Tested against Virtuoso/07.20.3229.

HughWilliams commented 5 years ago

This has been passed on to development to look into ...