Skosmos icon indicating copy to clipboard operation
Skosmos copied to clipboard

getConceptSchemes returns no results if the concept schemes of the vocabulary have no labels in the chosen language

Open joelit opened this issue 3 years ago • 0 comments

At which URL did you encounter the problem?

https://dev.finto.fi/slm/sv/page/?uri=http://urn.fi/URN:NBN:fi:au:slm:s861

What steps will reproduce the problem?

  1. Go to https://dev.finto.fi/slm/fi/page/?uri=http://urn.fi/URN:NBN:fi:au:slm:s861
  2. Count the number of top concepts (actually concept schemes in this case)
  3. Switch the language to "sv", and count the number of top concepts again - there's one less

What is the expected output? What do you see instead?

This is specific to skos:ConceptSchemes in Skosmos. If a concept scheme does not have a label (rdfs:label, skos:prefLabel or dc:title) in the chosen language, it will not be returned by getConceptSchemes in the Vocabulary object. If the vocabulary has several concept schemes like in this example, this will cause the ones without a label in the chosen content language to disappear. In the case of a single concept scheme for the chosen vocabulary, this will cause the top concepts to disappear from the hierarchy view when switching the content language on the go.

What browser did you use? (eg. Firefox, Chrome, Safari, Internet explorer)

Chromium

joelit avatar Jun 15 '22 16:06 joelit