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

Add "preferred language" setting to limit the literals being returned #13

Open
agarciadom opened this issue Nov 28, 2024 · 1 comment
Open
Assignees
Labels
enhancement New feature or request

Comments

@agarciadom
Copy link
Member

At the moment, accessing x.property where the property is associated to various RDF literals will return all the literals, regardless of the language tag. This can be confusing if someone is asking for the name of Spiderman and gets both the value in the default language and in Russian.

It'd be best to have a "preferred languages" setting where users can specify one or more language tags, and this could be set by default to [""], as in, just the default language. If someone wanted to first try getting literals in Russian and then in the default language if no Russian literals are found, they could specify ["ru", ""] instead.

@agarciadom agarciadom added the enhancement New feature or request label Nov 28, 2024
@OwenR-York OwenR-York self-assigned this Dec 11, 2024
@OwenR-York
Copy link
Contributor

Within the launcher configuration, a user must be able to define an ordered list of preferred languages. This list of preferred languages will be used when processing RDF literals to return literals in the most preferable language.

For example, a list of {en-GB, en} is provided. Literals marked @en-GB would be returned before @en or @undefined

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

When branches are created from issues, their pull requests are automatically linked.

2 participants