I get "1234567890" (jena v 3.5.0)

sparql -v 'select ?substr where {BIND(substr("1234567890", 0, 11) AS ?substr)}'

  1 SELECT  ?substr
  2 WHERE
  3   { BIND(substr("1234567890", 0, 11) AS ?substr) }

----------------
| substr       |
================
| "1234567890" |
----------------

I get this for versions back to 2.10.0.

    Andy

On 06/11/17 14:22, Jerven Tjalling Bolleman wrote:
Dear Jena-Devs,

I believe that the following query

select ?substr where {BIND(substr("1234567890", 0, 11) AS ?substr)}

should return


| substr       |
================
| "1234567890" |

instead of the current

| substr |
==========
|        |


I take this from reading the spec here.
https://www.w3.org/TR/xpath-functions/#func-substring

If people agree with my reading I will be happy to submit a patch.

Regards,
Jerven


Reply via email to