Class AbstractSPARQLExecutor
java.lang.Object
org.topbraid.shacl.validation.sparql.AbstractSPARQLExecutor
- All Implemented Interfaces:
ConstraintExecutor
- Direct Known Subclasses:
SPARQLComponentExecutor,SPARQLConstraintExecutor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidaddBindings(Constraint constraint, org.apache.jena.query.QuerySolutionMap bindings) static voidaddDetails(org.apache.jena.rdf.model.Resource parentResult, org.apache.jena.rdf.model.Model nestedResults) voidexecuteConstraint(Constraint constraint, ValidationEngine engine, Collection<org.apache.jena.rdf.model.RDFNode> focusNodes) Validates a collection of focus nodes against a constraint.protected abstract StringgetLabel(Constraint constraint) protected org.apache.jena.query.QuerygetQuery()protected abstract StringgetSPARQL(Constraint constraint) protected abstract org.apache.jena.rdf.model.ResourcegetSPARQLExecutable(Constraint constraint)
-
Field Details
-
createSuccessResults
public static boolean createSuccessResults
-
-
Constructor Details
-
AbstractSPARQLExecutor
-
-
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- 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 abstract void addBindings(Constraint constraint, org.apache.jena.query.QuerySolutionMap bindings) -
getSPARQLExecutable
-
getLabel
-
getQuery
protected org.apache.jena.query.Query getQuery() -
getSPARQL
-
addDetails
public static void addDetails(org.apache.jena.rdf.model.Resource parentResult, org.apache.jena.rdf.model.Model nestedResults)
-