IBM Data Server Client Packages Version 10.1

Setting up an RDF environment

Set up your environment to use DB2® RDF command and APIs.

Issuing RDF commands by using command-line utilities

DB2 RDF command-line utilities can be found in the <install_path>/sqllib/rdf/bin directory. Start the utilities from this directory with a DB2 Command Prompt.

After the DB2 database server is installed, complete the following tasks to use DB2 RDF command-line utilities:
  1. For DB2 Version 10.1 Fix Pack 1 and earlier, download ARQ package Version 2.8.5 from http://sourceforge.net/projects/jena/files/ARQ/ARQ-2.8.5/.
    • Copy the JAR files from the lib folder of the ARQ package to the <install_path>/SQLLIB/rdf/lib directory.
      Note: You can skip copying over the 'xxx-tests.jar', 'xxx-sources.jar', 'xxx-test-sources.jar' JAR files.
    For DB2 Version 10.1 Fix Pack 2 and later, use the Apache JENA Version 2.7.3 package from http://archive.apache.org/dist/jena/binaries/.
    • Save the JAR files from the lib folder of the Apache JENA package to the <install_path>/SQLLIB/rdf/lib directory.
  2. Download the Commons-logging-1-0-3.jar from the Apache Commons project. Place this JAR in the <install_path>/SQLLIB/rdf/lib directory.
  3. Open a command prompt and go to the <install_path>/SQLLIB/rdf/bin directory.
    cd "<install_path>/SQLLIB/rdf/bin"
  4. Add the db2jcc4.jar DB2 JCC driver in the <install_path>/SQLLIB/java directory to the class path environmental variable, as shown:
    set classpath=<install_path>\SQLLIB\java\db2jcc4.jar;%classpath%
Now you can run the DB2 RDF command-line utilities in this command prompt.

DB2 RDF in an application development environment

The DB2 RDF JAR files need to be added to the application class path, along with the following JAR file:
  • The JENA dependant JAR files
  • Commons-logging-1-0-3.jar file
  • The DB2 JCC driver (db2jcc4.jar)
The JAR files are in the <install_path>/sqllib/rdf/lib directory. They include the following JAR files:
  • rdfstore.jar
  • antlr-3.3-java.jar
  • wala.jar