Class SimplePath
- java.lang.Object
-
- org.eclipse.rdf4j.sail.shacl.ast.paths.Path
-
- org.eclipse.rdf4j.sail.shacl.ast.paths.SimplePath
-
- All Implemented Interfaces:
Exportable
,Identifiable
,Targetable
public class SimplePath extends Path
-
-
Constructor Summary
Constructors Constructor Description SimplePath(IRI predicate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
PlanNode
getAllAdded(ConnectionsGroup connectionsGroup, Resource[] dataGraph, PlanNodeWrapper planNodeWrapper)
Get all values added in this transaction.PlanNode
getAnyAdded(ConnectionsGroup connectionsGroup, Resource[] dataGraph, PlanNodeWrapper planNodeWrapper)
Get values added in this transaction.Resource
getId()
SparqlFragment
getTargetQueryFragment(StatementMatcher.Variable subject, StatementMatcher.Variable object, RdfsSubClassOfReasoner rdfsSubClassOfReasoner, StatementMatcher.StableRandomVariableProvider stableRandomVariableProvider, java.util.Set<java.lang.String> inheritedVarNames)
int
hashCode()
boolean
isSupported()
void
toModel(Resource subject, IRI predicate, Model model, java.util.Set<Resource> cycleDetection)
java.lang.String
toSparqlPathString()
java.lang.String
toString()
-
Methods inherited from class org.eclipse.rdf4j.sail.shacl.ast.paths.Path
buildPath, getNamespaces, getVariablePrefix
-
-
-
-
Field Detail
-
predicate
private final IRI predicate
-
-
Constructor Detail
-
SimplePath
public SimplePath(IRI predicate)
-
-
Method Detail
-
getId
public Resource getId()
- Specified by:
getId
in interfaceIdentifiable
- Overrides:
getId
in classPath
-
getAllAdded
public PlanNode getAllAdded(ConnectionsGroup connectionsGroup, Resource[] dataGraph, PlanNodeWrapper planNodeWrapper)
Description copied from class:Path
Get all values added in this transaction.- Specified by:
getAllAdded
in classPath
-
getAnyAdded
public PlanNode getAnyAdded(ConnectionsGroup connectionsGroup, Resource[] dataGraph, PlanNodeWrapper planNodeWrapper)
Description copied from class:Path
Get values added in this transaction. Validation performance may improve if more value are retrieved. Validation correctness and completeness will not be affected if fewer values are retrieved, or if no items are retrieved.- Specified by:
getAnyAdded
in classPath
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toModel
public void toModel(Resource subject, IRI predicate, Model model, java.util.Set<Resource> cycleDetection)
-
getTargetQueryFragment
public SparqlFragment getTargetQueryFragment(StatementMatcher.Variable subject, StatementMatcher.Variable object, RdfsSubClassOfReasoner rdfsSubClassOfReasoner, StatementMatcher.StableRandomVariableProvider stableRandomVariableProvider, java.util.Set<java.lang.String> inheritedVarNames)
-
isSupported
public boolean isSupported()
- Specified by:
isSupported
in classPath
-
toSparqlPathString
public java.lang.String toSparqlPathString()
- Specified by:
toSparqlPathString
in classPath
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-