Re: [Virtuoso-users] Problem with MAX function in SPARQL

2015-11-28 Thread Hugh Williams
Hi Francesco, Note the a workaround query is to replace MAX() with SAMPLE() or IRI(MAX(str())) , although only the last one will provide a repeatable result: SQL> SPARQL PREFIX km4c:#> PREFIX foaf:

Re: [Virtuoso-users] Problem with MAX function in SPARQL

2015-11-11 Thread Hugh Williams
Hi Francesco, I have been able to recreate this issue with the latest open source develop/7 build and reported to development to look into: SQL> SPARQL PREFIX km4c:> PREFIX foaf:

Re: [Virtuoso-users] Problem with MAX function in SPARQL

2015-11-11 Thread Kingsley Idehen
On 11/11/15 1:09 PM, Francesco Balzu wrote: > Excuse me if I submit again the same question, but it is important to > me to know where I am mistaken. > I have a problem with the MAX aggregate function in SPARQL. I provide > the data and the query that generates the wrong (according to me) > result.

[Virtuoso-users] Problem with MAX function in SPARQL

2015-11-11 Thread Francesco Balzu
Excuse me if I submit again the same question, but it is important to me to know where I am mistaken. I have a problem with the MAX aggregate function in SPARQL. I provide the data and the query that generates the wrong (according to me) result. The query is slightly different from the one that

Re: [Virtuoso-users] Problem with MAX function in SPARQL

2015-11-03 Thread Hugh Williams
Hi Francesco, Are you able to provide a sample dataset and steps to recreate this issue we can setup locally ? Best Regards Hugh Williams Professional Services OpenLink Software, Inc. // http://www.openlinksw.com/ Weblog -- http://www.openlinksw.com/blogs/ LinkedIn -- http:/

[Virtuoso-users] Problem with MAX function in SPARQL

2015-11-03 Thread Francesco Balzu
Hi all! I have the following problem with the MAX aggregate function in SPARQL. If I run the query PREFIX foaf: PREFIX km4c: PREFIX rdf: SELECT ?ride (max(?avmr) AS ?avmrLast) FROM