Class PatternConstraintComponent
java.lang.Object
org.eclipse.rdf4j.sail.shacl.ast.constraintcomponents.AbstractConstraintComponent
org.eclipse.rdf4j.sail.shacl.ast.constraintcomponents.AbstractSimpleConstraintComponent
org.eclipse.rdf4j.sail.shacl.ast.constraintcomponents.PatternConstraintComponent
- All Implemented Interfaces:
ConstraintComponent, Exportable, TargetChainInterface
-
Nested Class Summary
Nested classes/interfaces inherited from interface ConstraintComponent
ConstraintComponent.Scope -
Field Summary
FieldsFields inherited from class AbstractSimpleConstraintComponent
targetChainFields inherited from class AbstractConstraintComponent
VALUES_INJECTION_POINT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprivate static StringescapeRegexForSparql(String pattern) (package private) Function<PlanNode, FilterPlanNode> (package private) StringgetSparqlFilterExpression(StatementMatcher.Variable<Value> variable, boolean negated) Simple constraints need only implement this method to support SPARQL based validation.inthashCode()voidprivate static voidverifyPattern(String pattern, String flags) Methods inherited from class AbstractSimpleConstraintComponent
generateSparqlValidationQuery, generateTransactionalValidationPlan, getAllTargetsPlan, getId, getOptimalBulkValidationApproach, getPreferredValidationApproach, getTargetChain, literalToString, setTargetChainMethods inherited from class AbstractConstraintComponent
buildSparqlValidNodes_rsx_targetShape, getAllTargetsIncludingThoseAddedByPath, requiresEvaluation, stringRepresentationOfValue, trim
-
Field Details
-
Constructor Details
-
PatternConstraintComponent
-
-
Method Details
-
verifyPattern
-
toModel
-
getSparqlFilterExpression
Description copied from class:AbstractSimpleConstraintComponentSimple constraints need only implement this method to support SPARQL based validation. The returned filter body should evaluate to true for values that fail validation, unless negated==true. If the filter condition throws an error (a SPARQL runtime error, not Java error) then the error will be caught and coalesced to `true`.- Specified by:
getSparqlFilterExpressionin classAbstractSimpleConstraintComponent- Parameters:
variable-negated-- Returns:
- a string that is the body of a SPARQL filter
-
escapeRegexForSparql
-
getConstraintComponent
- Specified by:
getConstraintComponentin interfaceConstraintComponent- Overrides:
getConstraintComponentin classAbstractSimpleConstraintComponent
-
deepClone
-
getFilterAttacher
Function<PlanNode, FilterPlanNode> getFilterAttacher()- Specified by:
getFilterAttacherin classAbstractSimpleConstraintComponent
-
getDefaultMessage
-
equals
-
hashCode
-