You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@marmotta.apache.org by Fabian Cretton <Fa...@hevs.ch> on 2014/10/10 08:51:23 UTC

Rép. : Re: Marmotta 3.3.0 - SPARQL - SUM

Sebastian, 
 
that works! thank you
Fabian

>>> Sebastian Schaffert <se...@gmail.com> 09.10.2014 16:54 >>>
Can you update your git repository, build again and try again? building libraries/kiwi/kiwi-sparql should be enough in case you have a recent snapshot. Otherwise do a "mvn clean install -DskipTests" in the root directory to save time ;-)

Greetings,

Sebastian

2014-10-09 16:24 GMT+02:00 Sebastian Schaffert <se...@gmail.com>:


It's a copy-paste bug. Class Cast Exception, fixing it now.

Greetings,

Sebastian

2014-10-09 16:08 GMT+02:00 Sebastian Schaffert <se...@gmail.com>:


SUM is implemented, of course. But sometimes the translation into SQL still yields invalid SQL queries. Turn on logging for SPARQL and check in the marmotta-debug log file. I can also try with my setup.

I would also recommend you to update the latest snapshot of the repository, because there are many bug fixes especially in the SPARQL part.

Greetings,

Sebastian

2014-10-09 15:42 GMT+02:00 Fabian Cretton <Fa...@hevs.ch>:


Hi,
Is SPARQL-sum implemented in the current version under developpment (3.3.0) ?
I did refresh my fork two weeks ago, and this query doesnt' work:
prefix sdmx-measure: <http://purl.org/linked-data/sdmx/2009/measure#>
SELECT (SUM(?value) as ?valSum) WHERE {
?obs sdmx-measure:obsValue ?value.
}
I have an error message in the interface: unknown exception while evaluating SPARQL query
I can't see the logs right now (I have to check out why my logs no more work since my last synchronisation)
But is "sum" implemented or not ? or maybe I do have a simple syntax mistake ?
thank you for any help

Fabian