YvanDesPatates opened a new issue, #3656: URL: https://github.com/apache/jena/issues/3656
### Version 5.6.0 and before ### What happened? Jena only handles the VALUES clause in a SELECT query. Here is a minimal exemple (I also give a .zip minimal maven project with .jar in it maybe it's more convenient) [jena-test.zip](https://github.com/user-attachments/files/24235878/jena-test.zip) ```java public static void main( String[] args ) { Var s = Converters.makeVar("s"); Node[] uris = new Node[] { NodeFactory.createURI("my:uri1"), NodeFactory.createURI("my:uri2") }; WhereBuilder where = new WhereBuilder(); where.addWhereValueVar(s, uris); where.addWhere("?s", "?p", "?o"); System.out.println("[ WHERE clause ]"); System.out.println(where); System.out.println("----------------------------------------"); SelectBuilder select = new SelectBuilder(); select.addWhere(where); System.out.println("[ SELECT query ]"); System.out.println(select.build()); System.out.println("----------------------------------------"); UpdateBuilder update = new UpdateBuilder(); update.addDelete("?s", "?p", "?o"); update.addWhere(where); System.out.println("[ DELETE query ]"); System.out.println(update.buildRequest()); } ``` --- output : ``` [ WHERE clause ] WHERE { ?s ?p ?o VALUES ?s { <my:uri1> <my:uri2> } } ---------------------------------------- [ SELECT query ] SELECT * WHERE { ?s ?p ?o VALUES ?s { <my:uri1> <my:uri2> } } ---------------------------------------- [ DELETE query ] DELETE { ?s ?p ?o . } WHERE { ?s ?p ?o } ``` ### Relevant output and stacktrace ```shell ``` ### Are you interested in making a pull request? None -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
