Open henrietteharmse opened 2 years ago
Thanks for using the ShEx-s library. Your are right that the current natural language description of the errors should be improved.
There is also the possibility that the generated result shape map in ShEx-s is generated in JSON which could later be converted to a more helpful message if you want.
Currently there is no why to provide a concise error message when validation fails. I.e., if we use the organization shape and data that is missing is the
dct:title
for organisation:with shape mapping, it results in this short message:
:ErdriDOR@!:organisationShape
whendetail=false
. The!
indicates that there is an issue with theorganisationShape
. However, it does not tell you why validation failed. This is the intended purpose ofdetail=true
. But this currently returns this very unhelpful message:This messages comes form the underlying Shex validation library used. Currently there seems to be no easy way to improve these validation error messages. See this issue.