Hi there,
I encountered an issue were COUNT(DISTINCT *) returns always '1' when there is only one variable in scope. Feels like a bug to me.
Stardog Version: 8.0.0
To reproduce:
- Load Dataset [1]
- Execute Query:
select (count (distinct *) as ?cnt) { ?x a :A }
OUTCOME: The query returns 1
EXPECTED: The query should return 2
Sidenotes:
- When I explicitly count the variable '?x' I get the desired result. Query:
select (count (distinct ?x) as ?cnt) { ?x a :A }
-> returns 2 - I tested the queries with another system and it returned my expected result.
[1]: Example Dataset
PREFIX : <http://www.test.de/count#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
:A a owl:Class .
:i a :A .
:j a :A .