Class SPARQLConstraintExecutor
- java.lang.Object
-
- org.topbraid.shacl.validation.sparql.AbstractSPARQLExecutor
-
- org.topbraid.shacl.validation.sparql.SPARQLConstraintExecutor
-
- All Implemented Interfaces:
ConstraintExecutor
public class SPARQLConstraintExecutor extends AbstractSPARQLExecutor
Validator for sh:sparql constraints.- Author:
- Holger Knublauch
-
-
Field Summary
-
Fields inherited from class org.topbraid.shacl.validation.sparql.AbstractSPARQLExecutor
createSuccessResults
-
-
Constructor Summary
Constructors Constructor Description SPARQLConstraintExecutor(Constraint constraint)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddBindings(Constraint constraint, org.apache.jena.query.QuerySolutionMap bindings)voidexecuteConstraint(Constraint constraint, ValidationEngine engine, Collection<org.apache.jena.rdf.model.RDFNode> focusNodes)Validates a collection of focus nodes against a constraint.protected StringgetLabel(Constraint constraint)protected StringgetSPARQL(Constraint constraint)protected org.apache.jena.rdf.model.ResourcegetSPARQLExecutable(Constraint constraint)-
Methods inherited from class org.topbraid.shacl.validation.sparql.AbstractSPARQLExecutor
addDetails, getQuery
-
-
-
-
Constructor Detail
-
SPARQLConstraintExecutor
public SPARQLConstraintExecutor(Constraint constraint)
-
-
Method Detail
-
executeConstraint
public void executeConstraint(Constraint constraint, ValidationEngine engine, Collection<org.apache.jena.rdf.model.RDFNode> focusNodes)
Description copied from interface:ConstraintExecutorValidates a collection of focus nodes against a constraint. Implementations are typically calling engine.createValidationResult() to record results such as violations.- Specified by:
executeConstraintin interfaceConstraintExecutor- Overrides:
executeConstraintin classAbstractSPARQLExecutor- Parameters:
constraint- the Constraint (instance) to validate (e.g. a specific sh:datatype constraint)engine- the ValidationEnginefocusNodes- the collection of focus nodes - should not contain duplicates
-
addBindings
protected void addBindings(Constraint constraint, org.apache.jena.query.QuerySolutionMap bindings)
- Specified by:
addBindingsin classAbstractSPARQLExecutor
-
getLabel
protected String getLabel(Constraint constraint)
- Specified by:
getLabelin classAbstractSPARQLExecutor
-
getSPARQL
protected String getSPARQL(Constraint constraint)
- Specified by:
getSPARQLin classAbstractSPARQLExecutor
-
getSPARQLExecutable
protected org.apache.jena.rdf.model.Resource getSPARQLExecutable(Constraint constraint)
- Specified by:
getSPARQLExecutablein classAbstractSPARQLExecutor
-
-