dice-group / IGUANA

IGUANA is a benchmark execution framework for RDF triple stores and quad stores
http://iguana-benchmark.eu
GNU Affero General Public License v3.0
24 stars 15 forks source link

Rework query handling #184

Closed frensing closed 1 year ago

frensing commented 1 year ago

Rework of the query handling

Each Worker gets their own QueryHandler.

The updated config will have for example the following structure:

...
workers:
  - className: "WorkerName"
    queries:
      location: "path/to/file"
      format: "one-per-line"
      caching: true
      order: linear
      pattern:
        endpoint: "http://localhost:3030/sparql"
        outputFolder: "queryCache"
        limit: 10
      lang: "lang.SPARQL"
...

QueryHandler

Each QueryHandler has:

QuerySet

The QuerySet is either in-memory or file-based.

The config option caching can be set to true for in-memory or false for file-based.

Each QuerySet has a QuerySource from which the queries are read.

QuerySource

A QuerySource is the wrapper for the handling of the query files. 3 different QuerySources are implemented:

QuerySelector

A QuerySelector is basically a number generator giving the next index of a query to load. 2 QuerySelectors are implemented:

TODO

frensing commented 1 year ago

All prior functionality is now in the new QueryHandler. All prior test cases have been updated where it made sense and run successfully.

Next step is to update the documentations

nck-mlcnv commented 1 year ago

Things left to do: