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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<Edge>
getEdges()
Returns the edges of the path.Value
getEnd()
Returns the end node of the path.BindingSet
getPathEndBindings()
Returns variable bindings for the end pattern of the path, if existsBindingSet
getPathStartBindings()
Returns variable bindings for the start pattern of the path, if existsValue
getStart()
Returns the start node of the path.
-
-
-
Method Detail
-
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
java.util.List<Edge> 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
-
-