Hello Maria, I am not aware of a way to express power with SPARQL. For powers of 10, you could use casting:
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> select (xsd:double(concat("1e",str(?exp))) as ?result) where { VALUES ?exp { 3 } } Which brings me to an interesting observation. Why is ?a not bound in the Fuseki result of this query? PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> select (xsd:integer(1e2) as ?a) where { } The DBpedia SPARQL endpoint returns 100. Regards, Michael Brunnbauer On Fri, Oct 09, 2015 at 12:19:00AM +0530, Maria Jackson wrote: > Dear All, > > 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 Jena. I am struggling to find how to > express power in Jena? -- ++ Michael Brunnbauer ++ netEstate GmbH ++ Geisenhausener Straße 11a ++ 81379 München ++ Tel +49 89 32 19 77 80 ++ Fax +49 89 32 19 77 89 ++ E-Mail [email protected] ++ http://www.netestate.de/ ++ ++ Sitz: München, HRB Nr.142452 (Handelsregister B München) ++ USt-IdNr. DE221033342 ++ Geschäftsführer: Michael Brunnbauer, Franz Brunnbauer ++ Prokurist: Dipl. Kfm. (Univ.) Markus Hendel
pgpaGibCfcIhW.pgp
Description: PGP signature
