15.131 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 1-2.)

network_name

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

Usage Notes

This procedure is relevant in the following sequence of operations.

  1. A SEM_MATCH query Q that references a constant C that does not exist in RDF_VALUE$ is executed.
  2. An RDF triple that contains the constant C is inserted into the RDF network.
  3. 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');