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 language matching in SOQL/Criteria API #161

Closed
ledsoft opened this issue May 4, 2023 · 0 comments · Fixed by #184
Closed

Support language matching in SOQL/Criteria API #161

ledsoft opened this issue May 4, 2023 · 0 comments · Fixed by #184

Comments

@ledsoft
Copy link
Contributor

ledsoft commented May 4, 2023

As a developer, I want to be able to filter strings in SOQL/Criteria queries by their language. This is a feature not present in JPQL. However, SPARQL does support language matching (e.g., using the langMatches function) and it makes sense to allow this feature in JOPA as well.

Note that langMatches often works in conjunction with lang, which extracts language tag from a string literal. The language matching API in SOQL/Criteria API should take this into account. An example could then be something like:

SELECT t FROM Term t WHERE LANG(t.label) = :langParam
ledsoft added a commit that referenced this issue Jun 30, 2023
ledsoft added a commit that referenced this issue Jun 30, 2023
ledsoft added a commit that referenced this issue Jun 30, 2023
@ledsoft ledsoft linked a pull request Jun 30, 2023 that will close this issue
@ledsoft ledsoft closed this as completed Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant