I've had similar problems lately working with strings.
SPARQL snippets unctions that worked on other products and produced this
kind of errors in Virtuoso.
Try using:
STRDT(?literal, xsd:string)
as input to the substr() function,
and it should work.

On Tue, Nov 1, 2016 at 3:22 PM, Jindřich Mynarz <mynarzjindr...@gmail.com>
wrote:

> Hi,
>
> I have a query that first filters literals of given length:
>
> FILTER (STRLEN(?literal) = 8)
>
> And then it extracts a substring via SUBSTR():
>
> SUBSTR(?literal, 8, 1)
>
> However, Virtuoso throws Virtuoso 22011 Error SR026: SPARQL substr: Bad
> string subrange: from=8, len=1.
>
> How is that possible?
>
> I'm using the develop version of Virtuoso (https://github.com/openlink/
> virtuoso-opensource/commit/377438ac6beefa9373cf0500c7edf4077f687d0c).
>
> - Jindřich
>
> --
> Jindřich Mynarz
> http://mynarz.net/#jindrich
>
> ------------------------------------------------------------
> ------------------
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today. http://sdm.link/xeonphi
> _______________________________________________
> Virtuoso-users mailing list
> Virtuoso-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users
>
>
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users

Reply via email to