Example scenario

This document describes how you can install a partial setting of RDF tools for your own local use. The initial requirements are that you have

Now to the actual installation instructions:

  1. Download the following files to your machine and place them into a directory that we will refer to as rdf
    saxjava-1.0.zip, xml4j_1_1_4.jar, w3crdf.zip, examples.zip, and scripts.zip
  2. Extract the files from the examples.zip file with command a la
    unzip examples.zip
  3. Extract the scripts from the scripts.zip file with command a la
    unzip scripts.zip
  4. Modify the location of your Perl interpreter in the Perl scripts (ones with .pl postfix). The location is encoded on the very first line a la #!/usr/local/bin/perl
  5. Set up your local Java CLASSPATH variable so that it includes the three files a la
    setenv CLASSPATH rdf/saxjava-1.0.zip:rdf/xml4j_1_1_4.jar:rdf/w3crdf.zip:$CLASSPATH

Now, you are ready to proceed with the tools that will be collectively run with the collect.pl script. You need to execute this script with at least one parameter which is either

  1. directory which holds example HTML files that use RDF or
  2. a single file that also embeds RDF within HTML.
  3. nothing which implies the current directory is investigated

I suggest you try running collect.pl . Janne in the rdf directory and press on the Start query button once the window opens... (The result will effectively be similar to opening this applet)


Technical notes

What the above set up does is that it retrieves embedded RDF descriptions from well-formed HTML/XML documents. These documents do not contain a document type declaration.

This extraction is accomplished using the SiRPAC Simple RDF Parser & Compiler. The result is a set of 3-tuples i.e. triples.

These triples can further be visualized using org.w3c.rdf.VisRDF Java class which is also included in the SiRPAC distribution.

You can look at the HTML documents with your browser - remember to use View Source to see the embedded RDF. (doc1.html, doc2.html, doc3.html, doc4.html)


Last update: $Date: 1999/03/12 10:22:07 $

Janne Saarela