An RDF Retrieval System Based on Efficient Predicate-Entity Indexing
A Vue front-end is avaiable here.
- Clone this project
git clone https://github.com/MKMaS-GUET/EPEI
git submodule update --init --recursive
Maybe it's need to update the submodule for this project
git submodule update --remote
- Build this project
cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build
Or use the build.sh
script to build this project directly
./scripts/build.sh
Download the RDF data and queries that we want to use:
- 1 Watdiv100M
- 2 Wikidata
Usage: epei <command> <args>
Description:
Common commands for various situations using EPEI.
Commands:
build Build the data index for the given RDF data file path.
query Query the SPARQL statement for the given file path.
server Start the EPEI server.
Args:
-h, --help Show this help message and exit.
--db, --name <NAME> Specify the database name.
-f, --file <FILE> Specify the RDF data file path.
Build RDF database:
epei build --db <rdf_db_name> -f <rdf_file_name>
Execute SPARQL query:
sparql:
epei query --db <rdf_db_name> -f <sparql_file_name>
Run http server:
epei server --port <server port>