Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generating of syntactically incorrect queries when evaluating a service pattern #2995

Open
galgonek opened this issue Feb 7, 2025 · 0 comments
Labels

Comments

@galgonek
Copy link

galgonek commented Feb 7, 2025

Version

5.3.0

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:

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:

SELECT  *
WHERE
  { ?S  "literal"  ?O }

However, such a query is not syntactically correct.

Relevant output and stacktrace

Are you interested in making a pull request?

None

@galgonek galgonek added the bug label Feb 7, 2025
@galgonek galgonek changed the title 5.3.0 Generating of syntactically incorrect queries when evaluating a service pattern Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant