[ https://issues.apache.org/jira/browse/JENA-1752?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16921332#comment-16921332 ]
Jan Martin Keil commented on JENA-1752: --------------------------------------- I just recognized, that this can be done by using {{addFilter(new org.apache.jena.sparql.expr.E_Exists(<some Element>))}}. I was confused by the {{org.apache.jena.sparql.syntax.ElementExists}}. > QueryBuilders should support (NOT) EXISTS clause > ------------------------------------------------ > > Key: JENA-1752 > URL: https://issues.apache.org/jira/browse/JENA-1752 > Project: Apache Jena > Issue Type: Improvement > Reporter: Jan Martin Keil > Priority: Major > > To support (NOT) EXISTS clauses, I propose to add to the classes > * {{org.apache.jena.arq.querybuilder.AskBuilder}} > * {{org.apache.jena.arq.querybuilder.ConstructBuilder}} > * {{org.apache.jena.arq.querybuilder.SelectBuilder}} > the following methods > * {{addExists(Element el)}} > * {{addNotExists(Element el)}} -- This message was sent by Atlassian Jira (v8.3.2#803003)