DROP_RELATION
Removes a relation between two phrases from the thesaurus.
Note: CTX_THES.DROP_RELATION removes only the relation between two phrases. Phrases are never removed by this call.
Only thesaurus owner and CTXSYS can invoke this procedure on a given thesaurus.
Syntax
CTX_THES.DROP_RELATION(tname in varchar2,
phrase in varchar2,
rel in varchar2,
relphrase in varchar2 default null);
tname
Specify the thesaurus name.
phrase
Specify the filing phrase.
rel
Specify the relation to drop. The relation is from phrase to relphrase. You can specify one of the following relations:
| relation | meaning | relphrase |
|---|---|---|
| BT/NT | Remove hierarchical relation. | Optional specify relphrase. If not provided, all relations of that type for the phrase are removed. |
| RT | Remove associative relation. | Optionally specify relphrase. If not provided, all RT relations for the phrase are removed. |
| SYN | Remove phrase from its synonym ring. | (none) |
| PT | Remove preferred term designation from the phrase. The phrase remains in the synonym ring. | (none) |
| language | Remove a translation from a phrase. | Optionally specify relphrase. You can specify relphrase when there are multiple translations for a phrase for the language, and you want to remove just one translation. If relphrase is NULL, all translations for the phrase for the language are removed. |
relphrase
Specify the related phrase.
Notes
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 remove this relation, specify the arguments as follows:
begin
CTX_THES.DROP_RELATION('thes','dog','BT','animal');
end;
You can also remove this relation using NT as follows:
begin
CTX_THES.DROP_RELATION('thes','animal','NT','dog');
end;
Example
Remove relation VEHICLE NT CAR:
ctx_thes.drop_relation('thes1', 'vehicle', 'NT', 'car');
Remove all narrower term relations for vehicle:
ctx_thes.drop_relation('thes1', 'vehicle', 'NT');
Remove Japanese translations for me:
ctx_thes.drop_relation('thes1', 'me', 'JAPANESE:');
Remove a specific Japanese translation for me:
ctx_thes.drop_relation('thes1', 'me', 'JAPANESE:', 'boku')