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

Jan Martin Keil commented on JENA-1751:
---------------------------------------

{quote}If QueryBuilder does not work, I would like to understand why.
{quote}
It works. Now I understand, that I just did not find the right tools (in this 
case {{ExprFactory}}).

That means, this issue is somehow obsolete. Sorry for unintended misusing the 
issue tracker for something that should be a help request, again. 
Unfortunately, I did not find (and I think there isn't) any documentation or 
tutorial about the query builders explaining more than the [very 
basics|https://jena.apache.org/documentation/extras/querybuilder/index.html]. 
Also the 
[JavaDoc|https://jena.apache.org/documentation/extras/querybuilder/index.html] 
(which is to the best of my knowledge nowhere linked on 
[https://jena.apache.org/]), is, in my experience, not helpful and makes it 
often necessary to look into the code to understand what is needed and maybe 
find out how to get it. If I did not miss a comprehensive documentation 
somewhere, I think it would be worth, to improve documentation. Even a few 
words at the builder classes (mentioning e.g. {{ExprFactory}}) and small 
examples at the more complicated methods would help a lot. Should I open a new 
issue or transform this issue to cover the documentation topic?

> 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