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

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

public class RDF_Individual
extends RDF_Resource
implements IRDF_Individual


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_Individual(java.lang.String uri, IRDF_Model model)
           
 
Method Summary
 java.util.Collection<IRDF_Resource> getAllTypes(IRDF_Model model)
          This dummy method is overriden by methods in subclasses(RDF_Class,RDF_Property e.t.c) Parameter RDF_Model is needed in order for the types to be retrieved from the model
 java.util.Collection<IRDF_Literal> getComments()
          Retrieves all the Comments defined for this RDF_Resource
 java.util.Collection<IRDF_Comment> getCommentsTriples()
          Retrieves all the RDF_Comment triples defined for this RDF_Resource
 java.util.Collection<IRDF_Resource> getIsDefinedBys()
          Retrieves all the isDefinedBys defined for this RDF_Resource
 java.util.Collection<IRDF_IsDefinedBy> getIsDefinedBysTriples()
          Retrieves all the RDF_IsDefinedBy triples defined for this RDF_Resource
 java.util.Collection<IRDF_Literal> getLabels()
          Retrieves all the labels defined for this RDF_Resource
 java.util.Collection<IRDF_Label> getLabelsTriples()
          Retrieves all the RDF_Label triples defined for this RDF_Resource
 java.util.Collection<IRDF_PropertyInstance> getObjectOf(IRDF_Model model, java.lang.String URI)
          This method retrieves a certain RDF_PropertyInstance,this ClassInstance is object of.
 org.apache.commons.collections.MultiMap getObjectOfs(IRDF_Model model)
          This method retrieves the property instances this Class Instance is objectOf
 java.util.Collection<IRDF_Resource> getSeeAlsos()
          Adds an label for this IRDF_Resource
 java.util.Collection<IRDF_SeeAlso> getSeeAlsosTriples()
          Retrieves all the RDF_SeeAlso triples defined for this RDF_Resource
 java.util.Collection getSubjectOf(IRDF_Model model, java.lang.String URI)
          This method retrieves a certain RDF_PropertyInstance,this ClassInstance is subject of.
 org.apache.commons.collections.MultiMap getSubjectOfs(IRDF_Model model)
          This method retrieves the property instances this Class Instance is subjectOf
 java.util.Collection<IRDF_Resource> getTypes()
          Retrieves the types defined for this resource from the model (Depending to the resource its type may be a metaclass, a class or a property)
 java.util.Collection<IRDF_Type> getTypesTriples()
          Retrieves the type triples defined for this resource from the model
 
Methods inherited from class gr.forth.ics.rdfsuite.swkm.model.impl.RDF_Resource
getColumn, getLine, getLocalName, getNamespace, getNamespacePart, 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
getColumn, getLine, getLocalName, getNamespace, getNamespacePart, getURI, hasTypeOf, setColumn, setLine, setLocalName, setNamespace, setURI, toString
 

Field Detail

log

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

RDF_Individual

public RDF_Individual(java.lang.String uri,
                      IRDF_Model model)
Parameters:
uri -
namespace -
Method Detail

getObjectOf

public java.util.Collection<IRDF_PropertyInstance> getObjectOf(IRDF_Model model,
                                                               java.lang.String URI)
Description copied from interface: IRDF_Individual
This method retrieves a certain RDF_PropertyInstance,this ClassInstance is object of. If this class instance is object of more than one property instances with the same uri it returns all of them

Specified by:
getObjectOf in interface IRDF_Individual
URI - The URI of the property instance we want to retrieve
Returns:
A Map object with key the property instance uri. Each property instance has the given uri

getObjectOfs

public org.apache.commons.collections.MultiMap getObjectOfs(IRDF_Model model)
Description copied from interface: IRDF_Individual
This method retrieves the property instances this Class Instance is objectOf

Specified by:
getObjectOfs in interface IRDF_Individual
Returns:
A Map object. Key is the property instance uri

getSubjectOf

public java.util.Collection getSubjectOf(IRDF_Model model,
                                         java.lang.String URI)
Description copied from interface: IRDF_Individual
This method retrieves a certain RDF_PropertyInstance,this ClassInstance is subject of. If this class instance is subject of more than one property instances with the same uri it returns all of them

Specified by:
getSubjectOf in interface IRDF_Individual
URI - The URI of the property instance we want to retrieve
Returns:
A Map object. The key of the map is the property instance uri

