Skip to content

Commit

Permalink
Added a dummy triple into the FILTER of the count query to ensure tha…
Browse files Browse the repository at this point in the history
…t Tentris executes it correctly.
  • Loading branch information
MichaelRoeder committed Sep 20, 2024
1 parent c065a58 commit a52a17e
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,10 @@ protected String createNotExistsFilter(ClassExpression context, String instanceV
for (ClassExpression expression : expressions) {
SparqlBuildingVisitor visitor = new SparqlBuildingVisitor(filterBuilder, "?pos", null, null, null);
visitor.setIntermediateVariableName("?y");
filterBuilder.append("FILTER NOT EXISTS { ");
filterBuilder.append("FILTER NOT EXISTS { \n ");
// We have to add a dummy triple
filterBuilder.append(instanceVariable);
filterBuilder.append(" a <http://www.w3.org/2002/07/owl#NamedIndividual> . \n");
expression.accept(visitor);
filterBuilder.append(" }\n");
}
Expand Down

0 comments on commit a52a17e

Please sign in to comment.