gr.forth.ics.rdfsuite.vrp.corevrp.parser
Class Triple

java.lang.Object
  extended by gr.forth.ics.rdfsuite.vrp.corevrp.parser.Triple

public class Triple
extends java.lang.Object

Represents an RDF triple/statement


Constructor Summary
Triple(java.lang.String pred, java.lang.String sub, RDF_Literal obj)
           
Triple(java.lang.String pred, java.lang.String sub, java.lang.String obj)
           
 
Method Summary
 boolean getIsObjectResource()
          Returns the type of the object.
 java.lang.Object getObject()
          Returns the object of the triple
 java.lang.String getPredicate()
          Returns the predicate of the triple
 java.lang.String getSubject()
          Returns the subject of the triple
 void setIsObjectResource(boolean isRes)
          Sets the type of the object.
 void setObject(RDF_Literal object)
          Sets the object of the triple, when object is literal
 void setObject(java.lang.String object)
          Sets the object of the triple, when object is resource
 void setPredicate(java.lang.String predicate)
          Sets the predicate of the triple
 void setSubject(java.lang.String subject)
          Sets the subject of the triple
 java.lang.String toString()
          Returns the String representaion of the triple.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Triple

public Triple(java.lang.String pred,
              java.lang.String sub,
              java.lang.String obj)

Triple

public Triple(java.lang.String pred,
              java.lang.String sub,
              RDF_Literal obj)
Method Detail

getPredicate

public java.lang.String getPredicate()
Returns the predicate of the triple


setPredicate

public void setPredicate(java.lang.String predicate)
Sets the predicate of the triple


getSubject

public java.lang.String getSubject()
Returns the subject of the triple


setSubject

public void setSubject(java.lang.String subject)
Sets the subject of the triple


getObject

public java.lang.Object getObject()
Returns the object of the triple


setObject

public void setObject(java.lang.String object)
Sets the object of the triple, when object is resource


setObject

public void setObject(RDF_Literal object)
Sets the object of the triple, when object is literal


getIsObjectResource

public boolean getIsObjectResource()
Returns the type of the object. True when the object is resource.


setIsObjectResource

public void setIsObjectResource(boolean isRes)
Sets the type of the object. True when the object is resource.


toString

public java.lang.String toString()
Returns the String representaion of the triple.

Overrides:
toString in class java.lang.Object