[ 
https://issues.apache.org/jira/browse/JENA-1751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16921427#comment-16921427
 ] 

Claude Warren commented on JENA-1751:
-------------------------------------

> Unfortunately not. For example, (NOT) EXISTS requires to use Element 
> subclasses.

You can use the ExprFactory from the QueryBuilder pacakge to do EXISTS() and 
NOT().  You can construct an ExprFactory by itself or ask an instance of 
AbstractQueryBuilder to return one.

the ExprFactory.exists() takes a  WhereClause as an argument so any 
QueryBuilder will work as will the WhereBuilder.

If QueryBuilder does not work, I would like to understand why.


> Enable inline use of Element Subclasses
> ---------------------------------------
>
>                 Key: JENA-1751
>                 URL: https://issues.apache.org/jira/browse/JENA-1751
>             Project: Apache Jena
>          Issue Type: Improvement
>            Reporter: Jan Martin Keil
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> To enable the inline use of 
> {{org.apache.jena.sparql.syntax.ElementTriplesBlock}} during query 
> generation, I propose to:
>  * add constructor {{public ElementTriplesBlock(Triple triple)}}
>  * add constructor {{public ElementTriplesBlock(Node s, Node p, Node o)}}
>  * add {{return this}} to
>  ** {{addTriple(Triple t)}}
>  ** {{addTriple(int index, Triple t)}}
>  ** {{addTriplePath(TriplePath path)}}
>  ** {{addTriplePath(int index, TriplePath path)}}



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to