Oracle8i interMedia Text Reference
Release 2 (8.1.6)

Part Number A77063-01

Library

Product

Contents

Index

Go to previous page Go to beginning of chapter Go to next page

CTX_THES Package, 2 of 26


ALTER_PHRASE

Alters an existing phrase in the thesaurus.

Syntax

CTX_THES.ALTER_PHRASE(tname      in varchar2, 
                       phrase     in varchar2,
                       op         in varchar2,
                       operand    in varchar2 default null);
tname

Specify thesaurus name.

phrase

Specify phrase to alter.

op

Specify the alter operation as a string or symbol. You can specify one of the following operations with the op and operand pair:'

op  meaning  operand 

RENAME

or

CTX_THES.OP_RENAME 

Rename phrase. If the new phrase already exists in the thesaurus, this procedure raises an exception. 

Specify new phrase. You can include qualifiers to change, add, or remove qualifiers from phrases. 

PT

or

CTX_THES.OP_MAKE_PT 

Make phrase the preferred term. Existing preferred terms in the synonym ring becomes non-preferred synonym. 

(none) 

SN  

Change the scope note on the phrase. 

Specify new scope note. 

operand

Specify argument to the alter operation. See table for op.

NOTES

Only CTXSYS or thesaurus owner can alter a phrase.

Examples

Correct misspelled word in thesaurus:

ctx_thes.alter_phrase('thes1', 'tee', 'rename', 'tea');

Remove qualifier from mercury (metal):

ctx_thes.alter_phrase('thes1', 'mercury (metal)', 'rename', 'mercury');

Add qualifier to mercury:

ctx_thes.alter_phrase('thes1', 'mercury', 'rename', 'mercury (planet)');

Make Kowalski the preferred term in its synonym ring:

ctx_thes.alter_phrase('thes1', 'Kowalski', 'pt');

Change scope note for view cameras:

ctx_thes.alter_phrase('thes1', 'view cameras', 'sn', 'Cameras with lens 
focusing');


Go to previous page Go to beginning of chapter Go to next page
Oracle
Copyright © 1996-2000, Oracle Corporation.

All Rights Reserved.

Library

Product

Contents

Index