Skip to content

Commit e410f30

Browse files
HolgerKnublauchafs
andauthored
#648: Moved table of severities below syntax rules, added fallback for sh:message in SPARQL (#667)
* #648: Moved table of severities below syntax rules, added fallback for sh:message in SPARQL * Fixed typo * Update shacl12-core/index.html Co-authored-by: Andy Seaborne <andy@apache.org> --------- Co-authored-by: Andy Seaborne <andy@apache.org>
1 parent 8d24ed3 commit e410f30

File tree

2 files changed

+36
-31
lines changed

2 files changed

+36
-31
lines changed

shacl12-core/index.html

Lines changed: 33 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1455,37 +1455,6 @@ <h4>Declaring the Severity of a Shape or Constraint</h4>
14551455
<span data-syntax-rule="severity-maxCount">Shapes can specify one <a>value</a> for the property <code>sh:severity</code> in the <a>shapes graph</a>.</span>
14561456
<span data-syntax-rule="severity-nodeKind">Each value of <code>sh:severity</code> is an <a>IRI</a>.</span>
14571457
</p>
1458-
<p>
1459-
The values of <code>sh:severity</code> are called <dfn data-lt="severity">severities</dfn>.
1460-
SHACL includes the IRIs listed in the table below to represent <a>severities</a>.
1461-
These are declared in the SHACL vocabulary as SHACL instances of <code>sh:Severity</code>.
1462-
</p>
1463-
<table class="term-table">
1464-
<tbody><tr>
1465-
<th>Severity</th>
1466-
<th>Description</th>
1467-
</tr>
1468-
<tr>
1469-
<td><code>sh:Trace</code></td>
1470-
<td>A trace message that is not a constraint violation.</td>
1471-
</tr>
1472-
<tr>
1473-
<td><code>sh:Debug</code></td>
1474-
<td>A debug message that is not a constraint violation.</td>
1475-
</tr>
1476-
<tr>
1477-
<td><code>sh:Info</code></td>
1478-
<td>A non-critical constraint violation indicating an informative message.</td>
1479-
</tr>
1480-
<tr>
1481-
<td><code>sh:Warning</code></td>
1482-
<td>A non-critical constraint violation indicating a warning.</td>
1483-
</tr>
1484-
<tr>
1485-
<td><code>sh:Violation</code></td>
1486-
<td>A constraint violation.</td>
1487-
</tr>
1488-
</tbody></table>
14891458
<p>
14901459
In addition to declaring severities per shape, the property <code>sh:severity</code> can also be used
14911460
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>
@@ -1497,6 +1466,39 @@ <h4>Declaring the Severity of a Shape or Constraint</h4>
14971466
A <a>shapes graph</a> can specify at most one <a>value</a> for the property <code>sh:severity</code>
14981467
in the <a>reifiers</a> of the <a>triples</a> in <code>T</code>.
14991468
</span></p>
1469+
<p>
1470+
A value of <code>sh:severity</code> is called a <dfn>severity</dfn>.
1471+
SHACL includes the IRIs listed in the table below to represent [=severities=].
1472+
These are declared in the SHACL vocabulary as SHACL instances of <code>sh:Severity</code>.
1473+
</p>
1474+
<table class="term-table">
1475+
<tbody>
1476+
<tr>
1477+
<th>Severity</th>
1478+
<th>Description</th>
1479+
</tr>
1480+
<tr>
1481+
<td><code>sh:Trace</code></td>
1482+
<td>A trace message that is not a constraint violation.</td>
1483+
</tr>
1484+
<tr>
1485+
<td><code>sh:Debug</code></td>
1486+
<td>A debug message that is not a constraint violation.</td>
1487+
</tr>
1488+
<tr>
1489+
<td><code>sh:Info</code></td>
1490+
<td>A non-critical constraint violation indicating an informative message.</td>
1491+
</tr>
1492+
<tr>
1493+
<td><code>sh:Warning</code></td>
1494+
<td>A non-critical constraint violation indicating a warning.</td>
1495+
</tr>
1496+
<tr>
1497+
<td><code>sh:Violation</code></td>
1498+
<td>A constraint violation.</td>
1499+
</tr>
1500+
</tbody>
1501+
</table>
15001502
<p><em>The remainder of this section is informative.</em></p>
15011503
<p>
15021504
The validation process handles the values of <code>sh:severity</code> according to <a>conformance checking</a>.

shacl12-sparql/index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,9 @@ <h4>Mapping of Solution Bindings to Result Properties</h4>
853853
<li>
854854
For SPARQL-based constraint components: The values of <code>sh:message</code> of the <a>SPARQL-based constraint component</a>.
855855
</li>
856+
<li>
857+
The default mechanisms for <a data-cite="shacl12-core/#message">declaring messages</a> at the shape or constraint apply otherwise.
858+
</li>
856859
</ol>
857860
<div>
858861
These message literals may include the names of any SELECT result variables via <code>{?varName}</code> or <code>{$varName}</code>.

0 commit comments

Comments
 (0)