public void SparqlGroupByAggregateEmptyGroup1() { String query = @"PREFIX ex: <http://example.com/> SELECT (MAX(?value) AS ?max) WHERE { ?x ex:p ?value }"; SparqlQuery q = new SparqlQueryParser().ParseFromString(query); LeviathanQueryProcessor processor = new LeviathanQueryProcessor(new TripleStore()); Console.WriteLine(q.ToAlgebra().ToString()); SparqlResultSet results = processor.ProcessQuery(q) as SparqlResultSet; if (results == null) { Assert.True(false, "Null results"); } Assert.False(results.IsEmpty, "Results should not be empty"); Assert.Equal(1, results.Count); Assert.True(results.First().All(kvp => kvp.Value == null), "Should be no bound values"); }