In our codebase we build some SPARQL programatically by gluing some chunks of text. In order to validate that the SPARQL queries are valid we have some integration tests that check that the queries don't raise any MalformedQuery exception but that requires connectivity to a Stardog instance.
Is there a way to parse and check for syntactic validation of Stardog's SPARQL queries that could allow converting those integration tests to unit tests in Java?