Class TargetChainRetriever
java.lang.Object
org.eclipse.rdf4j.sail.shacl.ast.targets.TargetChainRetriever
- All Implemented Interfaces:
PlanNode
Used to run the query that represents the target and sets the bindings based on values that match the statement
patterns from the added/removed sail connection
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private final ConnectionsGroup
private final Resource[]
private final Dataset
private final boolean
private static final org.slf4j.Logger
private final String
private final QueryParserFactory
private final List
<StatementMatcher> private final EffectiveTarget.EffectiveTargetFragment
private final ConstraintComponent.Scope
private final String
private StackTraceElement[]
private final List
<StatementMatcher> private ValidationExecutionLogger
-
Constructor Summary
ConstructorsConstructorDescriptionTargetChainRetriever
(ConnectionsGroup connectionsGroup, Resource[] dataGraph, List<StatementMatcher> statementMatchers, List<StatementMatcher> removedStatementMatchers, EffectiveTarget.EffectiveTargetFragment removedStatementTarget, SparqlFragment queryFragment, List<StatementMatcher.Variable<Value>> vars, ConstraintComponent.Scope scope, boolean hasValue) -
Method Summary
Modifier and TypeMethodDescriptionprivate static boolean
bindingsEquivalent
(StatementMatcher currentStatementMatcher, MapBindingSet bindings, MapBindingSet previousBindings) int
depth()
boolean
getId()
void
getPlanAsGraphvizDot
(StringBuilder stringBuilder) int
hashCode()
CloseableIteration
<? extends ValidationTuple, SailException> iterator()
boolean
void
receiveLogger
(ValidationExecutionLogger validationExecutionLogger) boolean
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.rdf4j.sail.shacl.ast.planNodes.PlanNode
isGuaranteedEmpty
-
Field Details
-
logger
private static final org.slf4j.Logger logger -
BULK_SIZE
private static final int BULK_SIZE- See Also:
-
connectionsGroup
-
statementMatchers
-
removedStatementMatchers
-
queryFragment
-
queryParserFactory
-
scope
-
dataGraph
-
dataset
-
varNames
-
sparqlProjection
-
removedStatementTarget
-
hasValue
private final boolean hasValue -
varNamesInQueryFragment
-
stackTrace
-
validationExecutionLogger
-
-
Constructor Details
-
TargetChainRetriever
public TargetChainRetriever(ConnectionsGroup connectionsGroup, Resource[] dataGraph, List<StatementMatcher> statementMatchers, List<StatementMatcher> removedStatementMatchers, EffectiveTarget.EffectiveTargetFragment removedStatementTarget, SparqlFragment queryFragment, List<StatementMatcher.Variable<Value>> vars, ConstraintComponent.Scope scope, boolean hasValue)
-
-
Method Details
-
iterator
-
bindingsEquivalent
private static boolean bindingsEquivalent(StatementMatcher currentStatementMatcher, MapBindingSet bindings, MapBindingSet previousBindings) -
depth
public int depth() -
getPlanAsGraphvizDot
- Specified by:
getPlanAsGraphvizDot
in interfacePlanNode
-
getId
-
receiveLogger
- Specified by:
receiveLogger
in interfacePlanNode
-
producesSorted
public boolean producesSorted()- Specified by:
producesSorted
in interfacePlanNode
-
requiresSorted
public boolean requiresSorted()- Specified by:
requiresSorted
in interfacePlanNode
-
equals
-
hashCode
public int hashCode() -
toString
-