|
||||||||||
| 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<IRDF_Class,IRDF_SubClass>
gr.forth.ics.rdfsuite.swkm.model.impl.RDF_Class
public class RDF_Class
| Field Summary | |
|---|---|
protected static org.apache.log4j.Logger |
log
|
| Fields inherited from class gr.forth.ics.rdfsuite.swkm.model.impl.RDF_Schema_Resource |
|---|
direct_propagated_labels, indirect_propagated_labels, propLabelsToBeAdded, propLabelsToBeRemoved, tree_label |
| 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_Class(java.lang.String uri,
IRDF_Namespace namespace)
|
|
| Method Summary | |
|---|---|
java.util.Collection<IRDF_SubClass> |
getAllSubClassesTriples()
This method retrieves all the subclass triples of this Class recursively |
java.util.Collection<IRDF_SubClass> |
getAllSuperClassesTriples()
This method retrieves cursively all the superclass triples of this Class |
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_Property> |
getDomainOf()
This method retrieves all the properties with this Class as domain |
java.util.Collection<IRDF_Domain> |
getDomainOfTriples()
This method retrieves all the domain triples with this Class as object |
java.util.Collection<IRDF_Resource> |
getInstances()
Retrieves the resources that are classified under this class. |
java.util.Collection<IRDF_Type> |
getInstanceTriples()
Retrieves the type triple in which this class is the object, that is the "type" |
java.util.Collection<IRDF_Property> |
getRangeOf()
This method retrieves all the properties with this Class as range |
java.util.Collection<IRDF_Range> |
getRangeOfTriples()
Returns all the properties this class is range |
java.util.Collection<IRDF_SubClass> |
getSubClassesTriples()
This method retrieves all the direct subclass triples of this Class |
protected java.util.Collection<? extends IRDF_SubClass> |
getSubsumptionTriples(boolean upward)
|
java.util.Collection<IRDF_SubClass> |
getSuperClassesTriples()
This method retrieves all the direct superclass triples of this Class |
boolean |
isAncestorOf(IRDF_Class rdf_class)
a is subClassOf b if a's treeLabel is contained in any of b's labels |
boolean |
isDescendantOf(IRDF_Class rdf_class)
If the labels have not been created this method works recursively a is subClassOf b if a's treeLabel is contained in any of b's labels |
boolean |
isDomainOf(java.lang.String a_property_uri)
Tells whether this class is a domain class of property with uri property_uri |
boolean |
isRangeOf(java.lang.String a_property_uri)
Tells whether this class is a range class of property with uri property_uri |
boolean |
isSubClassOf(IRDF_Model model,
java.lang.String class_uri)
Tells whether this class is a direct subclass of class with uri class_uri |
boolean |
isSuperClassOf(IRDF_Model model,
java.lang.String class_uri)
Tells whether this class is a direct superclass of class with uri class_uri |
| Methods inherited from class gr.forth.ics.rdfsuite.swkm.model.impl.RDF_Schema_Resource |
|---|
addDirectPropagatedLabel, addDirectPropagatedLabels, addIndirectPropagatedLabel, addIndirectPropagatedLabels, compareTo, contains, getAncestors, getDescendants, getDirectAncestors, getDirectDescendants, getDirectPropagatedLabels, getHasUnstoredLabels, getIndirectPropagatedLabels, getTree_label, printLabels, setDirectPropagatedLabels, setHasUnstoredLabels, setIndirectPropagatedLabels, setTree_label, updateIndirectPropagatedLabel |
| Methods inherited from class gr.forth.ics.rdfsuite.swkm.model.impl.RDF_Resource |
|---|
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 |
|---|
addDirectPropagatedLabel, addDirectPropagatedLabels, addIndirectPropagatedLabel, addIndirectPropagatedLabels, contains, getAncestors, getDescendants, getDirectAncestors, getDirectDescendants, getDirectPropagatedLabels, getHasUnstoredLabels, getIndirectPropagatedLabels, getTree_label, setDirectPropagatedLabels, setHasUnstoredLabels, setIndirectPropagatedLabels, setTree_label, updateIndirectPropagatedLabel |
| Methods inherited from interface gr.forth.ics.rdfsuite.swkm.model.IRDF_Resource |
|---|
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 static final org.apache.log4j.Logger log
| Constructor Detail |
|---|
public RDF_Class(java.lang.String uri,
IRDF_Namespace namespace)
uri - namespace - | Method Detail |
|---|
public java.util.Collection<IRDF_SubClass> getAllSubClassesTriples()
IRDF_Class
getAllSubClassesTriples in interface IRDF_Classpublic java.util.Collection<IRDF_SubClass> getAllSuperClassesTriples()
IRDF_Class
getAllSuperClassesTriples in interface IRDF_Classpublic java.util.Collection<IRDF_Property> getDomainOf()
IRDF_Class
getDomainOf in interface IRDF_Classpublic java.util.Collection<IRDF_Domain> getDomainOfTriples()
IRDF_Class
getDomainOfTriples in interface IRDF_Classpublic java.util.Collection<IRDF_Property> getRangeOf()
IRDF_Class
getRangeOf in interface IRDF_Classpublic java.util.Collection<IRDF_Range> getRangeOfTriples()
getRangeOfTriples in interface IRDF_Classpublic java.util.Collection<IRDF_SubClass> getSubClassesTriples()
IRDF_Class
getSubClassesTriples in interface IRDF_Classpublic java.util.Collection<IRDF_SubClass> getSuperClassesTriples()
IRDF_Class
getSuperClassesTriples in interface IRDF_Class
public boolean isSuperClassOf(IRDF_Model model,
java.lang.String class_uri)
IRDF_Class
isSuperClassOf in interface IRDF_Classclass_uri - A String
public boolean isSubClassOf(IRDF_Model model,
java.lang.String class_uri)
IRDF_Class
isSubClassOf in interface IRDF_Classmodel - IRDF_Modelclass_uri - A String
public boolean isDomainOf(java.lang.String a_property_uri)
IRDF_Class
isDomainOf in interface IRDF_Classpublic boolean isRangeOf(java.lang.String a_property_uri)
IRDF_Class
isRangeOf in interface IRDF_Class
public boolean isAncestorOf(IRDF_Class rdf_class)
throws gr.forth.ics.rdfsuite.services.exceptions.LabelCreationException
isAncestorOf in interface IRDF_ClassisAncestorOf in interface IRDF_Schema_Resource<IRDF_Class,IRDF_SubClass>gr.forth.ics.rdfsuite.services.exceptions.LabelCreationException - if labels have not been created for the elements of this modelpublic boolean isDescendantOf(IRDF_Class rdf_class)
isDescendantOf in interface IRDF_ClassisDescendantOf in interface IRDF_Schema_Resource<IRDF_Class,IRDF_SubClass>gr.forth.ics.rdfsuite.services.exceptions.LabelCreationException - if labels have not been created for the elements of this modelpublic java.util.Collection<IRDF_Resource> getAllTypes(IRDF_Model model)
RDF_Resource
getAllTypes in interface IRDF_ResourcegetAllTypes in class RDF_Resourceprotected java.util.Collection<? extends IRDF_SubClass> getSubsumptionTriples(boolean upward)
getSubsumptionTriples in class RDF_Schema_Resource<IRDF_Class,IRDF_SubClass>public java.util.Collection<IRDF_Type> getInstanceTriples()
IRDF_Class
getInstanceTriples in interface IRDF_Classpublic java.util.Collection<IRDF_Resource> getInstances()
IRDF_Class
getInstances in interface IRDF_Class
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||