-
Notifications
You must be signed in to change notification settings - Fork 3
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
Sarql query - How to deal with available languages #22
Comments
The issue is more global. The problem exposed above occurs when the same language is not present for all the properties. But more generally, if we suppose we have a default language, do we provide a fallback when the properties are not available in this language ? For instance, the query above won't work in french but will work in english:
One option could be to deal with the language in the ui, where we could implement some specific rules to have a safe fallback. But it's not trivial. If we do so, we need to remove the FILTER statement in queries and build a process utility. Another option could be to make dedicated queries to retrieve all text properties: these queries should return one or multiple results depending on the languages available. But it adds a lot of complexity too. |
The available languages for a property vary from object to object. For instance, the following query will work if we ask for "FR" but won't work if we ask for "EN" (the item labels are available in french and english, but the classification label exists only in english):
Note: this is a simplified version of
itemDetails
query.The text was updated successfully, but these errors were encountered: