Oracle8i interMedia Text Reference Release 2 (8.1.6) Part Number A77063-01 |
|
CTX_THES Package, 11 of 26
Removes a phrase from the thesaurus. Only thesaurus owner and CTXSYS can invoke this procedure on a given thesaurus.
CTX_THES.DROP_PHRASE(tname in varchar2, phrase in varchar2);
Specify thesaurus name.
Specify phrase to drop. If phrase is a disambiguated homograph, you must include the qualifier. When phrase does not exist in tname, this procedure raises and exception.
BT* / NT* relations are patched around the dropped phrase. For example, if A has a BT B, and B has BT C, after B is dropped, A has BT C.
When a word has multiple broader terms, then a relationship is established for each narrower term to each broader term.
Note that BT, BTG, BTP, and BTI are separate hierarchies, so if A has BTG B, and B has BTI C, when B is dropped, there is no relation implicitly created between A and C.
RT relations are not patched. For example, if A has RT B, and B has RT C, then if B is dropped, there is no associative relation created between A and C.
Assume you have the following relations defined in mythes:
wolf BT canine canine BT animal
You drop phrase canine:
begin ctx_thes.drop_phrase('mythes', 'canine'); end;
The resulting thesaurus is patched and looks like:
wolf BT animal
|
![]() Copyright © 1996-2000, Oracle Corporation. All Rights Reserved. |
|