GraphDB-Lite LUBM

Skip to end of metadata
Go to start of metadata
This documentation is NOT for the latest version of GraphDB.

Latest version - GraphDB 7.1

GraphDB Documentation

Next versions

GraphDB 6.6
GraphDB 7.0
GraphDB 7.1

Previous versions

GraphDB 6.4
GraphDB 6.3
GraphDB 6.2
GraphDB 6.0 & 6.1

OWLIM 5.4
OWLIM 5.3
OWLIM 5.2
OWLIM 5.1
OWLIM 5.0
OWLIM 4.4
OWLIM 4.3
OWLIM 4.2
OWLIM 4.1
OWLIM 4.0

This section describes how to set up and run the Lehigh University Benchmark (LUBM) [12], using the scripts and configuration files included with the GraphDB-Lite distribution. Running the tests and the benchmarks may require minor modifications to these scripts and configuration files, as discussed in this section.

Configuring GraphDB-Lite and Sesame

Running the benchmark (as well as the getting started application), can require modification of the script setvars (.cmd or .sh) in GraphDB-Lite's main folder. The most important setting is the specification of the Java virtual machine through the JAVA_HOME environment variable.

The performance of the benchmark can be tuned to the particular hardware on which it is running with modification of the repository specification file named lubm.ttl, which can be found in the lubm sub-directory of GraphDB-Lite's main directory.

Running the Benchmark

To run the Lehigh University Benchmark (LUBM), it is necessary to generate the test file-set beforehand. This can be done using the lubm-generate (.cmd or .sh, respectively for Windows or Linux) script, which is part of the distribution's lubm sub-folder. The distribution includes a pre-built library of the benchmark's source code. The pre-built lubm.jar library is located in the ext distribution folder and also includes the wrapper classes that the benchmark's code-base uses in order to run against a Sesame repository (configured with GraphDB-Lite).
The lubm-generate script (.cmd or .sh) accepts a single numeric argument as the target number of universities and creates a sub-folder for the test run with the name univer and the number of universities appended, e.g. univer1000. This is the folder in which it places the generated OWL files. Once the file-set is generated, the lubm.config file should be edited and the appropriate benchmark configuration to be executed should be commented/uncommented. By default, a single University dataset is configured and its configuration section is:

# 1-university
[GraphDB_1]
class=owlim.OwlimWrapper
data=./univer1
database=jdbc:ignore
ontology=http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl

One should use the # symbol at the beginning of a line to comment it. The test should be launched via the lubm-benchmark script. Before either generation of datasets or execution of the test, GraphDB-Lite should be configured as discussed in the installation section by editing lubm.ttl, however the file provided is suitable for running the benchmark with small datasets. To find out more about this benchmark, visit the LUBM web site.

Alternative to generating the LUBM datasets

It is also possible to generate the LUBM datasets 'on-the-fly' during the loading stage. In order to do this, edit the lubm.config file and use a data directory with the format 'GENERATE-n' where 'n' is the number of universities, e.g.

# 1-university
[GraphDB_1]
class=owlim.OwlimWrapper
data=GENERATE-2
database=jdbc:ignore
ontology=http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl

This approach saves the extra step (and disk space) for generating data files.

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.