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 classEffectiveTarget.EffectiveTargetFragmentstatic classEffectiveTarget.Extendstatic classEffectiveTarget.StatementsAndMatcher
-
Field Summary
Fields Modifier and Type Field Description static String[]TARGET_NAMESstatic StringTARGET_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 booleancouldMatch(ConnectionsGroup connectionsGroup, Resource[] dataGraph)PlanNodeextend(PlanNode source, ConnectionsGroup connectionsGroup, Resource[] dataGraph, ConstraintComponent.Scope scope, EffectiveTarget.Extend direction, boolean includePropertyShapeValues, Function<PlanNode,PlanNode> filter)PlanNodegetAllTargets(ConnectionsGroup connectionsGroup, Resource[] dataGraph, ConstraintComponent.Scope scope)List<org.eclipse.rdf4j.sail.shacl.ast.StatementMatcher.Variable<Value>>getAllTargetVariables()PlanNodegetPlanNode(ConnectionsGroup connectionsGroup, Resource[] dataGraph, ConstraintComponent.Scope scope, boolean includeTargetsAffectedByRemoval, Function<PlanNode,PlanNode> filter)StringgetQuery(boolean includeOptional)org.eclipse.rdf4j.sail.shacl.ast.SparqlFragmentgetQueryFragment(boolean includeOptional)PlanNodegetTargetFilter(ConnectionsGroup connectionsGroup, Resource[] dataGraph, PlanNode parent)org.eclipse.rdf4j.sail.shacl.ast.StatementMatcher.Variable<Value>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<Value> 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)
-
getQueryFragment
public org.eclipse.rdf4j.sail.shacl.ast.SparqlFragment getQueryFragment(boolean includeOptional)
-
-