On Fri, Aug 22, 2014 at 8:40 AM, Y. Dong <[email protected]> wrote:
> I need to do a fairly complex order by operation like:
>
> order by (datediff(“second”, ?date, now())*?score) while datediff and now are 
> builtin functions in virtuoso.
>
> I need to express this with arq api, and I think i should use Expr, 
> specifically, E_function. But E_function constructor always requires a 
> functionIRI so the output is always <datediff>(). Is there anyway I can get 
> rid of the square brackets?

Your function should be identified by an absolute URI, so you should
probably end up with something like:

[[[
prefix ext: <http://tq00oqi.com/arq/>
...
order by ext:datediff( ... )
]]]



-- 
Joshua Taylor, http://www.cs.rpi.edu/~tayloj/

Reply via email to