Hi Maria,
Virtuoso has a builtin “power()” function as indicated at:
http://docs.openlinksw.com/virtuoso/fn_power.html
<http://docs.openlinksw.com/virtuoso/fn_power.html>
which can be call in a SPARQL query using the “bif:” prefix for invocation with
some thing like:
SELECT bif:power(8,2)
WHERE {?s ?p ?o}
LIMIT 1
Likewise user defined functions can be called using the “sql:” prefix:
http://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VirtTipsAndTricksGuideCustomSPARQLExtensionFunction
<http://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VirtTipsAndTricksGuideCustomSPARQLExtensionFunction>
Best Regards
Hugh Williams
Professional Services
OpenLink Software, Inc. // http://www.openlinksw.com/
Weblog -- http://www.openlinksw.com/blogs/
LinkedIn -- http://www.linkedin.com/company/openlink-software/
Twitter -- http://twitter.com/OpenLink
Google+ -- http://plus.google.com/100570109519069333827/
Facebook -- http://www.facebook.com/OpenLinkSoftware
Universal Data Access, Integration, and Management Technology Providers
> On 8 Oct 2015, at 19:49, Maria Jackson <[email protected]> wrote:
>
> select ?a?b?c?r where{ graph ?graph1{?a ?b <object1>} graph ?graph21{?a ?c
> <object2>} graph ?graph2{?a <time> ?r}} order by asc(?r+(1.1*10^(11))) limit 1
>
> If I write the above expression to denote: ?r + (1.1 x (pow(10,11))) then
> will it be a correct expression in Virtuoso. I am struggling to find how to
> express power in Virtuoso?
> ------------------------------------------------------------------------------
> _______________________________________________
> Virtuoso-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users
------------------------------------------------------------------------------
_______________________________________________
Virtuoso-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/virtuoso-users