gr.forth.ics.rdfsuite.swkm.model
Interface IRDF_Schema_Resource<TYPE extends IRDF_Schema_Resource,TRIPLE extends IRDF_Subsumption>

All Superinterfaces:
Identifiable, IRDF_Resource
All Known Subinterfaces:
IRDF_Class, IRDF_MetaClass, IRDF_Property
All Known Implementing Classes:
RDF_Class, RDF_MetaClass, RDF_Property, RDF_Schema_Resource

public interface IRDF_Schema_Resource<TYPE extends IRDF_Schema_Resource,TRIPLE extends IRDF_Subsumption>
extends IRDF_Resource


Method Summary
 void addDirectPropagatedLabel(IntervalLabel newLabel)
           
 void addDirectPropagatedLabels(java.util.TreeSet<IntervalLabel> newLabels)
          Adds a set of propagated labels from direct non-spanning tree edge to the resource's collection of propagated labels.
 void addIndirectPropagatedLabel(IntervalLabel newLabel)
           
 void addIndirectPropagatedLabels(java.util.TreeSet<IntervalLabel> newLabels)
          Adds a set of propagated labels from indirect non-spanning tree edge to the resource's collection of propagated labels.
 boolean contains(IntervalLabel interval)
           
 java.util.Collection<TYPE> getAncestors()
           
 java.util.Collection<TYPE> getDescendants()
           
 java.util.Collection<TYPE> getDirectAncestors()
           
 java.util.Collection<TYPE> getDirectDescendants()
           
 java.util.TreeSet<IntervalLabel> getDirectPropagatedLabels()
          Retrieves the propagated labels of this resource from direct non-spanning tree edge
 boolean getHasUnstoredLabels()
          This methods opines whether this schema resource has unstored labels that need to be stored regardless of if the resource is already stored or not
 java.util.TreeSet<IntervalLabel> getIndirectPropagatedLabels()
          Retrieves the propagated labels of this resource from indirect non-spanning tree edge
 IntervalLabel getTree_label()
           
 boolean isAncestorOf(TYPE that)
           
 boolean isDescendantOf(TYPE that)
           
 void setDirectPropagatedLabels(java.util.TreeSet<IntervalLabel> label)
          Sets the resource's proppagated labels from direct non-spanning tree edge
 void setHasUnstoredLabels(boolean hasUnstoredLabels)
          This method sets whether the schema resource has propagated labels that are not already stored
 void setIndirectPropagatedLabels(java.util.TreeSet<IntervalLabel> label)
          Sets the resource's proppagated labels from indirect non-spanning tree edge
 void setTree_label(IntervalLabel tree_label)
          Sets the tree label of this resource
 void updateIndirectPropagatedLabel(IntervalLabel oldLabel, IntervalLabel newLabel)
           
 
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
 

Method Detail

setTree_label

void setTree_label(IntervalLabel tree_label)
Sets the tree label of this resource

Parameters:
tree_label - An IntervalLabel object

getDirectPropagatedLabels

java.util.TreeSet<IntervalLabel> getDirectPropagatedLabels()
Retrieves the propagated labels of this resource from direct non-spanning tree edge

Returns:
A TreeSet object

setDirectPropagatedLabels

void setDirectPropagatedLabels(java.util.TreeSet<IntervalLabel> label)
Sets the resource's proppagated labels from direct non-spanning tree edge

Parameters:
label - An Collection object

addDirectPropagatedLabels

void addDirectPropagatedLabels(java.util.TreeSet<IntervalLabel> newLabels)
Adds a set of propagated labels from direct non-spanning tree edge to the resource's collection of propagated labels. If some of the new nodes can be absorbed or compressed, they are. This method should be called once after a modification of a hierarchy. During a hierarchy modification, there might be several labels that should be propagated to the node. These should be all collected in one set and passed as argument to this method. newLabels should be the set of all new labels that should be propagated to the node

Parameters:
newLabels - the set of labels that shoud be propagated

getIndirectPropagatedLabels

java.util.TreeSet<IntervalLabel> getIndirectPropagatedLabels()
Retrieves the propagated labels of this resource from indirect non-spanning tree edge

Returns:
A TreeSet object

setIndirectPropagatedLabels

void setIndirectPropagatedLabels(java.util.TreeSet<IntervalLabel> label)
Sets the resource's proppagated labels from indirect non-spanning tree edge

Parameters:
label - An Collection object

addIndirectPropagatedLabels

void addIndirectPropagatedLabels(java.util.TreeSet<IntervalLabel> newLabels)
Adds a set of propagated labels from indirect non-spanning tree edge to the resource's collection of propagated labels. If some of the new nodes can be absorbed or compressed, they are. This method should be called once after a modification of a hierarchy. During a hierarchy modification, there might be several labels that should be propagated to the node. These should be all collected in one set and passed as argument to this method. newLabels should be the set of all new labels that should be propagated to the node

Parameters:
newLabels - the set of labels that shoud be propagated

addIndirectPropagatedLabel

void addIndirectPropagatedLabel(IntervalLabel newLabel)

addDirectPropagatedLabel

void addDirectPropagatedLabel(IntervalLabel newLabel)

updateIndirectPropagatedLabel

void updateIndirectPropagatedLabel(IntervalLabel oldLabel,
                                   IntervalLabel newLabel)

contains

boolean contains(IntervalLabel interval)
Returns:
true, if the given interval is contained in one of the resource's interval, false otherwise

getTree_label

IntervalLabel getTree_label()
Returns:
An IntervalLabel object representing the tree label of this resource

getDirectDescendants

java.util.Collection<TYPE> getDirectDescendants()
Returns:
a collection of the children (direct descendants) of this node

getDirectAncestors

java.util.Collection<TYPE> getDirectAncestors()
Returns:
a collection of the fathers (direct ancestors) of this node

getDescendants

java.util.Collection<TYPE> getDescendants()
Returns:
The descendants of this schema resource. The result does not contain the resource itself

getAncestors

java.util.Collection<TYPE> getAncestors()
Returns:
The Ancestors of this schema resource. The result does not contain the resource itself

isDescendantOf

boolean isDescendantOf(TYPE that)
                       throws gr.forth.ics.rdfsuite.services.exceptions.LabelCreationException
Throws:
gr.forth.ics.rdfsuite.services.exceptions.LabelCreationException

isAncestorOf

boolean isAncestorOf(TYPE that)
                     throws gr.forth.ics.rdfsuite.services.exceptions.LabelCreationException
Throws:
gr.forth.ics.rdfsuite.services.exceptions.LabelCreationException

getHasUnstoredLabels

boolean getHasUnstoredLabels()
This methods opines whether this schema resource has unstored labels that need to be stored regardless of if the resource is already stored or not

Returns:

setHasUnstoredLabels

void setHasUnstoredLabels(boolean hasUnstoredLabels)
This method sets whether the schema resource has propagated labels that are not already stored

Parameters:
hasUnstoredLabels -