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 URL locations in annif load-vocab #753

Open
juhoinkinen opened this issue Dec 14, 2023 · 1 comment
Open

Support URL locations in annif load-vocab #753

juhoinkinen opened this issue Dec 14, 2023 · 1 comment

Comments

@juhoinkinen
Copy link
Member

Currently when loading a vocabulary with the command annif load-vocab <VOCAB_ID> <SUBJECTFILE> the location of the subject file needs to be a local path.

Typically when setting up a new project the first step is to download the vocabulary to a local file (e.g. wget "https://finto.fi/rest/v1/koko/data?format=text/turtle" -O koko-skos.ttl) and then running annif load-vocab from it, and after that the local file is no more needed. However, for convenience this could be just one operation, where annif load-vocab could accept also URLs, pointing to the subject file somewhere on internet:

annif load-vocab koko https://finto.fi/rest/v1/koko/data?format=text/turtle
@juhoinkinen
Copy link
Member Author

Maybe in addition to URLs there could be support for also Hugging Face Hub repository locations, aligned with the upload format of the projects upload feature, #760.

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

1 participant