Library | Version |
---|---|
g++ | 8.4.1, -std=c++17 |
boost | 1.68 |
curl | 7.61.1 |
metis | 5.1.0 |
antlr | 3.4 |
The metis executable and antlr library have been installed in the project. If you cannot use them, please install them yourself.
Create a new folder called build
, then get into this folder and use cmake
to compile.
xxxxxxxxxx
mkdir build
cd build
cmake ..
make
Edit conf/servers.json
xxxxxxxxxx
{
"sites": [
{
"ip": "site's ipv4",
"user": "Linux user name",
"port": "gStore http port",
"dbuser": "root",
"dbpasswd": "123456",
"rootPath": "/opt/gStore"
}
]
}
In Sites
, add site objects::
IP
field indicates the IP address of the siteuser
field indicates the Linux system user port
field indicates the port of gStore http service dbuser
field indicates the username of gStore dbpasswd
field indicates the password of the gStore user rootPath
field indicates the path of gStore deployed in the site Note: To ensure the normal running of the program, PEG needs to log in to the site configured above without password and the gStore http service has been started.
To start gStore http service, firstly get into gStore root path, then run./bin/ghttp port_num
.
In the project directory:
xxxxxxxxxx
# Start web service
[root@localhost gStoreDemo]$ ./build/PEG_Server
# Create a new database from the command line
[root@localhost gStoreDemo]$ ./build/PEG_Load db_name /path/to/nt/file
# Query from the command line
[root@localhost gStoreDemo]$ ./build/PEG_Query db_name /path/to/SPARQL/file
# Delete the database from the command line
[root@localhost gStoreDemo]$ ./build/PEG_Delete db_name