edu.uga.cs.lsdis.semdisds
Interface ISchemaClass

All Superinterfaces:
java.lang.Comparable, IRange, IResource, IURI
All Known Subinterfaces:
ITypeRange

public interface ISchemaClass
extends IResource, IRange

Encapsulates a class in an ontology schema

Version:
0.1, 0.2: 2005-11-30: Boanerges Aleman-Meza: renamed getAncesstors() to getAncestors(), 0.3: 2006-04-06: Boanerges Aleman-Meza: added method getDescendants()

Field Summary
 
Fields inherited from interface edu.uga.cs.lsdis.semdisds.IURI
OWL, OWL_CLASS, OWL_DATATYPE_PROPERTY, OWL_OBJECT_PROPERTY, OWL_SAMEAS, RDF, RDF_ALT, RDF_BAG, RDF_OBJECT, RDF_PREDICATE, RDF_PROPERTY, RDF_SEQ, RDF_STATEMENT, RDF_SUBJECT, RDF_TYPE, RDFS, RDFS_CLASS, RDFS_DATATYPE, RDFS_DOMAIN, RDFS_LABEL, RDFS_RANGE, RDFS_RESOURCE, RDFS_SEEALSO, RDFS_SUBCLASSOF, RDFS_SUBPROPERTYOF, XSD, XSD_BOOLEAN, XSD_DATE, XSD_DECIMAL, XSD_INTEGER, XSD_STRING, XSD2, XSD2_BOOLEAN, XSD2_DATE, XSD2_DECIMAL, XSD2_INTEGER, XSD2_STRING
 
Method Summary
 void addChild(ISchemaClass aClass)
          Adds a child class to this SchemaClass - taxonomy of classes
 void addParent(ISchemaClass aClass)
          Adds a parent class to this SchemaClass - taxonomy of classes
 IExtendedIterator<ISchemaClass> getAncestors()
          Returns all ancestors for this class - taxonomy hierarchy
 IExtendedIterator<ISchemaClass> getChildren()
          Returns all direct class children in taxonomy
 IExtendedIterator<ISchemaClass> getDescendants()
          Returns all descendant classes of this class in taxonomy
 IExtendedIterator<IInstanceNode> getInstances()
          Returns all instances that are of this type
 int getInstancesCount()
          Get the count of instance nodes that have this schema-class as direct type
 IExtendedIterator<ISchemaClass> getParents()
          Returns immediate parents of this SchemaClass - taxonomy hierarchy
 IExtendedIterator<IInstanceNode> getSubTypeInstances()
          Returns instances of this class and all of its descendents
 boolean isOfType(ISchemaClass aClassType)
          Checks if type is among this class ancestors
 
Methods inherited from interface edu.uga.cs.lsdis.semdisds.IResource
getEdges, getIncomingEdges, getIncomingEdges, getLiterals, getLiterals, getOutgoingEdges, getOutgoingEdges, getURI
 
Methods inherited from interface edu.uga.cs.lsdis.semdisds.IURI
getAlias, getNamespace, getShortName
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getParents

IExtendedIterator<ISchemaClass> getParents()

Returns immediate parents of this SchemaClass - taxonomy hierarchy

Returns:
returns IExtendedIterator

getAncestors

IExtendedIterator<ISchemaClass> getAncestors()

Returns all ancestors for this class - taxonomy hierarchy

Returns:
returns IExtendedIterator

isOfType

boolean isOfType(ISchemaClass aClassType)

Checks if type is among this class ancestors

Parameters:
aClassType -
Returns:
true/false depending on whether the given class is among this class' ancestors

getInstances

IExtendedIterator<IInstanceNode> getInstances()

Returns all instances that are of this type

Returns:
returns IExtendedIterator

getSubTypeInstances

IExtendedIterator<IInstanceNode> getSubTypeInstances()

Returns instances of this class and all of its descendents

Returns:
returns IExtendedIterator

getChildren

IExtendedIterator<ISchemaClass> getChildren()

Returns all direct class children in taxonomy

Returns:
returns IExtendedIterator

addParent

void addParent(ISchemaClass aClass)

Adds a parent class to this SchemaClass - taxonomy of classes

Parameters:
aClass -

addChild

void addChild(ISchemaClass aClass)

Adds a child class to this SchemaClass - taxonomy of classes

Parameters:
aClass -

getInstancesCount

int getInstancesCount()
Get the count of instance nodes that have this schema-class as direct type

Returns:
count of instance nodes of this class

getDescendants

IExtendedIterator<ISchemaClass> getDescendants()

Returns all descendant classes of this class in taxonomy

Returns:
returns IExtendedIterator