Skip to content

darroyue/Ring-RPQ

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ring-RPQ

Repository for the prototype source code of the paper Time- and Space-Efficient Regular Path Queries on Graphs. This is just a prototype version aiming at reproducing the experiments of the paper. A final version will be added soon.

Queries and graph

The queries are available in data/paths.tsv of this repository.

The data used are available here: Wikidata (about 1000M triples).

Instructions

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

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

  1. Compile the source code by first moving to the directory that contains the code, and then execute:
bash build.sh

This shall create two executable files: build-index and query-index.

  1. Download the version of Wikidata used in the paper (note the original triples have been enumerated): Wikidata (about 1000M triples) and uncompress it.

  2. To build the index run:

./build-index <path-to-wikidata-file> 

This will create the index on the same directory were the wikidata file is. Keep all these files in the same directory.

  1. Move files data/wikidata-enumerated.dat.P and data/wikidata-enumerated.dat.SO to the directory were the index is stored. Please keep these file names, or change them acordingly, keeping the same prefix for all of them.

  2. To run queries, do as follows:

./query-index <path-to-index-file> data/paths.tsv 

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published