galgonek opened a new issue, #2995:
URL: https://github.com/apache/jena/issues/2995

   ### Version
   
   Generating of syntactically incorrect queries when evaluating a service 
pattern
   
   ### What happened?
   
   I have noticed that during the evaluation of a federated query, Jena 
performs substitution of a variable for a RDF term even in cases where the 
given RDF term cannot be valid.
   
   This can be demonstrated by the following federated query:
   
   ```sparql
   SELECT * WHERE {
     VALUES ?P { "literal" }
   
     SERVICE <https://idsm.elixir-czech.cz/sparql/endpoint/idsm> {
         ?S ?P ?O.
     }
   }
   ```
   
   Jena sends the following query to the endpoint:
   
   ```sparql
   SELECT  *
   WHERE
     { ?S  "literal"  ?O }
   ```
   
   However, such a query is not syntactically correct.
   
   ### 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]

Reply via email to