Re: Unable to build the below query using jena query builder

2023-12-08 Thread Andy Seaborne
On 08/12/2023 02:08, Dhamotharan, Kishan wrote: Hello Lorenz, Thanks for your response. ... Since query builder 3.5 does not have addWhereValueVar is there any other way to build the query ? It’s a very painful process to pull in three party / open source libraries, requires multiple

Re: Unable to build the below query using jena query builder

2023-12-07 Thread Dhamotharan, Kishan
Hello Lorenz, Thanks for your response. Yes I did try using the mentioned flow, but it did not work SelectBuilder sb = new SelectBuilder(); SelectBuilder sb_g1 = new SelectBuilder(); sb_g1. addValueVar( SelectBuilder sb_g2 = new SelectBuilder(); sb_g2.addValueVar( .

Re: Unable to build the below query using jena query builder

2023-12-06 Thread Lorenz Buehmann
Hi, did you try addGraph method on the SelectBuilder object with another SelectBuilder object on which you add the VALUES clause and the triple pattern? In your case with the UNION I think the flow should be something like SelectBuilder sb = ... SelectBuilder sb_g1 = ... // first graph

Unable to build the below query using jena query builder

2023-12-05 Thread Dhamotharan, Kishan
Hi All, I have been trying to construct the below query using Jena query builder. I have tried multiple different ways to build it, nothing seems to work. Adding values block inside Graph seems to be not possible. We are using Jena 3.5. SELECT ?subject ?predicate ?object ?graph WHERE { {