Hello Ricardo,

> for(sparql select 
> ...
>   order by desc(?relevance) limit 50 offset ?:offsetValue
>     ) do {
> ...
> }
> ...
> 
> Its warn.
> syntax error at '?:offsetValue' at ')' before 'do'

In original SPARQL the syntax was
[19]    OffsetClause      ::=   'OFFSET' INTEGER

and I did not extend it to something like
[19*]  OffsetClause   ::=  'OFFSET' expression

because in that time I was unable to efficiently prohibit bad things
like an offset expression that depends on result values. You're the
first who ask about the extension and it can be implemented now, so
expressions will be permitted in the next version. Chances are that you
can get a patch even before that if you specify the exact version you
want to see patched.

Best Regards,

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



Reply via email to