sparql2sql implementation for streams with Complex Event Processing (CEP) engines. Currently supports translation from SPARQL to Event Processing Language (EPL) for the Esper CEP engine via S2SML mappings.
sparql2stream supports RSP-QL in the RSP-QL branch of the code.
To transform the LSD from RDF to CSV, see the tool provided at https://github.com/eugenesiow/lsd-ETL.
The translated queries using the engine can be found at https://github.com/eugenesiow/sparql2stream/wiki.
The benchmark queries and translations can be found at https://github.com/eugenesiow/ldanalytics-PiSmartHome/wiki/Q1.
git clone https://github.com/eugenesiow/sparql2stream.git
- You need to have maven installed.
cd sparql2stream
mvn dependency:copy-dependencies package
cd target
- SRBench benchmark can be run with
./testq.sh 1 1
. First argument is the query number from 1 to 10 and the second argument is the run number of the output file. The output is in the current working directory (from which the script is run) in this formatq$1.result.out.$2
, where $1 is the query number and $2 is the run number. Another output of the insertion times is in theQueries/
folder. You can then run the./gettime.sh
which will take the output of the times received for the results and subtract the times of the insertion to get the latency of each insertion. Files are produced in theQueries/
folder with the extension.diff.out
for the latency times. - The smart home benchmark can be run with
./test_smarthome.sh 1 1
. First argument is the query number from 1 to 3 and the second argument is the run number of the output file. The output is in asmarthome
folder in the current working directory (from which the script is run) in this formatq$1.result.out.$2
, where $1 is the query number and $2 is the run number, another output of the insertion times is in theQueries/smarthome/
folder. You can then run the./gettime_smarthome.sh
which will take the output of the times received for the results and subtract the times of the insertion to get the latency of each insertion. Files are produced in theQueries/smarthome/
folder with the extension.diff.out
for the latency times. ./test_smarthome_4.sh
runs Q4 in the smart home benchmark and output is in thesmarthome
folder in the current working directory (from which the script is run).
SPARQL to SQL with less joins at https://github.com/eugenesiow/sparql2sql. sparql2stream uses the sparql2sql engine at its core.
A Jetty-based server to provide a SPARQL endpoint with an RDBMS backend and using the sparql2sql translation engine can be found at https://github.com/eugenesiow/sparql2sql-server.