NatLibFi / Skosmos

Thesaurus and controlled vocabulary browser using SKOS and SPARQL
Other
218 stars 94 forks source link

Concept type translations for autocomplete search #1631

Open joelit opened 2 months ago

joelit commented 2 months ago

Link to relevant issue(s), if any

1514

Description of the changes in this PR

This PR produces translation strings in WebController for different class URIs. Autocomplete result list can then present human readable labels for the types of search results.

Known problems or uncertainties in this PR

Checklist

sonarcloud[bot] commented 2 months ago

Quality Gate Failed Quality Gate failed

Failed conditions
28.9% Duplication on New Code (required ≤ 3%)
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint

osma commented 2 months ago

Looks like a good start.

Regarding terminology: I think conceptTypeTranslations or typeTranslations is potentially misleading. Some of the type labels come from translations, others from the vocabulary data. How about typeLabels or just types, depending on the context?