Oracle8i interMedia Text Reference Release 2 (8.1.6) Part Number A77063-01 |
|
CTX_THES Package, 9 of 26
Creates a relation between two phrases in the thesaurus.
Only thesaurus owner and CTXSYS can invoke this procedure on a given thesaurus.
CTX_THES.CREATE_RELATION(tname in varchar2, phrase in varchar2, rel in varchar2, relphrase in varchar2);
Specify the thesaurus name
Specify the phrase to alter or create. If phrase is a disambiguated homograph, you must specify the qualifier. If phrase does not exist in the thesaurus, it is created.
Specify the relation to create.The relation is from phrase to relphrase. You can specify one of the following relations:
Specify the related phrase. If relphrase does not exist in tname, relphrase is created. See table for rel.
The relation you specify for rel is interpreted as from phrase to relphrase. For example, consider dog with broader term animal:
dog BT animal
To add this relation, specify the arguments as follows:
begin CTX_THES.CREATE_RELATION('thes','dog','BT','animal'); end;
Create relation VEHICLE NT CAR:
ctx_thes.create_relation('thes1', 'vehicle', 'NT', 'car');
Create Japanese translation for you:
ctx_thes.create_relation('thes1', 'you', 'JAPANESE:', 'kimi');
|
![]() Copyright © 1996-2000, Oracle Corporation. All Rights Reserved. |
|