|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.nsdl.mptstore.rdf.Triple
public class Triple
An RDF triple, also known as a statement. A triple consists of exactly one subject, predicate, and object.
| Constructor Summary | |
|---|---|
Triple(SubjectNode subject,
PredicateNode predicate,
ObjectNode object)
Construct a Triple with the given components. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Tell whether the given object is equal to this triple. |
ObjectNode |
getObject()
Get the object of this triple. |
PredicateNode |
getPredicate()
Get the predicate of this triple. |
SubjectNode |
getSubject()
Get the subject of this triple. |
int |
hashCode()
Return a hash code for this triple. |
java.lang.String |
toString()
Get a string representation of this Triple, in N-Triples format. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Triple(SubjectNode subject,
PredicateNode predicate,
ObjectNode object)
Triple with the given components.
subject - The subject.predicate - The predicate.object - The object.| Method Detail |
|---|
public SubjectNode getSubject()
public PredicateNode getPredicate()
public ObjectNode getObject()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object to compare with this one.
public int hashCode()
Triple is the sum of the subject,
predicate, and object components.
hashCode in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||