Tupelo supports Oracle's semantic extensions using OracleContext. Before that implementation can be used, however, you must install semantic extensions in Oracle.

To install semantic support, you must have administrator credentials on your Oracle instance, and then perform the following steps:

Step 1: run the appropriate installation script

If you are using Oracle 11g, run the following script:

$ORACLE_HOME/md/admin/catsem11i.sql

for more detailed instructions, see Oracle's installation guide.

Step 2: create a tablespace to hold semantic data

You can call the tablespace whatever you like and store the data wherever you'd like in the filesystem; just remember the name you give the tablespace. For example you could call it "rdf_tblspace":

CREATE TABLESPACE rdf_tblspace
 DATAFILE '/u01/app/oracle/product/11.1.0/db_1/rdf_tblspace.dat' SIZE 1024M REUSE
 AUTOEXTEND ON NEXT 256M MAXSIZE UNLIMITED
 SEGMENT SPACE MANAGEMENT AUTO;

Step 3: create a semantic network

A "semantic network" is an Oracle construct that is used to support the creation and use of "semantic models" in a tablespace. When an OracleContext is initialized, it will create a model using the semantic network. To create the semantic network, use the following form:

EXECUTE SEM_APIS.CREATE_SEM_NETWORK('rdf_tblspace');

(the parameter is the name of the tablespace for which you want to create the network.)

For more information about installing and using Oracle semantic extensions, see the Oracle semantic technologies overview.

  • No labels