You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by GitBox <gi...@apache.org> on 2019/09/09 14:08:28 UTC

[GitHub] [jena] jmkeil commented on issue #599: JENA-1751: Enable inline use of Element Subclasses

jmkeil commented on issue #599: JENA-1751: Enable inline use of Element Subclasses
URL: https://github.com/apache/jena/pull/599#issuecomment-529492556
 
 
   The idea was to use it for inline `Expr` building during `Query` building:
   
   
   ```java
   new SelectBuilder().addFilter(new E_NotExists(
       new ElementPathBlock(new Triple(nodeA, nodeB, nodeC),
                            new Triple(nodeD, nodeE, nodeF))
   ));
   ```
   However, I was not aware of the `ExprFactory` also allowing to do this inline:
   
   ```java
   ExprFactory e = new ExprFactory();
   new SelectBuilder().addFilter(e.notexists(
       new SelectBuilder().addWhere(nodeA, nodeB, nodeC)
                          .addWhere(nodeD, nodeE, nodeF)
   ));
   ```
   So, it is not needed.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services