/ldbbc

A Linked Data Platform Container Implementation based on JAX-RS and nxparser.

Primary LanguageJava

Welcome to LDBBC

The Linked Data Basic Basic Container. A rough but fast implementation of one single Linked Data Platform (LDP) Container. Supports RDF in JSON-LD, Turtle, RDF/XML, and N-Triples. Stores data in memory and does not persist data on shutdown.

Binaries

See Releases.

Compilation

LDBBC can be compiled using Apache Maven:

$ mvn package

You may need the development version of NxParser installed, do so by

$ git clone https://github.com/nxparser/nxparser
$ cd nxparser
$ mvn -Dmaven.test.skip=true install

Usage

Deploy on application server

The downloaded/compiled .war file can be deployed on an application server (eg. Apache Tomcat, Eclipse Jetty).

Command line

Alternatively, check out the code and run LDBBC from the command line using the Jetty plugin for Apache Maven:

$ mvn jetty:run

Note that LDBBC requires Maven at at least version 3.1 when they changed their logging system. If you are on an earlier version, you have to re-introduce the SLF4J dependencies removed in a recent commit, see the corresponding lines in the diff.

Configuration on the command line

Disable request logging

Per default, request logging is enabled on INFO level. Disable request logging by setting the level to WARNING:

$ MAVEN_OPTS=-Dorg.slf4j.simpleLogger.log.org.eclipse.jetty.server.RequestLog=warn mvn jetty:run
Set port

By default, the server listens on port 8080. You can change the port by setting the jetty.port property:

$ mvn -Djetty.port=8081 jetty:run

Publish Docker image to GitHub Package Registry (GPR)