Package org.topbraid.shacl.engine
Class Constraint
- java.lang.Object
-
- org.topbraid.shacl.engine.Constraint
-
public class Constraint extends Object
Represents a constraint as input to an engine (e.g. validation or inferencing). Here, a constraint is the combination of parameters, e.g. a specific value of sh:datatype at a given Shape.- Author:
- Holger Knublauch
-
-
Constructor Summary
Constructors Constructor Description Constraint(Shape shape, SHConstraintComponent component, List<SHParameter> params, org.apache.jena.rdf.model.RDFNode parameterValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBindings(org.apache.jena.query.QuerySolutionMap map)SHConstraintComponentgetComponent()org.apache.jena.rdf.model.ResourcegetContext()ConstraintExecutorgetExecutor()Collection<org.apache.jena.rdf.model.RDFNode>getMessages()List<SHParameter>getParameters()org.apache.jena.rdf.model.RDFNodegetParameterValue()org.apache.jena.rdf.model.ResourcegetSeverity()ShapegetShape()SHShapegetShapeResource()StringtoString()
-
-
-
Constructor Detail
-
Constraint
public Constraint(Shape shape, SHConstraintComponent component, List<SHParameter> params, org.apache.jena.rdf.model.RDFNode parameterValue)
-
-
Method Detail
-
addBindings
public void addBindings(org.apache.jena.query.QuerySolutionMap map)
-
getComponent
public SHConstraintComponent getComponent()
-
getContext
public org.apache.jena.rdf.model.Resource getContext()
-
getExecutor
public ConstraintExecutor getExecutor()
-
getMessages
public Collection<org.apache.jena.rdf.model.RDFNode> getMessages()
-
getParameters
public List<SHParameter> getParameters()
-
getParameterValue
public org.apache.jena.rdf.model.RDFNode getParameterValue()
-
getSeverity
public org.apache.jena.rdf.model.Resource getSeverity()
-
getShape
public Shape getShape()
-
getShapeResource
public SHShape getShapeResource()
-
-