|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 Triple
SubjectNode
which is either a BlankNode
or
URIReference
public PredicateNode getPredicate()
Triple
getPredicate
in interface Triple
PredicateNode
which is a URIReference
public ObjectNode getObject()
Triple
getObject
in interface Triple
ObjectNode
which is either a BlankNode
,
URIReference
or Literal
public boolean isGrounded()
Triple
isGrounded
in interface Triple
public boolean equals(Object obj)
equals
in interface Triple
equals
in class Object
obj
- the reference object with which to compare.
public int hashCode()
hashCode
in interface Triple
hashCode
in class Object
public 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 |