Recursion in SPARQL
In this page you will find all the resources of the paper Recursion in SPARQL, including the source code, queries, datasets and the instructions to run it. You can find the source code of the implementation of Recursive SPARQL here.
You can import the source code using Maven
. Then you should take a look to the following files:
- LoadTDB.java: the procedure to load a RDF file to Jena TDB.
-
ExecRecursive.java: the procedure to execute Recursive Queries. Also it has some global variables:
-
RECURSIVE_TDB_DIR
: a TDB Folder that is used to store partial results when computing a Recursive Query. -
TDB_DIR
: a TDB Folder where the dataset is stored. -
RECURSIVE_METHODS
andRECURSIVE_METHOD
: the possible options to run the algorithm (disk, in memory, limiting iterations,...) and the choice of the user. -
NUMBER_OF_ITERATIONS
: in case of limiting the number of iterations, this number will represent the number of iterations.
-
- ExecRecursiveJSON.java: the procedure to execute recursive queries from a JSON file. See the queries tab to find the JSON documents for Yago and LMDB.
- ExecRecursiveJSON.java: the procedure to execute recursive queries from a JSON file, but limiting the number of iterations.
- ExecGMarkFile.java: the procedure to execute the queries of the GMark Benchmark.