SEM_APIS.CLEANUP_FAILED
Format
SEM_APIS.CLEANUP_FAILED(
rdf_object_type IN VARCHAR2,
rdf_object_name IN VARCHAR2,
options IN VARCHAR2 DEFAULT NULL,
network_owner IN VARCHAR2 DEFAULT NULL,
network_name IN VARCHAR2 default NULL);
Description
Drops (deletes) a specified rulebase or entailment if it is in a failed state.
Parameters
rdf_object_type
Type of the RDF object: RULEBASE for a rulebase or RULES_INDEX for an entailment (rules index).
rdf_object_name
Name of the RDF object of type rdf_object_type.
options
(Not currently used.)
network_owner
Owner of the RDF network. (See Table: network_owner and network_name Parameters.)
network_name
Name of the RDF network. (See Table: network_owner and network_name Parameters.)
Usage Notes
This procedure checks to see if the specified RDF object is in a failed state; and if the object is in a failed state, the procedure deletes the object.
A rulebase or entailment is in a failed state if a system failure occurred during the creation of that object. You can check if a rulebase or entailment is in a failed state by checking to see if the value of the STATUS column is FAILED in the SEM_RULEBASE_INFO view (described in Inferencing: Rules and Rulebases) or the SEM_RULES_INDEX_INFO view (described in Inferred Graphs), respectively.
If the rulebase or entailment is not in a failed state, this procedure performs no action and returns a successful status.
An exception is generated if the RDF object is currently being used.
For information about RDF network types and options, see RDF Networks.
Examples
The following example deletes the rulebase named family_rb if (and only if) that rulebase is in a failed state.
EXECUTE SEM_APIS.CLEANUP_FAILED('RULEBASE', 'family_rb');