gr.forth.ics.rdfsuite.swkm.model.impl
Class RDF_Statement

java.lang.Object
  extended by gr.forth.ics.rdfsuite.swkm.model.impl.RDF_Resource
      extended by gr.forth.ics.rdfsuite.swkm.model.impl.RDF_Statement
All Implemented Interfaces:
Identifiable, IRDF_Resource, IRDF_Statement

public class RDF_Statement
extends RDF_Resource
implements IRDF_Statement


Field Summary
protected static org.apache.log4j.Logger log
           
 
Fields inherited from class gr.forth.ics.rdfsuite.swkm.model.impl.RDF_Resource
column, comments, isDefinedBys, labels, line, local_name, namespace, seeAlsos, types, uri
 
Constructor Summary
RDF_Statement(java.lang.String uri, IRDF_Namespace namespace)
           
 
Method Summary
 java.lang.Object getObject()
          Retrieves object of this statement
 IRDF_Object getObjectTriple()
          Retrieves object triple for this statement
 IRDF_Property getPredicate()
          Retrieves the predicate of this statement
 IRDF_Predicate getPredicateTriple()
          Retrieves the predicate triple for this statement
 IRDF_Resource getSubject()
          Retrieves the subject of this statement
 IRDF_Subject getSubjectTriple()
          Retrieves the subject triple for this statement
 boolean valid()
          Returns true if all three (subject, predicate and object) are set (not null).
 
Methods inherited from class gr.forth.ics.rdfsuite.swkm.model.impl.RDF_Resource
getAllTypes, getColumn, getComments, getCommentsTriples, getIsDefinedBys, getIsDefinedBysTriples, getLabels, getLabelsTriples, getLine, getLocalName, getNamespace, getNamespacePart, getSeeAlsos, getSeeAlsosTriples, getTypes, getTypesTriples, getURI, hasTypeOf, setColumn, setLine, setLocalName, setNamespace, setURI, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface gr.forth.ics.rdfsuite.swkm.model.IRDF_Resource
getAllTypes, getColumn, getComments, getCommentsTriples, getIsDefinedBys, getIsDefinedBysTriples, getLabels, getLabelsTriples, getLine, getLocalName, getNamespace, getNamespacePart, getSeeAlsos, getSeeAlsosTriples, getTypes, getTypesTriples, getURI, hasTypeOf, setColumn, setLine, setLocalName, setNamespace, setURI, toString
 

Field Detail

log

protected static final org.apache.log4j.Logger log
Constructor Detail

RDF_Statement

public RDF_Statement(java.lang.String uri,
                     IRDF_Namespace namespace)
Parameters:
uri -
namespace -
Method Detail

getObject

public java.lang.Object getObject()
Description copied from interface: IRDF_Statement
Retrieves object of this statement

Specified by:
getObject in interface IRDF_Statement
Returns:
Either an IRDF_Resource or a RDF_Literal object.

getObjectTriple

public IRDF_Object getObjectTriple()
Description copied from interface: IRDF_Statement
Retrieves object triple for this statement

Specified by:
getObjectTriple in interface IRDF_Statement
Returns:
An IRDF_Object object. Its object is the predicate of the statement

getPredicate

public IRDF_Property getPredicate()
Description copied from interface: IRDF_Statement
Retrieves the predicate of this statement

Specified by:
getPredicate in interface IRDF_Statement
Returns:
An IRDF_Property object.

getPredicateTriple

public IRDF_Predicate getPredicateTriple()
Description copied from interface: IRDF_Statement
Retrieves the predicate triple for this statement

Specified by:
getPredicateTriple in interface IRDF_Statement
Returns:
An IRDF_Predicate object. Its object is the predicate of the statement

getSubject

public IRDF_Resource getSubject()
Description copied from interface: IRDF_Statement
Retrieves the subject of this statement

Specified by:
getSubject in interface IRDF_Statement
Returns:
An IRDF_Resource object.

getSubjectTriple

public IRDF_Subject getSubjectTriple()
Description copied from interface: IRDF_Statement
Retrieves the subject triple for this statement

Specified by:
getSubjectTriple in interface IRDF_Statement
Returns:
An IRDF_Subject object. Its object is the subject of the statement

valid

public boolean valid()
Description copied from interface: IRDF_Statement
Returns true if all three (subject, predicate and object) are set (not null).

Specified by:
valid in interface IRDF_Statement