Improve GraphQL to SPARQL Query Translation Time
Currently, a SPARQL query is built with the String concatenation operator +. Evaluations ([1], [2]) have shown that the classes StringBuilder and StringBufffer perform much faster string concatenations and consume less memory.
Evaluation in the project
The evaluation test of [1](4.1) was executed within the project and showed a difference of 89:1 by comparing StingBuffer with regular string. Suggesting that switching the string operators drastically improves the execution time.
Recommendation
Switch from Strings to one of the proposed classes for String built-ups to increase the performance. Modules that can benefit from this are:
- SPARQL Query Translation (SPARQLServiceConverter)
- SPARQL Update Translation (SPARQLMutationConverter)
- Schema Mapping form RDF to HGQLS