15.48 SEM_APIS.CREATE_SPARQL_INFERRED_GRAPH
Format
SEM_APIS.CREATE_SPARQL_INFERRED_GRAPH( inferred_graph_name IN VARCHAR2, rdf_graphs_in IN SEM_MODELS, sparql_rule_tab_owner IN VARCHAR2, sparql_rule_tab IN VARCHAR2, sparql_rule_col IN VARCHAR2, match_options_col IN VARCHAR2, update_options_col IN VARCHAR2, sparql_rule_maxiter IN PLS_INTEGER, options IN VARCHAR2 DEFAULT NULL, network_owner IN VARCHAR2 DEFAULT NULL, network_name IN VARCHAR2 DEFAULT NULL);
Description
Creates a SPARQL inferred graph (rules index).
Parameters
- inferred_graph_name
-
Name of the inferred graph to be created.
- rdf_graphs_in
-
One or more RDF graph names. Its data type is SEM_MODELS, which has the following definition:
TABLE OF VARCHAR2(25)
- sparql_rule_tab_owner
-
Owner of the table that contains SPARQL rules.
- sparql_rule_tab
-
Name of the table that contains SPARQL rules.
- sparql_rule_col
-
Name of the column that contains SPARQL rules.
- match_options_col
-
Name of the column that contains match options.
- update_options_col
-
Name of the column that contains SPARQL update options.
- sparql_rule_maxiter
-
The maximum number of iterations that the inference engine should run. If the transitive closure is reached before the specified max iterations, the inference stops. If the value 0 is specified, the inference engine will run until the transitive closure is reached or the maximum 2G iterations have been executed.
- options
-
A string of options to control the inference process by overriding the default inference behavior.
To enable an option, specify
<option-name>=T
; to disable the option, you can specify<option-name>=F
(the default).The available option name value is
NO_SPARQL_RULE_CHECK
. See the Usage Notes for more explanation of the value. - network_owner
-
Owner of the RDF network. (See Table 1-2.)
- network_name
-
Name of the RDF network. (See Table 1-2.)
Usage Notes
For the options
parameter, you can specify
NO_SPARQL_RULE_CHECK=T
to bypass the SPARQL rule check for rules stored
in a user’s table. The SPARQL rules are checked to make sure they are conformant to
INSERT DATA
or INSERT WHERE
specification.
Examples
The following example creates a SPARQL inferred graph named SI1
using the SPARQL rules stored in the SPARQL_TAB
table.
SQL> exec sem_apis.create_sparql_inferred_graph('SI1', sem_models('M1'),'RDFUSER','sparql_tab','Rule', 'matchOpt', 'updOpt', 3, network_owner=>'RDFUSER', network_name=>'NET1'); PL/SQL procedure successfully completed.
Parent topic: SEM_APIS Package Subprograms