Class TriplePath


  • public final class TriplePath
    extends java.lang.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 Detail

      • TriplePath

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

        public TriplePath​(Triple triple)
    • Method Detail

      • 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 java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object