CTX_THES Package

This chapter provides reference information for using the CTX_THES package to manage and browse thesauri. These thesaurus functions are based on the ISO-2788 and ANSI Z 39.19 standards except where noted.

Knowing how information is stored in your thesaurus helps in writing queries with thesaurus operators. You can also use a thesaurus to extend the knowledge base, which is used for ABOUT queries in English and French and for generating document themes.

CTX_THES contains the following stored procedures and functions:

Name Description
ALTER_PHRASE Alters thesaurus phrase.
ALTER_THESAURUS Renames or truncates a thesaurus.
BT Returns all broader terms of a phrase.
BTG Returns all broader terms generic of a phrase.
BTI Returns all broader terms instance of a phrase.
BTP Returns all broader terms partitive of a phrase.
CREATE_PHRASE Adds a phrase to the specified thesaurus.
CREATE_RELATION Creates a relation between two phrases.
CREATE_THESAURUS Creates the specified thesaurus.
CREATE_TRANSLATION Creates a new translation for a phrase.
DROP_PHRASE Removes a phrase from thesaurus.
DROP_RELATION Removes a relation between two phrases.
DROP_THESAURUS Drops the specified thesaurus from the thesaurus tables.
DROP_TRANSLATION Drops a translation for a phrase.
EXPORT_THESAURUS Exports a thesaurus from the thesaurus tables.
HAS_RELATION Tests for the existence of a thesaurus relation.
IMPORT_THESAURUS Imports a thesaurus into the thesaurus tables.
NT Returns all narrower terms of a phrase.
NTG Returns all narrower terms generic of a phrase.
NTI Returns all narrower terms instance of a phrase.
NTP Returns all narrower terms partitive of a phrase.
OUTPUT_STYLE Sets the output style for the expansion functions.
PT Returns the preferred term of a phrase.
RT Returns the related terms of a phrase
SN Returns scope note for phrase.
SYN Returns the synonym terms of a phrase
THES_TT Returns all top terms for phrase.
TR Returns the foreign equivalent of a phrase.
TRSYN Returns the foreign equivalent of a phrase, synonyms of the phrase, and foreign equivalent of the synonyms.
TT Returns the top term of a phrase.
UPDATE_TRANSLATION Updates an existing translation.

Note: The APIs in the CTX_THES package do not support identifiers that are prefixed with the schema or the owner name.

See Also: Oracle Text CONTAINS Query Operators for more information about the thesaurus operators.