Class SPARQLConstraintExecutor
java.lang.Object
org.topbraid.shacl.validation.sparql.AbstractSPARQLExecutor
org.topbraid.shacl.validation.sparql.SPARQLConstraintExecutor
- All Implemented Interfaces:
ConstraintExecutor
Validator for sh:sparql constraints.
- Author:
- Holger Knublauch
-
Field Summary
Fields inherited from class org.topbraid.shacl.validation.sparql.AbstractSPARQLExecutor
createSuccessResults -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 Details
-
SPARQLConstraintExecutor
-
-
Method Details
-
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
- Specified by:
addBindingsin classAbstractSPARQLExecutor
-
getLabel
- Specified by:
getLabelin classAbstractSPARQLExecutor
-
getSPARQL
- Specified by:
getSPARQLin classAbstractSPARQLExecutor
-
getSPARQLExecutable
- Specified by:
getSPARQLExecutablein classAbstractSPARQLExecutor
-