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

Claude Warren commented on JENA-1295:
-------------------------------------

I had thought that the usage would be something like:
 
    .addValuesVar( "?x" ).addValuesVar( "?y" ). addDataBlock( Arrays.asList( 
"foo", "bar" ) ).addDataBlock( Arrays.asList( "fu", "baz" ) )

to yield:
    VALUES ( ?x ?y ) { ("foo" "bar") ("fu" "baz" ) }

But I see that this is a bit confusing and as noted DataBlock is not very 
descriptive.

perhaps something like:
    .addValues( "?x", "foo", "bar" ).addValues( "?y", "bar", "baz" ) 

to yield the same result as above.  And thowing an exception if the number of 
items for each variable does not match.

Thoughts?

Claude

> Add support to VALUES in SelectBuilder
> --------------------------------------
>
>                 Key: JENA-1295
>                 URL: https://issues.apache.org/jira/browse/JENA-1295
>             Project: Apache Jena
>          Issue Type: Wish
>          Components: QueryBuilder
>            Reporter: Aleksandar Babic
>            Assignee: Claude Warren
>             Fix For: Jena 3.3.0
>
>
> It seems that QueryBuilder is lacking on support for building VALUES block, 
> or there is no obvious method to do that.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to