Hello Saeedeh

ISQL uses '$' character as a prefix for macro names of its preprocessor.
Please use '$$' notation or an escape char + numeric code.
Node that the regex is quite slow in this case and
FILTER (bif:length(str(?label)) <= 256)
can work much faster if the interoperability is not required
and ?label-s are numerous.
Note also that you mention "length less than 256" whereas your code (and
mine after that) checks for length less than or equal to 256.

Best Regards,

Ivan Mikhailov
OpenLink Software
http://virtuoso.openlinksw.com

On Fri, 2011-01-14 at 14:59 +0100, Saeedeh Shekarpour wrote:
> Hi
>  
> I have a sparql query a filter on the length of labels. In fact i want
> to select just label with length less than 256.
>  
> FILTER(regex(str(?label), "^.{1,256}$") )
>  
> this filter works properly in the vistuoso conductor, but i have to
> run my query on ISQL, in isql an error returns which related to the $
> or ".  #error:sq074
>  
> Can you please let me know your suggestion for solving that?




Reply via email to