GitHub user kouralex created a discussion: Discrepancies in SPARQL 
implementations - Aggregate expression in SELECT and its alias in GROUP BY

I have a SPARQL query that had been working a while in Fuseki but recently got 
a report that in case of GraphDB/RDF4J implementation where it seemingly got 
rejected: https://github.com/NatLibFi/Skosmos/issues/1857 / 
https://github.com/NatLibFi/Skosmos/pull/1860. From that rather convoluted case 
I extracted this minimal example:

```
PREFIX ex: <http://example.org/>
SELECT ?author (COUNT(?book) AS ?bookCount)
WHERE {
  ?book a ex:Book ;
        ex:writtenBy ?author .
}
GROUP BY ?author ?bookCount
```

As it is, works in Fuseki. Should it work? SPARQL 1.1 specification does not 
clarify this use case. A colleague of mine thinks it should not work, however, 
I see a point here. In any case, this would be a great example to the SPARQL 
test cases to bring conforming implementations in line.

GitHub link: https://github.com/apache/jena/discussions/3644

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to