Hi,
would also be useful to offer the possibility to only report sh:Violation and not fail on first error
(use case: sending validation reports of several DCAT-AP feeds to their respective sources)
Not sure about log (unless there is a specific log handler that could write a report to a file,
using marker to differentiate between the SHACL violations and internal SHACL engine errors,
but this seems )
Maybe a method that takes an RDFHandler as argument,
so that the triples of the validation report can be written during the validation ?
Best regards
Bart
Hi,
In SHACL you can have a number of severity levels for a shape (rule). Currently we do not support these.
Does anyone have any recommendation for how to support this?
An example:
A shape with severity sh:Warning is violated. This should not cause the commit() to fail, but there should still be some way for the developer to get hold of the validation report. Currently that report is tucked away in the exception that is
thrown by commit(), but in this case no exception should be thrown.
I have been thinking about a few options, all rather bad:
- log sh:Warning and sh:Info level violations, and do nothing else
- add a method to the SHACL connection to retrieve the current validation report
- add a return type to the commit() or prepare() method
Anyone have a better suggestion, or maybe feel that one of the above is good enough?
Cheers,
Håvard