Skip to content

Conversation

@gouttegd
Copy link
Collaborator

@gouttegd gouttegd commented Sep 5, 2025

When showing the available ontologies in the dropdown menu at the top of the main window:

  1. if an ontology has ”display names” (rdfs:title, dc:terms) in several languages, try picking a name that matches the current language preferences set forth in the rendering settings;
  2. sort the list of ontologies according to their display names.

closes #1246

When we obtain the "display name" of the ontology (which is shown in the
ontology selector menu at the top of the main window), take into account
any language preferences.

We collect all rdfs:label or dc:title annotations and store them in a
map with the language tag as the key ("" for an annotation without a
language tag). Then we can iterate over the preferred languages and
check if we have an entry in the table.
In the current ontology selector (dropdown menu at the top of the main
window), sort ontologies by their display name rather than by their
IRIs.
@gouttegd gouttegd self-assigned this Sep 5, 2025
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

Successfully merging this pull request may close these issues.

Display Ontology label, title or name instead of fragment?

2 participants