This subdirectory contains java code for NeXML processing. Specifically, the directory structure is as follows:
org.nexml.model package and their implementations
in the org.nexml.model.impl package.
org.nexml.model.* architecture, and so
function to illustrate how to use it in an application.
Written and maintained by Rutger Vos with some help
from Wayne Maddison.
org.nexml.model.*
API. Some of the tests attempt to parse files from the nexml/examples folder. The tests
try to find these files by building a path relative to the NEXML_ROOT environment variable,
which should point to nexml/trunk/nexml/, i.e. inside it should be the examples folder. If
you are building and running inside eclipse, you might create a run configuration for all the
junit tests (Test runner JUnit 4) and add NEXML_ROOT and its values to the environment tab.
The java libraries use ant for building and testing. The following targets are available:
validator.ValidateNeXML
which validates XML documents against the NeXML schema, validator.XmlValidator which validates
XML documents against any command-line specified XML schema and transformer.NeXML2CDAO, which transforms
a NeXML document into a CDAO document. The target also includes all prerequisites into the jar, i.e. saxon and
xerces, which it finds in the jars/ folder. To run transformer.NeXML2CDAO, the
NEXML_ROOT environment variable needs to point at the folder which contains the xslt folder with the
RDFa2RDFXML.xsl and nexml2cdao.xsl stylesheets. The jar that this target produces is also available from the
downloads folder of the NeXML website: http://nexml.org/nexml/downloads/
<repository> <id>m2.nexml.repos</id> <name>NeXML Remote Repository</name> <url>http://nexml-dev.nescent.org/.m2/repository</url> </repository> <!-- .... and further down.... ---> <dependency> <groupId>org.nexml.model</groupId> <artifactId>nexml</artifactId> <version>1.5-SNAPSHOT</version> </dependency>