Class SPARQLSyntaxChecker
java.lang.Object
org.topbraid.shacl.validation.sparql.SPARQLSyntaxChecker
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 -
Method Summary
Modifier and TypeMethodDescriptioncheckQuery(org.apache.jena.query.Query query, Set<String> preBoundVars) Checks whether a given Query violates any of the syntax rules in Appendix A.
-
Constructor Details
-
SPARQLSyntaxChecker
public SPARQLSyntaxChecker()
-
-
Method Details
-
checkQuery
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)
-