From OpenKM Documentation
Jump to: navigation, search

A thesaurus is a book that lists words grouped together according to similarity of meaning (containing synonyms and sometimes antonyms), in contrast to a dictionary, which contains definitions and pronunciations.

Nota advertencia.png Thesaurus is only available starting from OpenKM 5.0.

In Information Science, Library Science, and Information Technology, specialized thesauri are designed for information retrieval. They are a type of controlled vocabulary, for indexing or tagging purposes. If you want more information about the term you can take a look at

Nota clasica.png OpenKM can work with thesaurus defined in .owl and .rdfs formats.

There's a great utility for creating and maintaining your own thesaurus. Specific thesauri can be found on the Internet. For example, Agrovoc ( FAO ), NASA Thesaurus, UNESCO Thesaurus, Public administration Thesaurus among others. Some of them are free and some have usage restrictions.

In order to correctly configure OpenKM to use a thesaurus the following configuration properties must be set:


Set OWL file


Set base url


Query to get root node

kea.thesaurus.tree.root=SELECT DISTINCT UID, TEXT FROM {UID} Y {OBJECT}, {UID} rdfs:label {TEXT} ; [rdfs:subClassOf {CLAZZ}] where not bound(CLAZZ)
 and lang(TEXT)="en" USING NAMESPACE foaf=<>, dcterms=<>, 
 rdf=<>, owl=<>, rdfs=<>,
 skos=<>, dc=<>

Query to get childs node

kea.thesaurus.tree.childs=SELECT DISTINCT UID, TEXT FROM {UID} rdfs:subClassOf {CLAZZ}, {UID} rdfs:label {TEXT} where xsd:string(CLAZZ) =
 "RDFparentID" and lang(TEXT)="en" USING NAMESPACE foaf=<>, dcterms=<>, 
 rdf=< /1999/02/22-rdf-syntax-ns#>, owl=<>, rdfs=<>,
 skos=<>, dc=<>

You could be interested in:

Also check Thesaurus full example Padlock.gif for a step-by-step guide.