Package org.apache.jena.sparql.core
Class TriplePath
- java.lang.Object
-
- org.apache.jena.sparql.core.TriplePath
-
public final class TriplePath extends java.lang.ObjectLike 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
Constructors Constructor Description TriplePath(Node s, Path path, Node o)TriplePath(Triple triple)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TripleasTriple()Return as a triple when the path is a simple, 1-link, else return nullbooleanequals(java.lang.Object other)NodegetObject()PathgetPath()NodegetPredicate()NodegetSubject()inthashCode()booleanisTriple()java.lang.StringtoString()
-
-
-
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:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-