Skip to content

Add support for DASH Query Test Cases#305

Merged
ashleysommer merged 4 commits into
RDFLib:masterfrom
mgberg:mgg-dash-querytestcases
Dec 14, 2025
Merged

Add support for DASH Query Test Cases#305
ashleysommer merged 4 commits into
RDFLib:masterfrom
mgberg:mgg-dash-querytestcases

Conversation

@mgberg
Copy link
Copy Markdown
Contributor

@mgberg mgberg commented Dec 10, 2025

This adds the ability to evaluate DASH Query Test Cases in addition to the already supported types of test cases (Graph Validation, Inferencing, Functions). This addition generally mirrors the behavior of the other types of test cases already implemented in terms of how they return results, when and what type of exceptions are raised, and how they are evaluated during validation. The existing utilities to resolve prefixes for sh:SPARQLExecutables via sh:prefixes and inject them into the query are reused here.

Beyond their immediate use in validation, the functions related to processing Query Test Cases are intended for potential broader reusability in the event someone would want to extract data about DASH Query Test Cases or compare the results of a SPARQL query on a graph with a provided result for some other use case.

Additionally, some tests are included to verify the test cases work as expected or raise the appropriate errors.

@mgberg mgberg force-pushed the mgg-dash-querytestcases branch from 2c3b247 to 5d8ae20 Compare December 10, 2025 17:39
@mgberg mgberg force-pushed the mgg-dash-querytestcases branch from 5d8ae20 to 1b6c139 Compare December 10, 2025 17:42
@ashleysommer
Copy link
Copy Markdown
Collaborator

Wow, this is fantastic. Thanks @mgberg
Immediate merge.

@ashleysommer ashleysommer merged commit 6df3ff6 into RDFLib:master Dec 14, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants