If certain key information is missing from the FnO description then
rmlmapper reacts by returning an error message like:
Index 0 out of bounds for length 0
This error message provides no information about what is wrong, so the
user has no way to understand how to fix the problem.
Modification:
Check that the predicate query returns at least one result before
attempting to extract the expected result from the list. Throw an
exception with a meaningful error message if the search yields results;
for example:
<https://github.com/paulmillar/rml-extra-functions#param_base_uri> is missing https://w3id.org/function/ontology#type
Result:
The code provides a better error message if the FnO description is
incomplete.
Motivation:
If certain key information is missing from the FnO description then rmlmapper reacts by returning an error message like:
This error message provides no information about what is wrong, so the user has no way to understand how to fix the problem.
Modification:
Check that the predicate query returns at least one result before attempting to extract the expected result from the list. Throw an exception with a meaningful error message if the search yields results; for example:
Result:
The code provides a better error message if the FnO description is incomplete.