Nothing Special   »   [go: up one dir, main page]

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

Allow variables as the argument of SERVICE #1384

Open
pchampin opened this issue Jun 28, 2024 · 2 comments
Open

Allow variables as the argument of SERVICE #1384

pchampin opened this issue Jun 28, 2024 · 2 comments

Comments

@pchampin
Copy link

Issue type:

  • ➕ Feature request

Description:

I would like to use the SERVICE clause to perform a kind of "user-driven link traversal" (since Comunica can deal with simple RDF resources in the SERVICE clause, not just SPARQL endpoints).

This would look like that:

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
SELECT *
WHERE {
  ?person a foaf:Person; rdfs:seeAlso ?sa.
  
  SERVICE ?sa {
    ?person foaf:knows ?other.
  }
}
LIMIT 10

Unfortunately, currently Comunica does not accept a variable after the SERVICE keyword. I wish it did...

Copy link

Thanks for the suggestion!

@rubensworks rubensworks moved this from Triage to To do (prio:medium) in Development Jun 28, 2024
@rubensworks
Copy link
Member

Note to self: We'll probably need some new optimize actor that enforces the use of the bind join when SERVICE with variable is found. We can use this enforcement mechanism as basis for if we ever want to implement query hints.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: To do (prio:medium)
Development

No branches or pull requests

2 participants