15.150 SEM_APIS.TRUNCATE_SEM_MODEL

Format

SEM_APIS.TRUNCATE_SEM_MODEL(
     model_name    IN VARCHAR2, 
     options       IN VARCHAR2 DEFAULT NULL,
     network_owner IN VARCHAR2 DEFAULT NULL,
     network_name  IN VARCHAR2 DEFAULT NULL);

Note:

This subprogram will be deprecated in a future release. It is recommended that you use the SEM_APIS.TRUNCATE_RDF_GRAPH subprogram instead.

Description

Truncates a semantic technology model.

Parameters

model_name

Name of the model.

options

(Reserved for future use)

network_owner

Owner of the semantic network. (See Table 1-2.)

network_name

Name of the semantic network. (See Table 1-2.)

Usage Notes

This procedure removes all triples and quads from the specified semantic model and is the only supported way to truncate a model.

To delete a model, use the SEM_APIS.DROP_SEM_MODEL procedure.

For information about semantic network types and options, see RDF Networks.

Examples

The following example truncates a semantic technology model named articles. (This example refers to the model described in Example 1-129.)

EXECUTE SEM_APIS.TRUNCATE_SEM_MODEL('articles', NULL, network_owner=>'RDFUSER', network_name=>'NET1');