Class SPARQLSyntaxChecker
- java.lang.Object
-
- org.topbraid.shacl.validation.sparql.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 Summary
Constructors Constructor Description SPARQLSyntaxChecker()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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 checkpreBoundVars- the potentially pre-bound variables- Returns:
- an List of error messages (empty if OK)
-
-