|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jrdf.graph.AbstractTriple
public class AbstractTriple
A base implementation of an RDF Triple.
| Field Summary | |
|---|---|
protected ObjectNode |
objectNode
The internal representation of the triple - object node. |
protected PredicateNode |
predicateNode
The internal representation of the triple - predicate node. |
protected SubjectNode |
subjectNode
The internal representation of the triple - subject node. |
| Constructor Summary | |
|---|---|
AbstractTriple()
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one. |
ObjectNode |
getObject()
Obtains the object of this statement. |
PredicateNode |
getPredicate()
Obtains the predicate of this statement. |
SubjectNode |
getSubject()
Obtains the subject of this statement. |
int |
hashCode()
Returns a hash-code value for this triple. |
boolean |
isGrounded()
Returns true if the subject and object nodes are not blank nodes. |
String |
toString()
Provide a legible representation of a triple. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected SubjectNode subjectNode
protected PredicateNode predicateNode
protected ObjectNode objectNode
| Constructor Detail |
|---|
public AbstractTriple()
| Method Detail |
|---|
public SubjectNode getSubject()
Triple
getSubject in interface TripleSubjectNode which is either a BlankNode or
URIReferencepublic PredicateNode getPredicate()
Triple
getPredicate in interface TriplePredicateNode which is a URIReferencepublic ObjectNode getObject()
Triple
getObject in interface TripleObjectNode which is either a BlankNode,
URIReference or Literalpublic boolean isGrounded()
Triple
isGrounded in interface Triplepublic boolean equals(Object obj)
equals in interface Tripleequals in class Objectobj - the reference object with which to compare.
public int hashCode()
hashCode in interface TriplehashCode in class Objectpublic String toString()
Currently, square brackets with toString values of the parts of the triple.
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||