15.63 SEM_APIS.DROP_INFERRED_GRAPH
Format
SEM_APIS.DROP_INFERRED_GRAPH( inferred_graph_name IN VARCHAR2, named_g_in IN SEM_GRAPHS DEFAULT NULL, dop IN INT DEFAULT 1, network_owner IN VARCHAR2 DEFAULT NULL, network_name IN VARCHAR2 DEFAULT NULL);
Description
Drops (deletes) an inferred graph (rules index).
Parameters
- inferred_graph_name
-
Name of the inferred graph to be deleted.
- named_g_in
-
Causes only the triples with the specified graph names in the inferred graph to be deleted. A null value (the default) drops the entire inferred graph.
For example,
named_g_in => sem_graphs('<urn:G1>','<urn:G2>')drops only the triples in an inferred graph with graph namesG1andG2; the rest of the inferred graph is not dropped. - dop
-
Degree of parallelism for a parallel execution of triple deletion. Applies only if the
named_g_inparameter is not null. - network_owner
-
Owner of the RDF network. (See Table 1-2.)
- network_name
-
Name of the RDF network. (See Table 1-2.)
Usage Notes
You can use this procedure to delete an inferred graph that you created using the SEM_APIS.CREATE_INFERRED_GRAPH procedure.
If you drop only a subset of the inferred graph with specified named
graphs (that is, when named_g_in is not null) on an inferred graph
with a VALID or INCOMPLETE status, then the
resulting status of the inferred graph after the drop is set to
INCOMPLETE.
For information about RDF network types and options, see RDF Networks.
Examples
The following example deletes an inferred graph named
OWLTST_IDX.
EXECUTE sem_apis.drop_inferred_graph('owltst_idx');
The following example deletes only inferred triples with graph names
G1 and G2 that belong to the inferred graph
named OWLNG_IDX. Any inferred triples in the default graph and
other named graphs remain in the inferred graph.
EXECUTE sem_apis.drop_inferred_graph('owlng_idx',sem_graphs('<urn:G1>','<urn:G2>'));Parent topic: SEM_APIS Package Subprograms