Environment:AKSW RDFUnit Java 8 Maven
| Knowledge Sources | |
|---|---|
| Domains | Semantic_Web, RDF_Validation, Java |
| Last Updated | 2026-10-16 00:00 GMT |
Overview
Java 8 (JDK 1.8) with Maven 3.3.9+ build system, Apache Jena 3.16.0, Guava 29.0, Lombok 1.18.38, and SLF4J 1.7.30.
Description
This environment provides a standard Java-based runtime for building and running RDFUnit, an RDF testing and validation suite. It is built on Java 8 (JDK 1.8) and uses Maven as its build and dependency management tool. The core stack relies on Apache Jena 3.16.0 (ARQ and Core) for RDF/SPARQL processing, jena-sparql-api 3.16.0-1 for query execution abstractions, Guava 29.0 for caching and collections, Lombok 1.18.38 for boilerplate reduction, and SLF4J 1.7.30 with log4j 1.2.17 for logging. The project is a multi-module Maven build with modules for core, model, IO, JUnit integration, validation CLI, examples, and W3C DQV reporting.
Usage
Use this environment for any RDFUnit operation including CLI validation, programmatic validation, JUnit integration testing, test generation, and web service deployment. It is the mandatory prerequisite for all RDFUnit implementations. The `rdfunit-webdemo` and `rdfunit-shacl-ws` modules require additional Vaadin and web server dependencies respectively.
System Requirements
| Category | Requirement | Notes |
|---|---|---|
| OS | Any OS with JDK 8 support | Linux, macOS, or Windows |
| Hardware | 2GB RAM minimum | 4GB recommended for large dataset validation |
| Disk | 500MB | For Maven dependencies and build artifacts |
| Network | Required for LOV and SPARQL endpoints | Bundled schemaLOV.csv fallback available offline |
Dependencies
System Packages
- `jdk` = 1.8 (Oracle JDK 8 or OpenJDK 8)
- `maven` >= 3.3.9
Maven Dependencies
- `org.apache.jena:jena-arq` = 3.16.0
- `org.apache.jena:jena-core` = 3.16.0
- `org.aksw.jena-sparql-api:jena-sparql-api-core` = 3.16.0-1
- `org.aksw.jena-sparql-api:jena-sparql-api-cache-h2` = 3.16.0-1
- `org.aksw.jena-sparql-api:jena-sparql-api-resources` = 3.16.0-1
- `com.google.guava:guava` = 29.0-jre
- `io.vavr:vavr` = 0.9.2
- `org.projectlombok:lombok` = 1.18.38 (provided scope)
- `commons-cli:commons-cli` = 1.4
- `org.slf4j:slf4j-api` = 1.7.30
- `org.slf4j:slf4j-log4j12` = 1.7.30
- `log4j:log4j` = 1.2.17
- `org.semarglproject:semargl-jena` = 0.7 (RDFa support)
Test Dependencies
- `junit:junit` = 4.13.1
- `org.mockito:mockito-all` = 1.10.19
- `org.assertj:assertj-core` = 3.18.1
Credentials
No credentials are required for building RDFUnit. For runtime usage:
- SPARQL endpoint credentials (optional): `username` and `password` passed via CLI or `EndpointTestSource` constructor.
- GPG key (`AKSW.GPG`) required only for Maven release signing (release profile).
Quick Install
# Install JDK 8 and Maven
sudo apt-get install openjdk-8-jdk maven
# Verify Java version
java -version
# openjdk version "1.8.0_xxx"
# Verify Maven version (must be >= 3.3.9)
mvn -version
# Clone and build
git clone https://github.com/AKSW/RDFUnit.git
cd RDFUnit
mvn clean install
Code Evidence
Java version enforcement from `pom.xml:61-64`:
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<java.version>1.8</java.version>
<java.version.javadoc>http://java.sun.com/javase/8/docs/api/</java.version.javadoc>
Maven version enforcement from `pom.xml:327-339`:
<execution>
<id>enforce-maven</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireMavenVersion>
<version>3.3.9</version>
</requireMavenVersion>
</rules>
</configuration>
</execution>
CI build configuration from `.travis.yml:10-12`:
jdk:
- oraclejdk8
- openjdk8
Core dependency versions from `pom.xml:68-71`:
<jena-sparql-api-version>3.16.0-1</jena-sparql-api-version>
<org-apache-jena-version>3.16.0</org-apache-jena-version>
<slf4j-version>1.7.30</slf4j-version>
Common Errors
| Error Message | Cause | Solution |
|---|---|---|
| `java.lang.UnsupportedClassVersionError` | JDK < 8 installed | Install JDK 8: `sudo apt-get install openjdk-8-jdk` |
| `Maven requires at least version 3.3.9` | Maven version too old | Upgrade Maven to >= 3.3.9 |
| `Could not resolve dependencies` | Missing Maven repositories | Ensure Maven Central is configured (default in pom.xml) |
| `Lombok annotation processor not found` | Lombok not in classpath | Ensure `lombok` dependency is in `provided` scope |
| `ClassNotFoundException: org.apache.jena.query.Query` | Jena not resolved | Run `mvn clean install` to download all dependencies |
Compatibility Notes
- Java 9+: RDFUnit targets Java 8 explicitly; newer JDK versions may work but are not officially tested in CI (Travis tests only JDK 8).
- Apache Jena 4.x: Not compatible; RDFUnit depends on Jena 3.16.0 APIs that changed in Jena 4.x.
- Offline mode: When network is unavailable, schema discovery falls back to the bundled `schemaLOV.csv` resource file.
- Multi-module build: The `rdfunit-webdemo` and `rdfunit-shacl-ws` modules are excluded from the default Maven aggregation build but kept as inheritance modules.
Related Pages
- Implementation:AKSW_RDFUnit_ValidateCommand_Call
- Implementation:AKSW_RDFUnit_RDFUnit_Init
- Implementation:AKSW_RDFUnit_TagRdfUnitTestGenerator_Generate
- Implementation:AKSW_RDFUnit_ShaclTestGenerator_Generate
- Implementation:AKSW_RDFUnit_TestGeneratorExecutor_GenerateTestSuite
- Implementation:AKSW_RDFUnit_TestGeneratorFactory_Create
- Implementation:AKSW_RDFUnit_TestExecutor_Execute
- Implementation:AKSW_RDFUnit_RdfResultsWriterFactory_CreateWriter
- Implementation:AKSW_RDFUnit_TestExecutionWriter_Write
- Implementation:AKSW_RDFUnit_Schema_Discovery
- Implementation:AKSW_RDFUnit_QueryGeneration_Factories
- Implementation:AKSW_RDFUnit_RDFUnitStaticValidator_Validate
- Implementation:AKSW_RDFUnit_RDFUnitTestSuiteGenerator_Builder
- Implementation:AKSW_RDFUnit_TestSourceBuilder_Build
- Implementation:AKSW_RDFUnit_SchemaSourceFactory_Create
- Implementation:AKSW_RDFUnit_TestUtils_WriteTestsToFile
- Implementation:AKSW_RDFUnit_RdfUnitJunitRunner
- Implementation:AKSW_RDFUnit_ShaclResultStatement_Evaluate