Casting with Fuseki (Was: How to specify power in select cause SPARQL)

2015-10-09 Thread Michael Brunnbauer
Hello Maria, I am not aware of a way to express power with SPARQL. For powers of 10, you could use casting: PREFIX xsd: select (xsd:double(concat("1e",str(?exp))) as ?result) where { VALUES ?exp { 3 } } Which brings me to an interesting observation. Why is ?

Re: Fuseki 2.3.0 not returning prefix declarations from TextDataset using graph protocol

2015-10-09 Thread Miika Alonen
Hi, Thanks for your efforts! I have been happy with the graph specific prefix sets. I cant use TextDataset directly if there is no possibility to store individual prefix sets to the named graphs. I could of course copy the graphs to another service that is using TextDataset, or I could just k

Re: How to specify power in select cause SPARQL

2015-10-09 Thread Andy Seaborne
On 08/10/15 19:49, Maria Jackson wrote: Dear All, select ?a?b?c?r where{ graph ?graph1{?a ?b } graph ?graph21{?a ?c } graph ?graph2{?a ?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.

Re: How to specify power in select cause SPARQL

2015-10-09 Thread Rob Vesse
FYI this is certainly not in Jena 2.x and although it is in master I'm not sure it has yet been in a 3.x release Rob On 09/10/2015 09:17, "Andy Seaborne" wrote: >On 08/10/15 19:49, Maria Jackson wrote: >> Dear All, >> >> select ?a?b?c?r where{ graph ?graph1{?a ?b } graph ?graph21{?a >>?c >> } g

Re: How to specify power in select cause SPARQL

2015-10-09 Thread Andy Seaborne
On 09/10/15 11:37, Rob Vesse wrote: FYI this is certainly not in Jena 2.x and although it is in master I'm not sure it has yet been in a 3.x release Works from 2.11.0 onwards for me :-) (this is your original function work - not the aggregates) Andy Rob On 09/10/2015 09:17, "Andy

Re: How to specify power in select cause SPARQL

2015-10-09 Thread Rob Vesse
Ah I am mis-remembering what is and isn't merged then Sorry! Rob On 09/10/2015 12:53, "Andy Seaborne" wrote: >On 09/10/15 11:37, Rob Vesse wrote: >> FYI this is certainly not in Jena 2.x and although it is in master I'm >>not >> sure it has yet been in a 3.x release > >Works from 2.11.0 onward

Jena OSGi and Felix

2015-10-09 Thread Konstantinos Giannoutakis
I want to use Jena OSGi 3.0.0 version in Felix 2.0.3, but when I install the bundle I get the exception: org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.jena.osgi [1]: package; (&(package=org.apache.commons.cli)(version>=1.3.0)(!(version>=2.0.0))) Does this mean tha

Re: Performance Cost of Reification

2015-10-09 Thread Andy Seaborne
It is nice that the Titan guys see RDF as something to compare to. Coincidently, I was giving a talk about Property Graph / Linked Data just recently at the European ApacheCon BigData conference. The Property Graph (PG) market is maybe x2 the size of the RDF market, and both are small. The

Re: Casting with Fuseki (Was: How to specify power in select cause SPARQL)

2015-10-09 Thread Andy Seaborne
On 09/10/15 08:21, Michael Brunnbauer wrote: Hello Maria, I am not aware of a way to express power with SPARQL. For powers of 10, you could use casting: PREFIX xsd: select (xsd:double(concat("1e",str(?exp))) as ?result) where { VALUES ?exp { 3 } } Which br

RE: Performance Cost of Reification

2015-10-09 Thread Patrick Hoeffel
Very well said, Andy. Thank you for taking the time to re-emphasize the importance of getting the data model right. I really appreciate it. Patrick -Original Message- From: Andy Seaborne [mailto:a...@apache.org] Sent: Friday, October 09, 2015 8:21 AM To: users@jena.apache.org Subject:

Re: Casting with Fuseki (Was: How to specify power in select cause SPARQL)

2015-10-09 Thread Michael Brunnbauer
Hello Andy, On Fri, Oct 09, 2015 at 03:42:16PM +0100, Andy Seaborne wrote: > "1e2"^^xsd:double is not "100"^^xsd:double. Same value, different term. > xsd:integer("100"^^xsd:double) works. So Fuseki can only cast from xsd:double to xsd:integer if the lexical value conforms to xsd:integer? And

Re: Casting with Fuseki (Was: How to specify power in select cause SPARQL)

2015-10-09 Thread Andy Seaborne
On 09/10/15 18:06, Michael Brunnbauer wrote: Hello Andy, On Fri, Oct 09, 2015 at 03:42:16PM +0100, Andy Seaborne wrote: "1e2"^^xsd:double is not "100"^^xsd:double. Same value, different term. xsd:integer("100"^^xsd:double) works. So Fuseki can only cast from xsd:double to xsd:integer if the

Re: Casting with Fuseki (Was: How to specify power in select cause SPARQL)

2015-10-09 Thread Michael Brunnbauer
Hello Andy, On Fri, Oct 09, 2015 at 06:25:47PM +0100, Andy Seaborne wrote: > >So Fuseki can only cast from xsd:double to xsd:integer if the lexical value > >conforms to xsd:integer? > > >And the lexical value is preserved by the Fuseki engine unless a computation > >is > >involved, which has to