Blocking workflow transitions based on DASH test cases

12 views
Skip to first unread message

Matt Goldberg

unread,
Nov 26, 2025, 5:15:23 PM (8 days ago) Nov 26
to TopBraid Suite Users
Hello-

It's possible to block a workflow transition if SHACL validation fails, which has been very useful. However, I'm curious if there's any way to also block transition if the asset collection has any DASH test cases and any of them fail.

Thanks,
Matt Goldberg 

Holger Knublauch

unread,
Nov 30, 2025, 6:36:43 PM (4 days ago) Nov 30
to topbrai...@googlegroups.com
Hi Matt,

maybe, but it’s technical.

The only API that I see that exposes running DASH test cases for end users is via GraphQL. And you can run GraphQL from ADS scripts:

graph.ql(`{
graphReport(excludeIds: [] , maxResultCount: 10000 ) {
testResults {
testCase { label uri }
message
actualResult
expectedResult
}
}`)

Workflow transitions can be conditionally enabled as shown in teamwork:BlockOnValidationSeverityConstraintComponent. So you could try to install a SPARQL function (dash:ScriptFunction) in a .api.ttl file so that it’s globally registered, and then do the same as the constraint component does, copied from teamwork.ttl, via an ASK-based validator.

Holger


--
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/10a309e1-52a0-4357-b6cc-9aa9f06f4293n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages