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

Support SERVICE in SOQL/Criteria API #290

Open
luxbe opened this issue Nov 22, 2024 · 1 comment
Open

Support SERVICE in SOQL/Criteria API #290

luxbe opened this issue Nov 22, 2024 · 1 comment

Comments

@luxbe
Copy link
Contributor

luxbe commented Nov 22, 2024

Federation is a big Use Case for SPARQL, so JOPA should support the SPARQL SERVICE keyword within SOQL/Criteria API.

Similar to #218, this is a completely new query feature and its syntax need to be carefully considered. Ideally, both the SERVICE and the OPTIONAL keyword follow the same Syntax.

@luxbe
Copy link
Contributor Author

luxbe commented Nov 22, 2024

One proposal for a common Syntax could be the following:

SELECT p FROM Person p WHERE SERVICE :service ( p.username = :uname )

And for OPTIONAL:

SELECT p FROM Person p WHERE OPTIONAL ( p.username = :uname )

Where braces wrap one or multiple Axioms, similar to the resulting SPARQL.
Braces would be required for the SERVICE and OPTIONAL keywords to avoid disambiguate statements where it isn't clear which statements are affected by the keywords.

The SERVICE keyword would also require another parameter before the statements wrapped in brackets (e.g. :service) to actually set the URL of the Service to talk to

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant