Code Monkey home page Code Monkey logo

cltj's Introduction

CompactLTJ

Repository for the source code of the engine presented in the paper New Techniques and Compact Indices for Worst-Case Optimal Graph Joins.

Instructions

To run our code, we have to install an extended version of the library SDSL. Go to this repository and follow the instructions.

After the extended version of SDSL is installed, we have to clone this repository and follow these steps:

  1. Create our build folder and compile the code:
mkdir build
cd build
cmake ..
make

Check that there is no errors.

  1. Download the version of Wikidata that you want to use:

Now put the .dat file inside a folder.

  1. Building the index. After compiling the code we should have an executable called build-index in build. Now run:
./build-index <absolute-path-to-the-.dat-file>

This will generate the index in the folder where the .dat file is located.

  1. Querying the index. In build folder, you should find another executable file called query-index. To solve the queries you should run:
./query-index <absoulute-path-to-the-index-file> <absolute-path-to-the-query-file>

Note that the second argument is the path to a file that contains all the queries. The queries of our benchmark are in Queries:

  • The file Queries-wikidata-benchmark.txt can be run with wikidata-filtered-enumerated.dat.
  • The file Queries-bgps-limit1000.txt contains the queries of wikidata-enumerated.dat.

After running that command, you should see the number of the query, the number of results, and the elapsed time of each one of the queries with the following format:

<query number>;<number of results>;<elapsed time>

cltj's People

Contributors

adriangbrandon avatar alanezz avatar

Watchers

 avatar

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.