You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It returns the following results (SPARQL web console):
In Knora, empty results are filtered out:
Since all the variables (keys) are expected to be present in result (a map), Knora throws an exception (ErrorHandlingMap): Status Code: 500 {"status":4,"error":"org.knora.webapi.InconsistentTriplestoreDataException: No value found for SPARQL query variable 'person1Concat' in query result row"}
Proposed solution:
Statements inside an OPTIONAL or a UNION may be present in the results, but they cannot be expected to be there. In scala, we have to check for the key using get and only access it if it is not None.
The text was updated successfully, but these errors were encountered:
The current design expects all statements to be contained in the results (one or more matches).
The use of OPTIONAL and UNION, however, introduces statements that may match. This means that cannot be expected to be present in the results.
Consider the following SPARQL query with a UNION:
It returns the following results (SPARQL web console):
In Knora, empty results are filtered out:
Since all the variables (keys) are expected to be present in result (a map), Knora throws an exception (ErrorHandlingMap):
Status Code: 500 {"status":4,"error":"org.knora.webapi.InconsistentTriplestoreDataException: No value found for SPARQL query variable 'person1Concat' in query result row"}
Proposed solution:
Statements inside an OPTIONAL or a UNION may be present in the results, but they cannot be expected to be there. In scala, we have to check for the key using
get
and only access it if it is notNone
.The text was updated successfully, but these errors were encountered: