de.hedenus.rdf
Class RDFNode

java.lang.Object
  extended by de.hedenus.rdf.RDFNode
All Implemented Interfaces:
GraphElement, Node, java.io.Serializable, java.lang.Comparable
Direct Known Subclasses:
BlankNode, Literal, URIRefNode

public abstract class RDFNode
extends java.lang.Object
implements Node, java.io.Serializable, java.lang.Comparable

Base type for resources, literals and blank nodes.

Author:
Michael Hedenus
See Also:
Serialized Form

Constructor Summary
protected RDFNode(java.lang.String id)
           
 
Method Summary
abstract  java.lang.String about()
          Returns the this node's subject identifier.
 int compareTo(java.lang.Object obj)
          Two blank nodes are equal if their ids are equal.
 boolean equals(java.lang.Object obj)
           
 java.lang.String id()
          The graph element's unique identifier.
abstract  java.lang.String label()
          Returns a label used to visually tag the graph element.
 java.lang.String toString()
          Returns label().
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RDFNode

protected RDFNode(java.lang.String id)
Method Detail

id

public java.lang.String id()
Description copied from interface: GraphElement
The graph element's unique identifier.

Specified by:
id in interface GraphElement

toString

public java.lang.String toString()
Returns label().

Overrides:
toString in class java.lang.Object

label

public abstract java.lang.String label()
Description copied from interface: GraphElement
Returns a label used to visually tag the graph element.

Specified by:
label in interface GraphElement

about

public abstract java.lang.String about()
Returns the this node's subject identifier.


equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

compareTo

public int compareTo(java.lang.Object obj)
Two blank nodes are equal if their ids are equal.

Specified by:
compareTo in interface java.lang.Comparable