gr.forth.ics.rdfsuite.swkm.model
Interface IRDF_Triple

All Known Subinterfaces:
IRDF_Comment, IRDF_Domain, IRDF_IsDefinedBy, IRDF_Label, IRDF_Member, IRDF_Object, IRDF_Predicate, IRDF_PropertyInstance, IRDF_Range, IRDF_SeeAlso, IRDF_SubClass, IRDF_Subject, IRDF_SubProperty, IRDF_Subsumption, IRDF_Type
All Known Implementing Classes:
RDF_Comment, RDF_Domain, RDF_IsDefinedBy, RDF_Label, RDF_Member, RDF_Object, RDF_Predicate, RDF_PropertyInstance, RDF_Range, RDF_SeeAlso, RDF_SubClass, RDF_Subject, RDF_SubProperty, RDF_Subsumption, RDF_Triple, RDF_Type

public interface IRDF_Triple


Method Summary
 void addGraphspace(IRDF_Graphspace graphspace)
          Correlates a graphspace to the triple
 IRDF_Graphspace getGraphspace(java.lang.String graphspace_uri)
          Retrieves one of the graphspaces this triple is correlated with
 java.util.HashMap<java.lang.String,IRDF_Graphspace> getGraphspaces()
          Retrieved the graphspaces this triple is correlated with
 IRDF_Namespace getNamespace()
          Retrieves the namespace this triples is defined in
 java.lang.Object getObject()
          The object of the triple
 IRDF_Property getPredicate()
          The predicte of the triple
 IRDF_Resource getSubject()
          The subject of the triple
 boolean isInferredTriple()
           
 void setGraphspaces(java.util.HashMap<java.lang.String,IRDF_Graphspace> graphspaces)
          Sets the graphspaces this triple is correlated with
 void setInferredTriple(boolean inferred)
          Sets whether this triple is infered and not present in the original file
 void setNamespace(IRDF_Namespace n)
          Sets the namespace this triple is defined in
 void setObject(java.lang.Object object)
          The object of the triple
 void setPredicate(IRDF_Property predicate)
          Set the predicte of the triple
 void setSubject(IRDF_Resource subject)
          The subject of the triple
 

Method Detail

getSubject

IRDF_Resource getSubject()
The subject of the triple

Returns:
An IRDF_Resource object

setSubject

void setSubject(IRDF_Resource subject)
The subject of the triple

Parameters:
subject - An IRDF_Resource object

getPredicate

IRDF_Property getPredicate()
The predicte of the triple

Returns:
A String representation of the predicate

setPredicate

void setPredicate(IRDF_Property predicate)
Set the predicte of the triple

Parameters:
A - String representation of the predicate

getObject

java.lang.Object getObject()
The object of the triple

Returns:
An IRDF_Resource or IRDF_Literal object

setObject

void setObject(java.lang.Object object)
The object of the triple

Parameters:
object - An IRDF_Resource or IRDF_Literal object

getGraphspaces

java.util.HashMap<java.lang.String,IRDF_Graphspace> getGraphspaces()
Retrieved the graphspaces this triple is correlated with

Returns:
A HashMap object

setGraphspaces

void setGraphspaces(java.util.HashMap<java.lang.String,IRDF_Graphspace> graphspaces)
Sets the graphspaces this triple is correlated with

Parameters:
graphspaces - A HashMap

addGraphspace

void addGraphspace(IRDF_Graphspace graphspace)
Correlates a graphspace to the triple

Parameters:
graphspace - An IRDF_Graphspace object

getGraphspace

IRDF_Graphspace getGraphspace(java.lang.String graphspace_uri)
Retrieves one of the graphspaces this triple is correlated with

Parameters:
graphspace_uri - A String
Returns:
An IRDF_Graphspace object

isInferredTriple

boolean isInferredTriple()
Returns:
true if this triple is inferred and not present in the original file else false

setInferredTriple

void setInferredTriple(boolean inferred)
Sets whether this triple is infered and not present in the original file

Parameters:
inferred - true if this triple is inferred and not present in the original file else false

getNamespace

IRDF_Namespace getNamespace()
Retrieves the namespace this triples is defined in

Returns:
An IRDF_Namespace object

setNamespace

void setNamespace(IRDF_Namespace n)
Sets the namespace this triple is defined in

Parameters:
n -