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

java.lang.Object
  extended by gr.forth.ics.rdfsuite.swkm.model.impl.RDF_Resource
      extended by gr.forth.ics.rdfsuite.swkm.model.impl.RDF_Container
All Implemented Interfaces:
Identifiable, IRDF_Container, IRDF_Resource, java.io.Serializable

public class RDF_Container
extends RDF_Resource
implements IRDF_Container, java.io.Serializable

See Also:
Serialized Form

Field Summary
static int ALTERNATIVE
           
static int BAG
           
protected static org.apache.log4j.Logger log
           
static int SEQUENCE
           
 
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_Container(java.lang.String uri, int kind, IRDF_Model model)
           
 
Method Summary
 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
 int getKind()
          This method retrieves the kind of the Container
 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.lang.Object getMember(java.lang.String member_uri)
          This method retrieves the member of the Container with the given URI
 java.util.Collection<IRDF_Resource> getMembers()
          Retrieves the members of this container
 java.util.Collection<IRDF_Member> getMembersTriples()
          Retrieves the member triples of this container
 IRDF_Member getMemberTriple(java.lang.String member_uri)
          This method retrieves the member triple of the Container with the given URI
 IRDF_Model getModel()
           
 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<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
 boolean hasMember(java.lang.String member_uri)
          This method opines whether the Resource with the given uri is a member of the Container
 boolean isAlternative()
          This method opines whether the Container represents an Alternative
 boolean isBag()
          This method opines whether the Container represents a Bag
 boolean isSequence()
          This method opines whether the Container represents a Sequence
 void setKind(int kind)
          This method sets the kind of the Container
 
Methods inherited from class gr.forth.ics.rdfsuite.swkm.model.impl.RDF_Resource
getAllTypes, 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
getAllTypes, getColumn, getLine, getLocalName, getNamespace, getNamespacePart, getURI, hasTypeOf, setColumn, setLine, setLocalName, setNamespace, setURI, toString
 

Field Detail

BAG

public static final int BAG
See Also:
Constant Field Values

SEQUENCE

public static final int SEQUENCE
See Also:
Constant Field Values

ALTERNATIVE

public static final int ALTERNATIVE
See Also:
Constant Field Values

log

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

RDF_Container

public RDF_Container(java.lang.String uri,
                     int kind,
                     IRDF_Model model)
Parameters:
uri -
Method Detail

getKind

public int getKind()
Description copied from interface: IRDF_Container
This method retrieves the kind of the Container

Specified by:
getKind in interface IRDF_Container
Returns:
The type of the Container,either 0 for "BAG", 1 for "SEQUENCE" or 2 for "ALTERNATIVE"

getMember

public java.lang.Object getMember(java.lang.String member_uri)
Description copied from interface: IRDF_Container
This method retrieves the member of the Container with the given URI

Specified by:
getMember in interface IRDF_Container
Parameters:
member_uri - The URI of the member of the Container that is looked for
Returns:
The Resource(member) that is looked for

getMemberTriple

public IRDF_Member getMemberTriple(java.lang.String member_uri)
Description copied from interface: IRDF_Container
This method retrieves the member triple of the Container with the given URI

Specified by:
getMemberTriple in interface IRDF_Container
Parameters:
member_uri - The URI of the member of the Container that is looked for
Returns:
An IRDF_Member object

getMembers

public java.util.Collection<IRDF_Resource> getMembers()
Description copied from interface: IRDF_Container
Retrieves the members of this container

Specified by:
getMembers in interface IRDF_Container
Returns:
A Collection object

getMembersTriples

public java.util.Collection<IRDF_Member> getMembersTriples()
Description copied from interface: IRDF_Container
Retrieves the member triples of this container

Specified by:
getMembersTriples in interface IRDF_Container
Returns:
A Collection object

hasMember

public boolean hasMember(java.lang.String member_uri)
Description copied from interface: IRDF_Container
This method opines whether the Resource with the given uri is a member of the Container

Specified by:
hasMember in interface IRDF_Container
Parameters:
member_uri - The uri of the Resource that is looked for in the Container
Returns:
true if the given resource is a member of the Container

isAlternative

public boolean isAlternative()
Description copied from interface: IRDF_Container
This method opines whether the Container represents an Alternative

Specified by:
isAlternative in interface IRDF_Container
Returns:
true if the Container represents a Alternative

isBag

public boolean isBag()
Description copied from interface: IRDF_Container
This method opines whether the Container represents a Bag

Specified by:
isBag in interface IRDF_Container
Returns:
true if the Container represents a Bag

isSequence

public boolean isSequence()
Description copied from interface: IRDF_Container
This method opines whether the Container represents a Sequence

Specified by:
isSequence in interface IRDF_Container
Returns:
true if the Container represents a Sequence

setKind

public void setKind(int kind)
Description copied from interface: IRDF_Container
This method sets the kind of the Container

Specified by:
setKind in interface IRDF_Container
Parameters:
kind - The kind to set the Container,either 0 for"BAG",1 for "SEQUENCE" or 2 for "ALTERNATIVE"

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

getModel

public IRDF_Model getModel()
Specified by:
getModel in interface IRDF_Container