|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgr.forth.ics.rdfsuite.swkm.model.impl.RDF_Resource
gr.forth.ics.rdfsuite.swkm.model.impl.RDF_Schema_Resource<TYPE,TRIPLE>
public abstract class RDF_Schema_Resource<TYPE extends IRDF_Schema_Resource,TRIPLE extends IRDF_Subsumption>
| Field Summary | |
|---|---|
protected java.util.TreeSet<IntervalLabel> |
direct_propagated_labels
|
protected java.util.TreeSet<IntervalLabel> |
indirect_propagated_labels
|
protected java.util.HashSet<IntervalLabel> |
propLabelsToBeAdded
|
protected java.util.HashSet<IntervalLabel> |
propLabelsToBeRemoved
|
protected IntervalLabel |
tree_label
|
| Fields inherited from class gr.forth.ics.rdfsuite.swkm.model.impl.RDF_Resource |
|---|
column, comments, isDefinedBys, labels, line, local_name, log, namespace, seeAlsos, types, uri |
| Constructor Summary | |
|---|---|
RDF_Schema_Resource(java.lang.String uri,
IRDF_Namespace namespace)
|
|
| Method Summary | |
|---|---|
void |
addDirectPropagatedLabel(IntervalLabel newLabel)
|
void |
addDirectPropagatedLabels(java.util.TreeSet<IntervalLabel> newLabels)
Adds a set of propagated labels to the resource's collection of propagated labels. |
void |
addIndirectPropagatedLabel(IntervalLabel newLabel)
|
void |
addIndirectPropagatedLabels(java.util.TreeSet<IntervalLabel> newLabels)
Not needed Adds a set of propagated labels to the resource's collection of propagated labels. |
int |
compareTo(java.lang.Object other)
|
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 |
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 |
protected abstract java.util.Collection<? extends IRDF_Subsumption> |
getSubsumptionTriples(boolean upward)
|
IntervalLabel |
getTree_label()
|
void |
printLabels()
|
void |
setDirectPropagatedLabels(java.util.TreeSet<IntervalLabel> labels)
Sets the resource's proppagated labels. |
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> labels)
Sets the resource's proppagated labels. |
void |
setTree_label(IntervalLabel tree_label)
Sets the tree label of this resource |
void |
updateIndirectPropagatedLabel(IntervalLabel oldLabel,
IntervalLabel newLabel)
|
| 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_Schema_Resource |
|---|
isAncestorOf, isDescendantOf |
| 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 |
|---|
protected java.util.TreeSet<IntervalLabel> direct_propagated_labels
protected java.util.TreeSet<IntervalLabel> indirect_propagated_labels
protected IntervalLabel tree_label
protected java.util.HashSet<IntervalLabel> propLabelsToBeAdded
protected java.util.HashSet<IntervalLabel> propLabelsToBeRemoved
| Constructor Detail |
|---|
public RDF_Schema_Resource(java.lang.String uri,
IRDF_Namespace namespace)
| Method Detail |
|---|
public void setTree_label(IntervalLabel tree_label)
setTree_label in interface IRDF_Schema_Resource<TYPE extends IRDF_Schema_Resource,TRIPLE extends IRDF_Subsumption>tree_label - An IntervalLabel objectpublic java.util.TreeSet<IntervalLabel> getDirectPropagatedLabels()
getDirectPropagatedLabels in interface IRDF_Schema_Resource<TYPE extends IRDF_Schema_Resource,TRIPLE extends IRDF_Subsumption>TreeSetpublic void setDirectPropagatedLabels(java.util.TreeSet<IntervalLabel> labels)
setDirectPropagatedLabels in interface IRDF_Schema_Resource<TYPE extends IRDF_Schema_Resource,TRIPLE extends IRDF_Subsumption>label - An Collectionpublic void addDirectPropagatedLabels(java.util.TreeSet<IntervalLabel> newLabels)
addDirectPropagatedLabels in interface IRDF_Schema_Resource<TYPE extends IRDF_Schema_Resource,TRIPLE extends IRDF_Subsumption>newLabels - the set of labels that shoud be propagatedpublic java.util.TreeSet<IntervalLabel> getIndirectPropagatedLabels()
getIndirectPropagatedLabels in interface IRDF_Schema_Resource<TYPE extends IRDF_Schema_Resource,TRIPLE extends IRDF_Subsumption>TreeSetpublic void setIndirectPropagatedLabels(java.util.TreeSet<IntervalLabel> labels)
setIndirectPropagatedLabels in interface IRDF_Schema_Resource<TYPE extends IRDF_Schema_Resource,TRIPLE extends IRDF_Subsumption>label - An Collectionpublic void addIndirectPropagatedLabels(java.util.TreeSet<IntervalLabel> newLabels)
addIndirectPropagatedLabels in interface IRDF_Schema_Resource<TYPE extends IRDF_Schema_Resource,TRIPLE extends IRDF_Subsumption>newLabels - the set of labels that shoud be propagatedpublic void addIndirectPropagatedLabel(IntervalLabel newLabel)
addIndirectPropagatedLabel in interface IRDF_Schema_Resource<TYPE extends IRDF_Schema_Resource,TRIPLE extends IRDF_Subsumption>public void addDirectPropagatedLabel(IntervalLabel newLabel)
addDirectPropagatedLabel in interface IRDF_Schema_Resource<TYPE extends IRDF_Schema_Resource,TRIPLE extends IRDF_Subsumption>
public void updateIndirectPropagatedLabel(IntervalLabel oldLabel,
IntervalLabel newLabel)
updateIndirectPropagatedLabel in interface IRDF_Schema_Resource<TYPE extends IRDF_Schema_Resource,TRIPLE extends IRDF_Subsumption>public boolean contains(IntervalLabel interval)
contains in interface IRDF_Schema_Resource<TYPE extends IRDF_Schema_Resource,TRIPLE extends IRDF_Subsumption>public IntervalLabel getTree_label()
getTree_label in interface IRDF_Schema_Resource<TYPE extends IRDF_Schema_Resource,TRIPLE extends IRDF_Subsumption>protected abstract java.util.Collection<? extends IRDF_Subsumption> getSubsumptionTriples(boolean upward)
public java.util.Collection<TYPE> getDirectDescendants()
getDirectDescendants in interface IRDF_Schema_Resource<TYPE extends IRDF_Schema_Resource,TRIPLE extends IRDF_Subsumption>public java.util.Collection<TYPE> getDirectAncestors()
getDirectAncestors in interface IRDF_Schema_Resource<TYPE extends IRDF_Schema_Resource,TRIPLE extends IRDF_Subsumption>public java.util.Collection<TYPE> getDescendants()
getDescendants in interface IRDF_Schema_Resource<TYPE extends IRDF_Schema_Resource,TRIPLE extends IRDF_Subsumption>public java.util.Collection<TYPE> getAncestors()
getAncestors in interface IRDF_Schema_Resource<TYPE extends IRDF_Schema_Resource,TRIPLE extends IRDF_Subsumption>public int compareTo(java.lang.Object other)
compareTo in interface java.lang.Comparablepublic void printLabels()
public boolean getHasUnstoredLabels()
getHasUnstoredLabels in interface IRDF_Schema_Resource<TYPE extends IRDF_Schema_Resource,TRIPLE extends IRDF_Subsumption>public void setHasUnstoredLabels(boolean hasUnstoredLabels)
setHasUnstoredLabels in interface IRDF_Schema_Resource<TYPE extends IRDF_Schema_Resource,TRIPLE extends IRDF_Subsumption>hasUnstoredLabels -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||