getSubjectOfs

public org.apache.commons.collections.MultiMap getSubjectOfs(IRDF_Model model)
Description copied from interface: IRDF_Individual
This method retrieves the property instances this Class Instance is subjectOf

Specified by:
getSubjectOfs in interface IRDF_Individual
Returns:
A Map object

getAllTypes

public java.util.Collection<IRDF_Resource> getAllTypes(IRDF_Model model)
Description copied from class: RDF_Resource
This dummy method is overriden by methods in subclasses(RDF_Class,RDF_Property e.t.c) Parameter RDF_Model is needed in order for the types to be retrieved from the model

Specified by:
getAllTypes in interface IRDF_Resource
Overrides:
getAllTypes in class RDF_Resource
Returns:

getTypes

public java.util.Collection<IRDF_Resource> getTypes()
Description copied from interface: IRDF_Resource
Retrieves the types defined for this resource from the model (Depending to the resource its type may be a metaclass, a class or a property)

Specified by:
getTypes in interface IRDF_Resource
Overrides:
getTypes in class RDF_Resource
Returns:
A Collection object

getTypesTriples

public java.util.Collection<IRDF_Type> getTypesTriples()
Description copied from interface: IRDF_Resource
Retrieves the type triples defined for this resource from the model

Specified by:
getTypesTriples in interface IRDF_Resource
Overrides:
getTypesTriples in class RDF_Resource
Returns:
A Collection object

getComments

public java.util.Collection<IRDF_Literal> getComments()
Description copied from interface: IRDF_Resource
Retrieves all the Comments defined for this RDF_Resource

Specified by:
getComments in interface IRDF_Resource
Overrides:
getComments in class RDF_Resource
Returns:
A Collection object

getCommentsTriples

public java.util.Collection<IRDF_Comment> getCommentsTriples()
Description copied from interface: IRDF_Resource
Retrieves all the RDF_Comment triples defined for this RDF_Resource

Specified by:
getCommentsTriples in interface IRDF_Resource
Overrides:
getCommentsTriples in class RDF_Resource
Returns:
A Collection object

getIsDefinedBys

public java.util.Collection<IRDF_Resource> getIsDefinedBys()
Description copied from interface: IRDF_Resource
Retrieves all the isDefinedBys defined for this RDF_Resource

Specified by:
getIsDefinedBys in interface IRDF_Resource
Overrides:
getIsDefinedBys in class RDF_Resource
Returns:
A Collection object

getIsDefinedBysTriples

public java.util.Collection<IRDF_IsDefinedBy> getIsDefinedBysTriples()
Description copied from interface: IRDF_Resource
Retrieves all the RDF_IsDefinedBy triples defined for this RDF_Resource

Specified by:
getIsDefinedBysTriples in interface IRDF_Resource
Overrides:
getIsDefinedBysTriples in class RDF_Resource
Returns:
A Collection object

getLabels

public java.util.Collection<IRDF_Literal> getLabels()
Description copied from interface: IRDF_Resource
Retrieves all the labels defined for this RDF_Resource

Specified by:
getLabels in interface IRDF_Resource
Overrides:
getLabels in class RDF_Resource
Returns:
A Collection object

getLabelsTriples

public java.util.Collection<IRDF_Label> getLabelsTriples()
Description copied from interface: IRDF_Resource
Retrieves all the RDF_Label triples defined for this RDF_Resource

Specified by:
getLabelsTriples in interface IRDF_Resource
Overrides:
getLabelsTriples in class RDF_Resource
Returns:
A Collection object

getSeeAlsos

public java.util.Collection<IRDF_Resource> getSeeAlsos()
Description copied from interface: IRDF_Resource
Adds an label for this IRDF_Resource

Specified by:
getSeeAlsos in interface IRDF_Resource
Overrides:
getSeeAlsos in class RDF_Resource
Returns:
A Collection object

getSeeAlsosTriples

public java.util.Collection<IRDF_SeeAlso> getSeeAlsosTriples()
Description copied from interface: IRDF_Resource
Retrieves all the RDF_SeeAlso triples defined for this RDF_Resource

Specified by:
getSeeAlsosTriples in interface IRDF_Resource
Overrides:
getSeeAlsosTriples in class RDF_Resource
Returns:
A Collection object