Open benjamingeer opened 5 years ago
This is because permission checks are performed for everything contained in the WHERE clause, whether the client wants it to be returned or not, see https://docs.knora.org/paradox/05-internals/design/api-v2/gravsearch.html#processing-the-main-querys-results.
OK but could we get the permissions without getting the valueHasString
?
If the string does not have to be returned to the client, yes.
Since https://github.com/dasch-swiss/knora-api/pull/1521 changed the way Gravsearch results are filtered, we could now not get the value from the triplestore if it's not in the CONSTRUCT
clause.
If a value is used in the WHERE clause of a Gravsearch query, but is not mentioned in the CONSTRUCT clause, the generated main SPARQL query still gets the value. For example:
Since the text is very large, I would like to optimise the main query by not getting the text from the triplestore.