com.hp.hpl.jena.sparql.core
Class TriplePath

java.lang.Object
  extended by com.hp.hpl.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 Summary
TriplePath(com.hp.hpl.jena.graph.Node s, Path path, com.hp.hpl.jena.graph.Node o)
           
TriplePath(com.hp.hpl.jena.graph.Triple triple)
           
 
Method Summary
 com.hp.hpl.jena.graph.Triple asTriple()
          Return as a triple when the path is a simple, 1-link, else return null
 boolean equals(Object other)
           
 com.hp.hpl.jena.graph.Node getObject()
           
 Path getPath()
           
 com.hp.hpl.jena.graph.Node getPredicate()
           
 com.hp.hpl.jena.graph.Node getSubject()
           
 int hashCode()
           
 boolean isTriple()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TriplePath

public TriplePath(com.hp.hpl.jena.graph.Node s,
                  Path path,
                  com.hp.hpl.jena.graph.Node o)

TriplePath

public TriplePath(com.hp.hpl.jena.graph.Triple triple)
Method Detail

getSubject

public com.hp.hpl.jena.graph.Node getSubject()

getPath

public Path getPath()

getPredicate

public com.hp.hpl.jena.graph.Node getPredicate()

getObject

public com.hp.hpl.jena.graph.Node getObject()

isTriple

public boolean isTriple()

asTriple

public com.hp.hpl.jena.graph.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


Licenced under the Apache License, Version 2.0