gr.forth.ics.rdfsuite.swkm.model
Interface IRDF_Class

All Superinterfaces:
Identifiable, IRDF_Resource, IRDF_Schema_Resource<IRDF_Class,IRDF_SubClass>
All Known Subinterfaces:
IRDF_MetaClass
All Known Implementing Classes:
RDF_Class, RDF_MetaClass

public interface IRDF_Class
extends IRDF_Schema_Resource<IRDF_Class,IRDF_SubClass>

A Class in the schema


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_Property> getDomainOf()
          This method retrieves all the properties with this Class as domain
 java.util.Collection 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 getRangeOfTriples()
          This method retrieves all the range triples with this Class as object
 java.util.Collection<IRDF_SubClass> getSubClassesTriples()
          This method retrieves all the direct subclass triples of this Class
 java.util.Collection<IRDF_SubClass> getSuperClassesTriples()
          This method retrieves all the direct superclass triples of this Class
 boolean isAncestorOf(IRDF_Class rdf_class)
          Tells whether this class is an direct or indirect superclass of class with uri class_uri
 boolean isDescendantOf(IRDF_Class rdf_class)
          Tells whether this class is a direct or indirect subclass of class with uri class_uri
 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 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
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

getSuperClassesTriples

java.util.Collection<IRDF_SubClass> getSuperClassesTriples()
This method retrieves all the direct superclass triples of this Class

Returns:
A Colletion object. In each such object this class is the subject

getAllSuperClassesTriples

java.util.Collection<IRDF_SubClass> getAllSuperClassesTriples()
This method retrieves cursively all the superclass triples of this Class

Returns:
A Collection object. In each such object this class is the subject

getSubClassesTriples

java.util.Collection<IRDF_SubClass> getSubClassesTriples()
This method retrieves all the direct subclass triples of this Class

Returns:
A Collection object. In each such object this class is the object

getAllSubClassesTriples

java.util.Collection<IRDF_SubClass> getAllSubClassesTriples()
This method retrieves all the subclass triples of this Class recursively

Returns:
A Collection. The subclasses of this class are the subjects of these objects

getDomainOfTriples

java.util.Collection getDomainOfTriples()
This method retrieves all the domain triples with this Class as object

Returns:
A Collection object

getRangeOfTriples

java.util.Collection getRangeOfTriples()
This method retrieves all the range triples with this Class as object

Returns:
A Collection object

getDomainOf

java.util.Collection<IRDF_Property> getDomainOf()
This method retrieves all the properties with this Class as domain

Returns:
A Collection object

getRangeOf

java.util.Collection<IRDF_Property> getRangeOf()
This method retrieves all the properties with this Class as range

Returns:
A Collection object

isSubClassOf

boolean isSubClassOf(IRDF_Model model,
                     java.lang.String class_uri)
Tells whether this class is a direct subclass of class with uri class_uri

Parameters:
model - IRDF_Model
class_uri - A String
Returns:
true if this class is a subclass of class with uri class_uri

isDescendantOf

boolean isDescendantOf(IRDF_Class rdf_class)
Tells whether this class is a direct or indirect subclass of class with uri class_uri

Specified by:
isDescendantOf in interface IRDF_Schema_Resource<IRDF_Class,IRDF_SubClass>
Parameters:
class_uri - A String
Returns:
true if this class is a subclass of class with uri class_uri

isSuperClassOf

boolean isSuperClassOf(IRDF_Model model,
                       java.lang.String class_uri)
Tells whether this class is a direct superclass of class with uri class_uri

Parameters:
class_uri - A String
Returns:
true if this class is a superclass of class with uri class_uri

isAncestorOf

boolean isAncestorOf(IRDF_Class rdf_class)
                     throws gr.forth.ics.rdfsuite.services.exceptions.LabelCreationException
Tells whether this class is an direct or indirect superclass of class with uri class_uri

Specified by:
isAncestorOf in interface IRDF_Schema_Resource<IRDF_Class,IRDF_SubClass>
Parameters:
class_uri - A String
Returns:
true if this class is a superclass of class with uri class_uri
Throws:
gr.forth.ics.rdfsuite.services.exceptions.LabelCreationException

isDomainOf

boolean isDomainOf(java.lang.String a_property_uri)
Tells whether this class is a domain class of property with uri property_uri

Parameters:
property_uri - A String
Returns:
true if this class is a domain class of property with uri property_uri

isRangeOf

boolean isRangeOf(java.lang.String a_property_uri)
Tells whether this class is a range class of property with uri property_uri

Parameters:
property_uri - A String
Returns:
true if this class is a range class of property with uri property_uri

getInstanceTriples

java.util.Collection<IRDF_Type> getInstanceTriples()
Retrieves the type triple in which this class is the object, that is the "type"

Returns:
An Collection

getInstances

java.util.Collection<IRDF_Resource> getInstances()
Retrieves the resources that are classified under this class. If this class is a metaclass then the resources will be classes else if this class is a simple class the resources will be class instances

Returns:
A Collection