RdfValidator/Installation - W3C Wiki (original) (raw)

W3C Rdf Validator Installation

Navigation: RdfValidator

The RDF Validator requires Jena x.y and several standard libraries listed below.

This has been tested on a Debian Sid (unstable) system.

The source code is available as a "tarball", or (for the very latest development code), from the CVS repository.

$ cvs -d :pserver:anonymous@dev.w3.org:/sources/public login $ cvs -d :pserver:anonymous@dev.w3.org:/sources/public get 2006/RDFValidator/

Either will give you a webapp directory structure:

RDFValidator/index.html RDFValidator/hello.jsp RDFValidator/ARPServlet.tmp RDFValidator/renderDot RDFValidator/dotFontTest RDFValidator/README RDFValidator/fonts.dot RDFValidator/fonts.png RDFValidator/WEB-INF/lib RDFValidator/WEB-INF/src/org/w3c/rdfvalidator/ARPServlet.java RDFValidator/WEB-INF/classes/org/w3c/rdfvalidator/ARPServlet$getRDFException.class RDFValidator/WEB-INF/classes/org/w3c/rdfvalidator/ARPServlet$SaxErrorHandler.class RDFValidator/WEB-INF/classes/org/w3c/rdfvalidator/ARPServlet$SH.class RDFValidator/WEB-INF/classes/org/w3c/rdfvalidator/ARPServlet.class RDFValidator/META-INF/MANIFEST.MF

You can place this directly in the jetty or tomcat webapps directory, or call the ARPServlet.class directly. You will also needed supporting libraries. For Debian Sid, you will need standard libraries in /usr/share/java/, Jena, and two jars from the Sun website (mail.jar and jaf-1_0_2-upd2.zip).

Building from Sources

There is currently no ant or Makefile. Following are docs for compiling manually:

The CLASSPATH here reflects the libraries required on a Debian Sid installation. Compilation from the WEB-INF directory looks like:

CLASSPATH=/usr/share/java/jsp-api-2.0.jar:
/usr/share/java/servlet-api-2.4.jar:
/usr/share/java/jetty.jar:
/usr/share/java/ant-javamail.jar:
/usr/share/java/:/usr/share/java/:
lib/jena.jar:
lib/mail.jar:
lib/jaf-1_0_2-upd2.zip
javac -d classes/ /src/org/w3c/rdfvalidator/ARPServlet.java

Compiled from the ARPServlet directory (say, from emacs compile mode), this looks like:

CLASSPATH=/usr/share/java/jsp-api-2.0.jar:
/usr/share/java/servlet-api-2.4.jar:
/usr/share/java/jetty.jar:
/usr/share/java/ant-javamail.jar:
/usr/share/java/:/usr/share/java/:
../../../../lib/jena.jar:
../../../../lib/mail.jar:
../../../../lib/jaf-1_0_2-upd2.zip
javac -d ../../../../classes/ ARPServlet.java

Building a Tarball

tar czf RDFValidator.tar.gz --exclude=CVS RDFValidator/