Help needed: SKOS vocabulary error in Annif (using LCSH)

18 views
Skip to first unread message

Ilektra Osmani

unread,
Apr 25, 2025, 1:46:28 AMApr 25
to Annif Users

Dear Annif users,

I am a Master's student in Digital Humanities at Linnaeus University in Sweden, working on my thesis project exploring ML tools like Annif to support library subject cataloguing.

I am trying to use the LCSH SKOS vocabulary from https://id.loc.gov/download/ with Annif, but I keep getting this error:

'ValueError: Invalid vocabulary specification'

Has anyone successfully used the LCSH SKOS file with Annif? Do I need to convert or preprocess it in some way before it works?

Any help or pointers would be greatly appreciated!

Best regards,

Ilektra Osmani

Osma Suominen

unread,
Apr 28, 2025, 10:52:22 AMApr 28
to annif...@googlegroups.com
Hello Ilektra Osmani,

I think the error is related to your Annif configuration. Can you please
show your projects.cfg (or .toml) file as well as the Annif command you
ran to load the vocabulary?

Best,
Osma

On 24/04/2025 21:27, Ilektra Osmani wrote:
> Dear Annif users,
>
> I am a Master's student in Digital Humanities at Linnaeus University in
> Sweden, working on my thesis project exploring ML tools like Annif to
> support library subject cataloguing.
>
> I am trying to use the LCSH SKOS vocabulary from https://id.loc.gov/
> download/ <https://id.loc.gov/download/> with Annif, but I keep getting
> this error:
>
> *'ValueError: Invalid vocabulary specification'*
>
> Has anyone successfully used the LCSH SKOS file with Annif? Do I need to
> convert or preprocess it in some way before it works?
>
> Any help or pointers would be greatly appreciated!
>
> Best regards,
>
> Ilektra Osmani
>
> --
> You received this message because you are subscribed to the Google
> Groups "Annif Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to annif-users...@googlegroups.com <mailto:annif-
> users+un...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/annif-
> users/33ebe170-459a-41d8-b168-e14a3fa55da9n%40googlegroups.com <https://
> groups.google.com/d/msgid/annif-users/33ebe170-459a-41d8-b168-
> e14a3fa55da9n%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
Osma Suominen
D.Sc. (Tech), Information Systems Specialist
National Library of Finland
P.O. Box 15 (Unioninkatu 36)
00014 HELSINGIN YLIOPISTO
Tel. +358 50 3199529
osma.s...@helsinki.fi
http://www.nationallibrary.fi

Reply all
Reply to author
Forward
0 new messages