RdfValidator/Installation

From W3C Wiki
Jump to: navigation, search


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).

  • cd RDFValidator/WEB-INF/lib
  • cp the jena libraries:
    • antlr-2.7.5.jar
    • arq.jar
    • commons-logging.jar
    • concurrent.jar
    • icu4j_3_4.jar
    • jakarta-oro-2.0.8.jar
    • javamail-1_3_3_01.zip
    • jena.jar
    • jenatest.jar
    • junit.jar
    • log4j-1.2.12.jar
    • stax-api-1.0.jar
    • wstx-asl-2.8.jar
    • xercesImpl.jar
    • xml-apis.jar
  • download the Sun jars:
    • mail.jar
    • jaf-1_0_2-upd2.zip
  • point a browser at http://localhost:8280/RDFValidator/

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/