Copyright (c) 2004, 2006 Oracle Corporation.  All rights reserved. 

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Oracle RDF Batch Loader Package Release Note (10.2.0.2.0):

=========================================================
RDF in Oracle: upgrading from 10.2.0.1.0 to 10.2.0.2.0
=========================================================
If the database contains an RDF network, after the 10.2.0.1 upgrade to 10.2.0.2.0 
the administrator must logon as MDSYS and call the procedure:
EXECUTE SDO_RDF_INTERNAL.TUNE_RDF_NETWORK_10R2_1('<tablespace name>');

where <tablespace name> is the tablespace used to create the RDF network.

Failure to call this procedure will cause the NTriple2NDMBatch loader 
to eventually fail during the loading process. 
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

DESCRIPTION

The zip file includes the necessary files for converting N-Triple
files into Oracle's RDF storage objects, and for converting RDF models
stored in Oracle to N-Triple files.  The zip file contains:
README.txt, TestNTriple2NDMBatch.java, TestNTriple2NDM.java, 
TestNDM2NTriple.java, compiled classes file under class directory,
rss2insert.xsl, and rss2ntriple.xsl.

NOTES

In order to use the Java-based NTripleConverter the following requirements must be met:
    1) Must have an Oracle10g 10.2.0.2.0 database with Spatial installed
    2) Must have a user/password account for the database with connect, 
       resource and DBA privileges
    3) Must have an RDF network, table(s) and model(s) created in the database
    4) Must be using the following supplied Oracle 10.2.0.2.0 utilities and JDBC 
        libraries (JARs): ojdbc14.jar, and sdordf.jar
    5) Must have installed the Sun JDK version 1.4.2_04 or higher
    6) Must have read the NOTES in the TestNTriple2NDMBatch.java, TestNTriple2NDM.java 
      and TestNDM2NTriple.java files (as relevant).

In order to use the XSL files, you must be familiar with XSLT:
    1) Edit the rss2insert.xsl or rss2ntriple.xsl (as required)
    2) Use an XSLT processor to convert the file(s)
    3) Ensure that requirements 1-3 (for the NTripleConverter) are met before 
       making inserts into the database
		
		
INSTRUCTIONS for using the NTripleConverter

1) Open a command line session and at the prompt type> java -version
2) If you receive an error or the Java version is lower than 1.4.2_04, you must either update 
	your PATH with the existing JDK or install a new JDK
3) Change to the directory where you unzipped this package (i.e. d:\examples\spatial\rdf)

4) An example for running TestNTriple2NDMBatch (fast batch loader) is below:

	For Unix/Linux (you need to merge them into one command line):
  java -Ddb.user=scott -Ddb.password=tiger -Ddb.host=127.0.0.1 
       -Ddb.port=1522 -Ddb.sid=orcl 
       -classpath ./classes:${ORACLE_HOME}/md/lib/sdordf.jar:${ORACLE_HOME}/jdbc/lib/ojdbc14.jar 
       oracle.spatial.rdf.client.TestNTriple2NDMBatch  
          <nTripleFile>  
          <tablename>  
          <tablespaceName> 
          <modelName> 
          [model_ID_forBlankNodeReuse]
	
	For Windows (you need to merge them into one command line):
  java -Ddb.user=scott -Ddb.password=tiger -Ddb.host=127.0.0.1 
       -Ddb.port=1522 -Ddb.sid=orcl 
       -classpath classes\;%ORACLE_HOME%\md\lib\sdordf.jar;%ORACLE_HOME%\jdbc\lib\ojdbc14.jar 
       oracle.spatial.rdf.client.TestNTriple2NDMBatch  
          <nTripleFile>  
          <tablename>  
          <tablespaceName> 
          <modelName> 
          [model_ID_forBlankNodeReuse]

5) An example for running TestNTriple2NDM (incremental loader) is below:

	For Unix/Linux (you need to merge them into one command line):
  java -Ddb.user=scott -Ddb.password=tiger -Ddb.host=127.0.0.1 
       -Ddb.port=1522 -Ddb.sid=orcl 
       -classpath ./classes:${ORACLE_HOME}/md/lib/sdordf.jar:${ORACLE_HOME}/jdbc/lib/ojdbc14.jar 
       oracle.spatial.rdf.client.TestNTriple2NDMBatch  
          <nTripleFile>  
          <tablename>   
          <modelName> 
          [model_ID_forBlankNodeReuse]
	
	For Windows (you need to merge them into one command line):
  java -Ddb.user=scott -Ddb.password=tiger -Ddb.host=127.0.0.1 
       -Ddb.port=1522 -Ddb.sid=orcl 
       -classpath classes\;%ORACLE_HOME%\md\lib\sdordf.jar;%ORACLE_HOME%\jdbc\lib\ojdbc14.jar 
       oracle.spatial.rdf.client.TestNTriple2NDMBatch  
          <nTripleFile>  
          <tablename>  
          <modelName> 
          [model_ID_forBlankNodeReuse]


**Note**
Refer to the user's guide for RDF support in Oracle: 
http://download.oracle.com/otndocs/products/spatial/pdf/rdfrm.pdf
