NatLibFi / Skosmos

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

Support for single language vocabularies without language tags #715

Open Kordishal opened 6 years ago

Kordishal commented 6 years ago

The Defense Technical Information Center Thesaurus, from http://www.dtic.mil/dtic/services/dtic_thesaurus/download.html (download as SKOS, XML crashes my browser) is defined without language tags for all of its labels. This is not required by the SKOS Reference. Although it might be best practice.

Would it be possible for Skosmos to assume language tags if only one language is defined for a vocabulary?

Currently when uploading this vocabulary it displays the concept count, but does not display them in the alphabetical or hierarchical list.

osma commented 6 years ago

I'm somewhat reluctant to add support for this. It goes against SKOS best practice as you say. There are quite a few places in Skosmos code where language tags are tested and compared. This would introduce another special case for each one of them.

Would it be an option for you to instead preprocess the vocabulary using e.g. Skosify? If you give it a "default language" parameter, it will change all labels without language tag to that language.

Kordishal commented 6 years ago

Yeah I will probably either drop the thesaurus or use Skosify to fix it. So this is not necessary at the moment.