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 Detail

      • getStart

        Value getStart()
        Returns the start node of the path. Equivalent to getEdges().get(0).getStart().
        Returns:
        the start node of the path
      • getEnd

        Value getEnd()
        Returns the end node of the path. Equivalent to getEdges().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