SEM_APIS.REFRESH_QUERY_STATE
Format
SEM_APIS.REFRESH_QUERY_STATE(
network_owner IN DBMS_ID DEFAULT NULL,
network_name IN VARCHAR2 DEFAULT NULL
);
Description
Invalidates cursors for SEM_MATCH queries that reference a constant RDF term that does not exist in the RDF_VALUE$ table of the specified RDF network at the time of query compilation.
Parameters
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 is relevant in the following sequence of operations.
-
A SEM_MATCH query Q that references a constant
Cthat does not exist inRDF_VALUE$is executed. -
An RDF triple that contains the constant
Cis inserted into the RDF network. -
The identical SEM_MATCH query Q is executed again.
At step 3, you may not get the results that include the new value C. This problem can be eliminated by running SEM_APIS.REFRESH_QUERY_STATE between steps 2 and 3.
Examples
The following example invalidates cursors for SEM_MATCH queries that reference a non-existing constant:
EXECUTE SEM_APIS.REFRESH_QUERY_STATE(network_owner=>'RDFUSER', network_name=>'RDF_NETWORK');