Package com.complexible.common.rdf.query
Interface Path
- All Known Implementing Classes:
ImmutablePath
public interface Path
Representation of the results of a path query. A path between two nodes is a sequence of edges but an edge is a set of bindings, not necessarily an RDF statement.
- Since:
- 5.0.4
- Version:
- 6.0
- Author:
- Evren Sirin
-
Method Summary
Modifier and TypeMethodDescriptiongetEdges()Returns the edges of the path.getEnd()Returns the end node of the path.Returns variable bindings for the end pattern of the path, if existsReturns variable bindings for the start pattern of the path, if existsgetStart()Returns the start node of the path.
-
Method Details
-
getStart
Value getStart()Returns the start node of the path. Equivalent togetEdges().get(0).getStart().- Returns:
- the start node of the path
-
getEnd
Value getEnd()Returns the end node of the path. Equivalent togetEdges().get(getEdge().size() - 1).getEnd().- Returns:
- the end node of the path
-
getEdges
Returns the edges of the path.- Returns:
- the edges of the path
-
getPathStartBindings
BindingSet getPathStartBindings()Returns variable bindings for the start pattern of the path, if exists- Returns:
- variable bindings for the start pattern of the path
-
getPathEndBindings
BindingSet getPathEndBindings()Returns variable bindings for the end pattern of the path, if exists- Returns:
- variable bindings for the end pattern of the path
-