Giter Club home page Giter Club logo

ldbc_snb_implementations's Introduction

LDBC_LOGO LDBC SNB implementations

Build Status

Implementations for the Workload components of the LDBC Social Network Benchmark (specification).

⚠️ The most recent version of the code can be found on the dev branch. The master branch tends to be better tested and uses a stable version of the LDBC SNB driver.

⚠️ Implementations in this repository are preliminary, i.e. they are unaudited and - in rare cases - do not pass validation. For details, feel free to contact us through an issue or email.

Directory layout

Multiple configuration files and scripts use relative paths to address the data generator's directory. Hence, it is recommended to clone the LDBC Data Generator and the LDBC implementations repositories next to each other and keep their original directory names. For example:

Implementations

Each project has its own README:

The Sparksee implementation is maintained in a separate repository.

Queries

The queries in this repository are work-in-progress. If possible, please cross-validate your queries against multiple implementations.

Interactive

Complex reads

query 01 02 03 04 05 06 07 08 09 10 11 12 13 14
Neo4j (Cypher) 01 02 03 04 05 06 07 08 09 10 11 12 13 14
PostgreSQL 01 02 03 04 05 06 07 08 09 10 11 12 13 14
SPARQL 01 02 03 04 05 06 07 08 09 10 11 12 13 14

Short reads

query 01 02 03 04 05 06 07
Neo4j (Cypher) 01 02 03 04 05 06 07
PostgreSQL 01 02 03 04 05 06 07
SPARQL 01 02 03 04 05 06 07

Updates

query 01 02 03 04 05 06 07 08
Neo4j (Cypher) 01 02 03 04 05 06 07 08
PostgreSQL 01/p 01/c 01/e 01/l 01/t 01/u 02 03 04/f 04/t 05 06/p 06/t 07/c 07/t 08
SPARQL 01/p 01/c 01/e 01/l 01/t 01/u 02 03 04/f 04/t 05 06/p 06/t 06/i 06/c 07/c 07/t 08

BI

query 01 02 03 04 05 06 07 08 09 10
Neo4j (Cypher) 01 02 03 04 05 06 07 08 09 10
PostgreSQL 01 02 03 04 05 06 07 08 09 10
SPARQL 01 02 03 04 05 06 07 08 09 10
query 11 12 13 14 15 16 17 18 19 20
Neo4j (Cypher) 11 12 13 14 15 16 17 18 19 20
PostgreSQL 11 12 13 14 15 16 17 18 19 20
SPARQL 11 12 13 14 15 16 17 18 19 20
query 21 22 23 24 25
Neo4j (Cypher) 21 22 23 24 25
PostgreSQL 21 22 23 24 25
SPARQL 21 22 23 24 25

User's guide

  1. If you are on the dev branch or any other unstable branche, first build and install the driver from source.

    1. Grab the driver source code from: https://github.com/ldbc/ldbc_snb_driver.

    2. Install the driver artifact to the local Maven repository:

      mvn clean install -DskipTests
  2. Navigate to the root of this repository and build it to generate the JAR files for the implementations:

    ./build.sh
  3. For each implementation, it is possible to (1) create validation parameters, (2) validate against an existing validation parameters, and (3) run the benchmark. Set the parameters according to your system configuration in the appropriate .properties file and run the driver with one of the following scripts:

    # BI workload
    ./bi-create-validation-parameters.sh
    ./bi-validate.sh
    ./bi-benchmark.sh
    # Interactive workload - note that if the workload contains updates, the database needs to be re-loaded between steps
    ./interactive-create-validation-parameters.sh
    ./interactive-validate.sh
    ./interactive-benchmark.sh

For more details, on validating and benchmarking, visit the driver wiki.

Generating small test data tests

To generate small data sets, use scale factor 1 (SF1) with the persons and years set according to this template:

ldbc.snb.datagen.generator.scaleFactor:snb.interactive.1

ldbc.snb.datagen.generator.numPersons:50
ldbc.snb.datagen.generator.numYears:1
ldbc.snb.datagen.generator.startYear:2010

ldbc.snb.datagen.generator.numThreads:1
ldbc.snb.datagen.serializer.outputDir:./test_data/

ldbc.snb.datagen.serializer.personSerializer:ldbc.snb.datagen.serializer.snb.interactive.<SerializerType>PersonSerializer
ldbc.snb.datagen.serializer.invariantSerializer:ldbc.snb.datagen.serializer.snb.interactive.<SerializerType>InvariantSerializer
ldbc.snb.datagen.serializer.personActivitySerializer:ldbc.snb.datagen.serializer.snb.interactive.<SerializerType>PersonActivitySerializer

ldbc_snb_implementations's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.