org.aksw.bsbm:bsbm-jsa

Berlin SPARQL Benchmark (BSBM)

License

License

GroupId

GroupId

org.aksw.bsbm
ArtifactId

ArtifactId

bsbm-jsa
Last Version

Last Version

3.1.4
Release Date

Release Date

Type

Type

jar
Description

Description

Berlin SPARQL Benchmark (BSBM)

Download bsbm-jsa

How to add to project

<!-- https://jarcasting.com/artifacts/org.aksw.bsbm/bsbm-jsa/ -->
<dependency>
    <groupId>org.aksw.bsbm</groupId>
    <artifactId>bsbm-jsa</artifactId>
    <version>3.1.4</version>
</dependency>
// https://jarcasting.com/artifacts/org.aksw.bsbm/bsbm-jsa/
implementation 'org.aksw.bsbm:bsbm-jsa:3.1.4'
// https://jarcasting.com/artifacts/org.aksw.bsbm/bsbm-jsa/
implementation ("org.aksw.bsbm:bsbm-jsa:3.1.4")
'org.aksw.bsbm:bsbm-jsa:jar:3.1.4'
<dependency org="org.aksw.bsbm" name="bsbm-jsa" rev="3.1.4">
  <artifact name="bsbm-jsa" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.aksw.bsbm', module='bsbm-jsa', version='3.1.4')
)
libraryDependencies += "org.aksw.bsbm" % "bsbm-jsa" % "3.1.4"
[org.aksw.bsbm/bsbm-jsa "3.1.4"]

Dependencies

compile (3)

Group / Artifact Type Version
org.aksw.bsbm : bsbm-core jar 3.1.4
org.aksw.jena-sparql-api : jena-sparql-api-core jar 3.13.1-1
org.aksw.jena-sparql-api : jena-sparql-api-mapper-core jar 3.13.1-1

test (2)

Group / Artifact Type Version
junit : junit jar 4.12
org.slf4j : slf4j-log4j12 jar 1.7.25

Project Modules

There are no modules declared in this project.

BSBM-Fork

This project is a fork of the BSBM Source code (revision 81) intended for closer integration in projects.

Changes over the original code base

  • Converted to a maven project together with deployment/release of artifacts
  • Logging:
    • Replaced the original logger with slf4j
    • Split the original BSBM code into bsbm-core and bsbm-cli modules, where the main difference is, that the latter depends on a concrete logger implementation.
  • Enhanced code base to not require files for communication between components - this means:
    • Moved static resources to (bsbm-core/src/main/resources)[bsbm-core/src/main/resources]
    • Added a TestDriverParams class. The Generator yields objects of this class, and the TestDriver can be configured with such an instance.
    • Added a SerializerModel class which writes the generated dataset to a Jena model (instead of a file)

Maven artifacts

<dependency>
    <groupId>org.aksw.bsbm</groupId>
    <artifactId>bsbm-jsa</artifactId>
    <version>3.1</version>
</dependency>

For snapshot version, add our archiva:

    <repositories>
        <repository>
            <id>maven.aksw.snapshots</id>
            <name>AKSW Snapshot Repository</name>
            <url>http://maven.aksw.org/archiva/repository/snapshots</url>
            <releases>
                <enabled>false</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
    </repositories>

For the original bsbm without the jena-sparql-api (jsa) integration, use bsbm-core instead.

Usage

    // The BSBM Generator is a static class 
    Serializer serializer = new SerializerModel();
    Generator.init(Arrays.<String>asList());
    Generator.setSerializer(serializer);
    Generator.run();
    
    // Obtain the result artifacts
    TestDriverParams testDriverParams = Generator.getTestDriverParams();
    Model model = serializer.getModel();

    // Create the jena-sparql-api query abstraction
    QueryExecutionFactory qef = FluentQueryExecutionFactory.http("http://your.endpoint/sparql", "http://your-bsbm-dataset-graph.org").create();

    // Configure and run the test driver
    TestDriver testDriver = new TestDriver(Arrays.asList<String>());
    testDriver.setParameterPool(new LocalSPARQLParameterPool(testDriverParams, testDriver.getSeed()));
    testDriver.setServer(new SPARQLConnection2(qef));

    testDriver.run();

TODOs

  • Extend the APIs to make benchmark results programmatically accessible
  • Compare benchmark runs of the forked code base to those of original one to ensure we did not introduce any mistakes that influence the benchmark results
org.aksw.bsbm

Smart Data Analytics

Software Projects by the Smart Data Analytics (SDA) Research Group - the README project contains links to other core projects

Versions

Version
3.1.4
3.1.3
3.1.2
3.1.1