Skip to content

Commit 7980d3b

Browse files
committed
feat: #192 add severity levels that are not violations
1 parent a932976 commit 7980d3b

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

shacl12-core/index.html

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1739,6 +1739,14 @@ <h4>Declaring the Severity of a Shape or Constraint</h4>
17391739
<th>Severity</th>
17401740
<th>Description</th>
17411741
</tr>
1742+
<tr>
1743+
<td><code>sh:Trace</code></td>
1744+
<td>A trace message that is not a violation.</td>
1745+
</tr>
1746+
<tr>
1747+
<td><code>sh:Debug</code></td>
1748+
<td>A debug message that is not a violation.</td>
1749+
</tr>
17421750
<tr>
17431751
<td><code>sh:Info</code></td>
17441752
<td>A non-critical constraint violation indicating an informative message.</td>
@@ -1752,6 +1760,10 @@ <h4>Declaring the Severity of a Shape or Constraint</h4>
17521760
<td>A constraint violation.</td>
17531761
</tr>
17541762
</table>
1763+
<p>
1764+
Validation engines may treat <code>sh:Info</code> and <code>sh:Warning</code> as non-violating based on
1765+
options passed to the engine. By default, they must be treated as violations.
1766+
</p>
17551767
<p>
17561768
In addition to declaring severities per shape, the property <code>sh:severity</code> can also be used
17571769
on a <a>reifier</a> for a triple where the <a>shape</a> is the <a>subject</a> and one of the <a>parameters</a>
@@ -2917,7 +2929,7 @@ <h5>Conforms (sh:conforms)</h5>
29172929
<p>
29182930
Each SHACL instance of <code>sh:ValidationReport</code> in the results graph has exactly one value for the property <code>sh:conforms</code> and the value is of datatype <code>xsd:boolean</code>.
29192931
It represents the outcome of the <a>conformance checking</a>.
2920-
The value of <code>sh:conforms</code> is <code>true</code> if and only if the <a>validation</a> did not produce any <a>validation results</a>, and <code>false</code> otherwise.
2932+
The value of <code>sh:conforms</code> is <code>true</code> if and only if the <a>validation</a> did not produce any <a>validation results</a> with a severity level representing a violation, and <code>false</code> otherwise.
29212933
</p>
29222934
</section>
29232935
<section id="result">

shacl12-vocabularies/shacl.ttl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,18 @@ sh:Severity
221221
rdfs:subClassOf rdfs:Resource ;
222222
rdfs:isDefinedBy sh: .
223223

224+
sh:Trace
225+
a sh:Severity ;
226+
rdfs:label "Trace"@en ;
227+
rdfs:comment "The severity for a trace validation result."@en ;
228+
rdfs:isDefinedBy sh: .
229+
230+
sh:Debug
231+
a sh:Severity ;
232+
rdfs:label "Debug"@en ;
233+
rdfs:comment "The severity for a debug validation result."@en ;
234+
rdfs:isDefinedBy sh: .
235+
224236
sh:Info
225237
a sh:Severity ;
226238
rdfs:label "Info"@en ;

0 commit comments

Comments
 (0)