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

Expose vocab information via REST API #837

Open
osma opened this issue Mar 6, 2025 · 0 comments
Open

Expose vocab information via REST API #837

osma opened this issue Mar 6, 2025 · 0 comments

Comments

@osma
Copy link
Member

osma commented Mar 6, 2025

I think the Annif REST API could expose some more information about the vocabularies. Here is a list, ranging from easy to more difficult:

  1. /projects/{projectId} could expose the vocabulary ID of a single project
  2. /projects/ could expose the vocabulary IDs of all returned projects
  3. there could be a /vocabs/ method that lists all vocabs along with basic information (similar to annif list-vocabs)
  4. there could be a /vocabs/{vocabId} method that shows basic information about a single vocabulary
  5. there could be additional methods that expose vocabulary concepts (but this is potentially getting into Skosmos territory...)

The reasons for implementing this:

  • parity between the CLI and the REST API
  • Finto AI, with the recent functionality for guessing the language, would benefit from knowing the vocabulary ID of a project - now it has to guess it from the project ID
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