Aklakan commented on issue #2580:
URL: https://github.com/apache/jena/issues/2580#issuecomment-2227452031
It turns out that the issue is a bit more complex because of the involved
semantics:
In `ExecHTTPBuilder.java` there is the code:
```java
/** Set the query - the the string must be valid syntax.
* Use {@link #queryString} to pass in a query with other syntax
* (e.g. the remote end has SPARQL syntax extensions).
*/
public Y query(String queryStr) {
Objects.requireNonNull(queryStr);
Query query = QueryFactory.create(queryStr);
setQuery(query, queryStr);
return thisBuilder();
}
/** Set the query string - this also clears any Query already set.
* The queryString is not interpreted and it may contain SPARQL syntax
* extensions supported by the target triple store.
*/
public Y queryString(String queryString) {
Objects.requireNonNull(queryString);
setQuery(null, queryString);
return thisBuilder();
}
```
My problem is, that I want to use `RDFConnection.query(String queryString)`
with the semantics of `queryString`, but the latter method is not part of the
API.
The proposed PR now adds the `queryString` methods to the relevant APIs.
The label of this issue could be changed from `bug` to `enhancement`.
--
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]