This documentation describes how to get started with the Scala version of the Yuzu RDF Publishing micro-framework
Yuzu compiles with the SBT tool. In general, running the command:
sbt package
Should create a usable WAR file in the target
folder, which can be installed
to a suitable Java EE server
The configuration of a single Yuzu instance is performed by editing the
settings.scala
file, there are a number of variables that are important
to change
BASE_NAME
: This the URI where the application will be installed to and all resources hosted at this endpoint must start with this URI.DUMP_FILE
: The path to the dump of the data to be hosted as a Gzipped N-Triple file, preferrably the output of arapper -o ntriples
commandDISPLAY_NAME
: The human-readable name of your dataset
After changing these variables it is necessary to create the database by using
the run
target of SBT, e.g.,
sbt run
You can test the set-up by starting sbt and running the command container:start
,
the server should be available for testing at localhost on port 8080. If you wish
to set sbt into continuous deployment mode with the following command
~;copy-resources;aux-compile
It should be possible to deploy the packaged WAR file using standard methods for Java EE servers.