Class TriplePath

java.lang.Object
org.apache.jena.sparql.core.TriplePath

public final class TriplePath extends Object
Like a triple except it can be a path or a triple. The triple can have a variable predicate. There may be no "path".
  • Constructor Details

    • TriplePath

      public TriplePath(Node s, Path path, Node o)
    • TriplePath

      public TriplePath(Triple triple)
  • Method Details

    • getSubject

      public Node getSubject()
    • getPath

      public Path getPath()
    • getPredicate

      public Node getPredicate()
    • getObject

      public Node getObject()
    • isTriple

      public boolean isTriple()
    • asTriple

      public Triple asTriple()
      Return as a triple when the path is a simple, 1-link, else return null
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object