Skip to content

feat: #192 add severity levels that are not violations #409

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: gh-pages
Choose a base branch
from

Conversation

bergos
Copy link
Contributor

@bergos bergos commented Jun 22, 2025

This PR closes #192 "Add severity levels that are not violations". It contains the following changes:

  • Adds sh:Trace and sh:Debug severity levels that aren't violations.
  • Allows validation engines to treat sh:Info and sh:Warning as non-violating.
  • Changes the definition of sh:conforms of being true when there are no results to being true if there are no results with a severity level that is a violation.

A rule based on RDF classes for sh:conforms would have been preferred, but since it's possible to dynamically set sh:Info and sh:Warning being a violation, that is not possible.

Allowing validation engines to treat levels as non-violating but keeping the default makes this a non-breaking change.

@bergos bergos marked this pull request as ready for review June 22, 2025 16:32
Copy link
Contributor

@HolgerKnublauch HolgerKnublauch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good addition, and it's good to relax the interpretation of conforms. However, there are other places that now need to be changed too. A quick look revealed the section "Conformance Checking", which formally defines the term "conforms". This needs to take the additional flexibility into account. Other places that rely on "conforms" such as sh:node then don't need to be adjusted further.

@bergos
Copy link
Contributor Author

bergos commented Jun 24, 2025

@HolgerKnublauch I also rechecked the spec and found only the "Conformance Checking" section that needed an update. The change is included in the latest commit.

@bergos bergos requested a review from HolgerKnublauch June 24, 2025 07:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add severity levels that are not violations
2 participants