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

Support for single language vocabularies without language tags #715

Open
Kordishal opened this issue Feb 22, 2018 · 2 comments
Open

Support for single language vocabularies without language tags #715

Kordishal opened this issue Feb 22, 2018 · 2 comments

Comments

@Kordishal
Copy link

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
Copy link
Member

osma commented Mar 6, 2018

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.

@osma osma added this to the Blue Sky milestone Mar 6, 2018
@Kordishal
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants