Re: Convert string to float in a SPARQL query

2016-09-16 Thread james anderson
good morning; > On 2016-09-15, at 23:56, lookman sanni wrote: > > Hi all, > > I am trying to perform a filter in a SPARQL query, through the below code: > > FILTER ( abs(xsd:float(?tAmount1)) = abs(xsd:float(?tAmount2)) ) > > The query is being parsed correctly, but I am not getting the expec

Re: Convert string to float in a SPARQL query

2016-09-16 Thread Andy Seaborne
On 15/09/16 22:56, lookman sanni wrote: Hi all, I am trying to perform a filter in a SPARQL query, through the below code: FILTER ( abs(xsd:float(?tAmount1)) = abs(xsd:float(?tAmount2)) ) The query is being parsed correctly, but I am not getting the expected result. Any clue why this would n

s-put, s-post, s-delete

2016-09-16 Thread Sandor Kopacsi
Dear List Members, In a previous thread (extending an existing dataset) Andy suggested to use s-put to replace a deficient data file (delete the old one and upload a new one) in an existing dataset. I am not sure, but I am afraid that the suggested s-put scrip is not appropriate to upload ne

Re: Convert string to float in a SPARQL query

2016-09-16 Thread Rob Vesse
As Andy has pointed out it is the decimal separator that is the problem. SPARQL defers to XML Schema Datatypes for its datatype support and that mandates certain lexical forms for datatypes including the use of ‘.’ As the decimal separator as opposed to ‘,’ in your data. Assuming that you contr

Re: sparql algebra differences jena 2.13.0/3.n

2016-09-16 Thread Andy Seaborne
Paul, If you could try the query below which mimics the effect of placing the ?var4 filter part, it will help determine if this is a filter placement issue or not. The difference is that first basic graph pattern is inside a {} with the relevant part of the filter expression. Andy

Re: s-put, s-post, s-delete

2016-09-16 Thread Andy Seaborne
Sandor, What makes you think it replaces the entire dataset? Have you seen this happen? HTTP PUT on the dataset URI wil do that - s-put does not because it replaces the graph, default or named, not the whole dataset. See the "SPARQL Graph Store Protocol". If your file is not in its own graph

Re: sparql algebra differences jena 2.13.0/3.n

2016-09-16 Thread Paul Tyson
Andy, With that rewrite, the 3.x tdbquery works as expected. I will investigate further this weekend and send other queries that don't work in 3.x. Regards, --Paul > On Sep 16, 2016, at 04:26, Andy Seaborne wrote: > > Paul, If you could try the query below which mimics the effect of placing

Re: sparql algebra differences jena 2.13.0/3.n

2016-09-16 Thread Paulo Picota
hello I will like to be remove from this Jena listing =) thanks for everything. PP 2016-09-16 4:26 GMT-05:00 Andy Seaborne : > Paul, If you could try the query below which mimics the effect of placing > the ?var4 filter part, it will help determine if this is a filter placement > issue or not.