Using reified statements in external validators

15 views
Skip to first unread message

Michael Phillips

unread,
Jun 26, 2025, 2:58:25 PMJun 26
to TopBraid Suite Users
I have used the reified statements in EDG to define custom values for sh:message and sh:severity. However, when I export the shapes and use them in a an external validator such as pyshacl or https://shacl-play.sparna.fr/play/validate the custom messages are not retrieved with the validation results. 
In sorted ttl the reified statements are rdf:statement blocks like so:
[
  a rdf:Statement ;
  rdf:object 1 ;
  rdf:predicate sh:minCount ;
  rdf:subject bf:Work-title ;
  sh:message "This property is required."@en ;
  sh:severity sh:Warning ;
].

Currently the external validators appear to only use the property shape and overlook the rdf:statement with sh:message and sh:severity. Is there some configuration I am missing? Any tips on how to get the reified statements to work outside of EDG?

Holger Knublauch

unread,
Jun 27, 2025, 12:47:44 AMJun 27
to topbrai...@googlegroups.com
Hi Michael,

I don’t think other validators are supporting this feature yet, as it is not officially part of SHACL 1.0 yet.

However, this will change with SHACL 1.2, where reification-based severity and messages will be supported, see

--
The topics of this mailing list include TopBraid EDG and related technologies such as SHACL.
To post to this group, send email to topbrai...@googlegroups.com
---
You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to topbraid-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/topbraid-users/3bbd7c56-31ef-49e9-a86d-5745365e5ab4n%40googlegroups.com.

Michael Phillips

unread,
Jun 27, 2025, 9:31:20 AMJun 27
to TopBraid Suite Users
Many thanks, Holger. I appreciate the info.

Michael

Reply all
Reply to author
Forward
0 new messages