Hi Adam,

The best thing I can come up with would be a dash:ScriptTestCase that iterates 
over the templates and executes them one by one, returning an array of those 
that failed your criteria. You can create such test cases with Studio in a 
.test.ttl file from the Script Editor panel - just run the script until it 
returns an empty array, then press the camera button to create the test.

This doesn’t create a separate test result for each query, but would just 
produce one. Yet I believe the output will be meaningful enough to aid further 
debugging.

Holger


> On May 6, 2025, at 01:07, Adam Kimball <adamfkimb...@gmail.com> wrote:
> 
> Hi all,
> 
> I'd like to create a test case that makes sure some arbitrary number of 
> SPARQL queries, when executed, produce at least 1 result each.  Sounds easy 
> enough.
> 
> The hitch is that these SPARQL queries are defined as 
> dash:SPARQLSelectTemplates with a sh:select triple connecting to the string 
> literal of the query itself.  This string literal will include all prefixes, 
> result variables, and where clause - that is, it is good to execute as is.  
> (Parameters can come later!).
> 
> So, I'd like a test case that:
> 
> 1. Finds all of the SPARQLSelectTemplates in a graph
> 2. Executes each one
> 3. Passes if each returns at least one answer, fails otherwise.
> 
> Seems like I might be in the intersection of a few technologies I don't know 
> very well including ADS and the dash TestSuites, but I have a feeling this is 
> pretty doable.  
> 
> If someone could point me in the right direction, I'd be grateful.  Thanks!
> 
> Adam
> 
> 
> -- 
> The topics of this mailing list include TopBraid EDG and related technologies 
> such as SHACL.
> To post to this group, send email to topbraid-users@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-users+unsubscr...@googlegroups.com 
> <mailto:topbraid-users+unsubscr...@googlegroups.com>.
> To view this discussion visit 
> https://groups.google.com/d/msgid/topbraid-users/ebe36563-2d4a-40bf-9fb4-f9a9357f6762n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/topbraid-users/ebe36563-2d4a-40bf-9fb4-f9a9357f6762n%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
The topics of this mailing list include TopBraid EDG and related technologies 
such as SHACL.
To post to this group, send email to topbraid-users@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-users+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/topbraid-users/339AA4D9-3455-4C38-BE95-81D692D287E1%40topquadrant.com.

Reply via email to