Class SPARQLSyntaxChecker


  • public class SPARQLSyntaxChecker
    extends Object
    Can be used to check for the violation of any of the syntax rules in Appendix A of the SHACL spec, to prevent certain pre-binding scenarios.
    Author:
    Holger Knublauch
    • Constructor Detail

      • SPARQLSyntaxChecker

        public SPARQLSyntaxChecker()
    • Method Detail

      • checkQuery

        public static List<String> checkQuery​(org.apache.jena.query.Query query,
                                              Set<String> preBoundVars)
        Checks whether a given Query violates any of the syntax rules in Appendix A.
        Parameters:
        query - the Query to check
        preBoundVars - the potentially pre-bound variables
        Returns:
        an List of error messages (empty if OK)