Class EffectiveTarget
- java.lang.Object
-
- org.eclipse.rdf4j.sail.shacl.ast.targets.EffectiveTarget
-
public class EffectiveTarget extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EffectiveTarget.EffectiveTargetObject
static class
EffectiveTarget.Extend
-
Field Summary
Fields Modifier and Type Field Description static String[]
TARGET_NAMES
static String
TARGET_VAR_PREFIX
-
Constructor Summary
Constructors Constructor Description EffectiveTarget(ArrayDeque<org.eclipse.rdf4j.sail.shacl.ast.Targetable> chain, org.eclipse.rdf4j.sail.shacl.ast.Targetable optional, RdfsSubClassOfReasoner rdfsSubClassOfReasoner, org.eclipse.rdf4j.sail.shacl.ast.StatementMatcher.StableRandomVariableProvider stableRandomVariableProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
couldMatch(ConnectionsGroup connectionsGroup, Resource[] dataGraph)
PlanNode
extend(PlanNode source, ConnectionsGroup connectionsGroup, Resource[] dataGraph, ConstraintComponent.Scope scope, EffectiveTarget.Extend direction, boolean includePropertyShapeValues, Function<PlanNode,PlanNode> filter)
PlanNode
getAllTargets(ConnectionsGroup connectionsGroup, Resource[] dataGraph, ConstraintComponent.Scope scope)
List<org.eclipse.rdf4j.sail.shacl.ast.StatementMatcher.Variable>
getAllTargetVariables()
PlanNode
getPlanNode(ConnectionsGroup connectionsGroup, Resource[] dataGraph, ConstraintComponent.Scope scope, boolean includeTargetsAffectedByRemoval, Function<PlanNode,PlanNode> filter)
String
getQuery(boolean includeOptional)
PlanNode
getTargetFilter(ConnectionsGroup connectionsGroup, Resource[] dataGraph, PlanNode parent)
org.eclipse.rdf4j.sail.shacl.ast.StatementMatcher.Variable
getTargetVar()
-
-
-
Field Detail
-
TARGET_VAR_PREFIX
public static final String TARGET_VAR_PREFIX
- See Also:
- Constant Field Values
-
TARGET_NAMES
public static final String[] TARGET_NAMES
-
-
Constructor Detail
-
EffectiveTarget
public EffectiveTarget(ArrayDeque<org.eclipse.rdf4j.sail.shacl.ast.Targetable> chain, org.eclipse.rdf4j.sail.shacl.ast.Targetable optional, RdfsSubClassOfReasoner rdfsSubClassOfReasoner, org.eclipse.rdf4j.sail.shacl.ast.StatementMatcher.StableRandomVariableProvider stableRandomVariableProvider)
-
-
Method Detail
-
getTargetVar
public org.eclipse.rdf4j.sail.shacl.ast.StatementMatcher.Variable getTargetVar()
-
extend
public PlanNode extend(PlanNode source, ConnectionsGroup connectionsGroup, Resource[] dataGraph, ConstraintComponent.Scope scope, EffectiveTarget.Extend direction, boolean includePropertyShapeValues, Function<PlanNode,PlanNode> filter)
-
couldMatch
public boolean couldMatch(ConnectionsGroup connectionsGroup, Resource[] dataGraph)
- Returns:
- false if it is 100% sure that this will not match, else returns true
-
getAllTargets
public PlanNode getAllTargets(ConnectionsGroup connectionsGroup, Resource[] dataGraph, ConstraintComponent.Scope scope)
-
getPlanNode
public PlanNode getPlanNode(ConnectionsGroup connectionsGroup, Resource[] dataGraph, ConstraintComponent.Scope scope, boolean includeTargetsAffectedByRemoval, Function<PlanNode,PlanNode> filter)
-
getTargetFilter
public PlanNode getTargetFilter(ConnectionsGroup connectionsGroup, Resource[] dataGraph, PlanNode parent)
-
getQuery
public String getQuery(boolean includeOptional)
-
getAllTargetVariables
public List<org.eclipse.rdf4j.sail.shacl.ast.StatementMatcher.Variable> getAllTargetVariables()
-
-