[data-shapes] Annotation`sh:severity` (#648)

afs has just created a new issue for https://github.com/w3c/data-shapes:

== Annotation`sh:severity` ==
The domain of `sh:severity` is `sh:Shape`

[SHACL NS](https://github.com/w3c/data-shapes/blob/gh-pages/shacl/shacl.ttl)
```
sh:severity
 a rdf:Property ;
 rdfs:label "severity"@en ;
 rdfs:comment "Defines the severity that validation results produced by a shape must have. Defaults to sh:Violation."@en ;
 rdfs:domain sh:Shape ;
 rdfs:range sh:Severity ;
 rdfs:isDefinedBy sh: .
```

And this is in agreement with the diagram in [https://www.w3.org/TR/shacl12-core/#constraints-section](3. Shapes and Constraints).

In SHACL 1.2 the section is "3.1.4 Declaring the Severity of a Shape or Constraint"

> Shapes can specify one [value](https://www.w3.org/TR/shacl12-core/#dfn-value) for the property sh:severity in the [shapes graph](https://www.w3.org/TR/shacl12-core/#dfn-shapes-graph). Each value of sh:severity is an [IRI](https://www.w3.org/TR/rdf12-concepts/#dfn-iri).

then the table #646. As a grey box, it is incomplete as a syntax rule. (aside: dark mode issue here)

Only later does it say:
> Let T be the set of [triples](https://www.w3.org/TR/rdf12-concepts/#dfn-rdf-triple) that represent a [constraint](https://www.w3.org/TR/shacl12-core/#dfn-constraint) in a [shape](https://www.w3.org/TR/shacl12-core/#dfn-shape). A [shapes graph](https://www.w3.org/TR/shacl12-core/#dfn-shapes-graph) can specify at most one [value](https://www.w3.org/TR/shacl12-core/#dfn-value) for the property sh:severity in the [reifiers](https://www.w3.org/TR/rdf12-concepts/#dfn-reifier) of the [triples](https://www.w3.org/TR/rdf12-concepts/#dfn-rdf-triple) in T.

The syntax rule should be complete and include both in the same box.

_From https://github.com/TopQuadrant/shacl/issues/199_

Also - what happens if `sh:message` is in the annotation and in the SPARQL constraint?

Please view or discuss this issue at https://github.com/w3c/data-shapes/issues/648 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 14 November 2025 19:03:18 UTC