edu.lehigh.swat.hawk.storage.simplememory
Class OntClass

java.lang.Object
  extended by edu.lehigh.swat.hawk.storage.simplememory.OntObject
      extended by edu.lehigh.swat.hawk.storage.simplememory.OntClass
All Implemented Interfaces:
OntClass, OntObject, java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
OntClass, PropertyRestriction

public class OntClass
extends OntObject
implements OntClass

A simple implementation of core.OntClass in memory.

See Also:
Serialized Form

Constructor Summary
OntClass()
          Constructor
 
Method Summary
 void addComplementOf(ObjectId i)
          Add an 'ComplementOf' class or restriction.
 void addDescendant(ObjectId sid)
          Add descendant to this class.
 void addDisjointWith(ObjectId id)
          Add a 'disjointWith' class.
 void addEquivalentClass(ObjectId ec)
          Add a equivalent class.
 void addIntersectionOf(ObjectId i)
          Add an 'IntersectionOf' class or restriction.
 void addOneOf(ObjectId one)
          Add an 'OneOf' object.
 void addPropertyRestriction(ObjectId r)
          Add a property restriction.
 void addSubClass(ObjectId c)
          Add a direct subClass.
 void addSuperClass(ObjectId c)
          Add a direct super Class.
 void addUnionOf(ObjectId u)
          Add an 'UnionOf' class.
 void deleteComplementOf(ObjectId i)
          Delete an 'ComplementOf' class or restriction.
 void deleteDisjointWith(ObjectId id)
          Delete a 'disjointWith' class.
 void deleteEquivalentClass(ObjectId ec)
          Delete a equivalent class.
 void deleteIntersectionOf(ObjectId i)
          Delete an 'IntersectionOf' class or restriction.
 void deleteOneOf(ObjectId one)
          Delete an 'OneOf' object.
 void deletePropertyRestriction(ObjectId r)
          Delete a property restriction.
 void deleteSubClass(ObjectId c)
          Delete a direct subClass.
 void deleteSuperClass(ObjectId c)
          delete a direct super Class
 void deleteUnionOf(ObjectId u)
          Delete an 'UnionOf' class.
 ObjectId[] getComplementOfs()
          Get the 'ComplementOf' classes or restrictions.
 ObjectId[] getDirectSubClasses()
          get the direct subClasses
 ObjectId[] getDirectSuperClasses()
          get the direct super Classes
 ObjectId[] getDisjointWith()
          Get the disjointWith classes.
 ObjectId[] getEquivalentClasses()
          Get the equivalent classes.
 AxiomNode[] getIntersectionAxiomNodes()
          This new method returns the right an array of axiomNodes each of which represents a intersectionOf entity.
 ObjectId[] getIntersectionOfs()
          Get the 'IntersectionOf' classes or restrictions.
 ObjectId[] getOneOfs()
          Get the 'OneOf' objects.
 ObjectId[] getPropertyRestrictions()
          Get the property restrictions.
 AxiomNode[] getUnionAxiomNodes()
          This new method returns the right an array of axiomNodes each of which represents a unionOf entity.
 ObjectId[] getUnionOfs()
          Get the 'UnionOf' classes.
 boolean isDeprecated()
          Test if this class is deprecated.
 java.lang.Boolean isSatisfiabele()
          Test if this class is satisfiable.
 void setDeprecated(boolean dep)
          Set the class to be deprecated.
 void setSatisfiable(java.lang.Boolean sat)
          Set the satisfiability of this class.
 boolean subsumes(ObjectId sid)
          Test if this class subsumes the given class.
 
Methods inherited from class edu.lehigh.swat.hawk.storage.simplememory.OntObject
addDescription, clone, deleteDescription, getAllDescriptions, getDescription, getID, getLabel, getOntology, getSource, setID, setLabel, setOntology, setSource
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.lehigh.swat.hawk.core.OntObject
addDescription, clone, deleteDescription, getAllDescriptions, getDescription, getID, getLabel, getOntology, getSource, setID, setLabel, setOntology, setSource
 

Constructor Detail

OntClass

public OntClass()
Constructor

Method Detail

addSubClass

public void addSubClass(ObjectId c)
Add a direct subClass. $memo: currently we only set bi-directional links to those classes who are in the same document.

Specified by:
addSubClass in interface OntClass

getDirectSubClasses

public ObjectId[] getDirectSubClasses()
get the direct subClasses

Specified by:
getDirectSubClasses in interface OntClass

deleteSubClass

public void deleteSubClass(ObjectId c)
Delete a direct subClass.

Specified by:
deleteSubClass in interface OntClass

addSuperClass

public void addSuperClass(ObjectId c)
Add a direct super Class.

Specified by:
addSuperClass in interface OntClass

getDirectSuperClasses

public ObjectId[] getDirectSuperClasses()
get the direct super Classes

Specified by:
getDirectSuperClasses in interface OntClass

deleteSuperClass

public void deleteSuperClass(ObjectId c)
delete a direct super Class

Specified by:
deleteSuperClass in interface OntClass

addPropertyRestriction

public void addPropertyRestriction(ObjectId r)
Add a property restriction.

Specified by:
addPropertyRestriction in interface OntClass

deletePropertyRestriction

public void deletePropertyRestriction(ObjectId r)
Delete a property restriction.

Specified by:
deletePropertyRestriction in interface OntClass

getPropertyRestrictions

public ObjectId[] getPropertyRestrictions()
Get the property restrictions.

Specified by:
getPropertyRestrictions in interface OntClass

addEquivalentClass

public void addEquivalentClass(ObjectId ec)
Add a equivalent class.

Specified by:
addEquivalentClass in interface OntClass

deleteEquivalentClass

public void deleteEquivalentClass(ObjectId ec)
Delete a equivalent class.

Specified by:
deleteEquivalentClass in interface OntClass

getEquivalentClasses

public ObjectId[] getEquivalentClasses()
Get the equivalent classes.

Specified by:
getEquivalentClasses in interface OntClass

addUnionOf

public void addUnionOf(ObjectId u)
Add an 'UnionOf' class.

Specified by:
addUnionOf in interface OntClass

deleteUnionOf

public void deleteUnionOf(ObjectId u)
Delete an 'UnionOf' class.

Specified by:
deleteUnionOf in interface OntClass

getUnionOfs

public ObjectId[] getUnionOfs()
Get the 'UnionOf' classes.

Specified by:
getUnionOfs in interface OntClass

getUnionAxiomNodes

public AxiomNode[] getUnionAxiomNodes()
This new method returns the right an array of axiomNodes each of which represents a unionOf entity.

Specified by:
getUnionAxiomNodes in interface OntClass
Returns:

addIntersectionOf

public void addIntersectionOf(ObjectId i)
Add an 'IntersectionOf' class or restriction.

Specified by:
addIntersectionOf in interface OntClass

deleteIntersectionOf

public void deleteIntersectionOf(ObjectId i)
Delete an 'IntersectionOf' class or restriction.

Specified by:
deleteIntersectionOf in interface OntClass

getIntersectionOfs

public ObjectId[] getIntersectionOfs()
Get the 'IntersectionOf' classes or restrictions.

Specified by:
getIntersectionOfs in interface OntClass

getIntersectionAxiomNodes

public AxiomNode[] getIntersectionAxiomNodes()
This new method returns the right an array of axiomNodes each of which represents a intersectionOf entity.

Specified by:
getIntersectionAxiomNodes in interface OntClass
Returns:

addOneOf

public void addOneOf(ObjectId one)
Add an 'OneOf' object.

Specified by:
addOneOf in interface OntClass

deleteOneOf

public void deleteOneOf(ObjectId one)
Delete an 'OneOf' object.

Specified by:
deleteOneOf in interface OntClass

getOneOfs

public ObjectId[] getOneOfs()
Get the 'OneOf' objects.

Specified by:
getOneOfs in interface OntClass

addComplementOf

public void addComplementOf(ObjectId i)
Add an 'ComplementOf' class or restriction.

Specified by:
addComplementOf in interface OntClass

deleteComplementOf

public void deleteComplementOf(ObjectId i)
Delete an 'ComplementOf' class or restriction.

Specified by:
deleteComplementOf in interface OntClass

getComplementOfs

public ObjectId[] getComplementOfs()
Get the 'ComplementOf' classes or restrictions.

Specified by:
getComplementOfs in interface OntClass

addDisjointWith

public void addDisjointWith(ObjectId id)
Add a 'disjointWith' class.

Specified by:
addDisjointWith in interface OntClass

deleteDisjointWith

public void deleteDisjointWith(ObjectId id)
Delete a 'disjointWith' class.

Specified by:
deleteDisjointWith in interface OntClass

getDisjointWith

public ObjectId[] getDisjointWith()
Get the disjointWith classes.

Specified by:
getDisjointWith in interface OntClass

isDeprecated

public boolean isDeprecated()
Test if this class is deprecated.

Specified by:
isDeprecated in interface OntClass

setDeprecated

public void setDeprecated(boolean dep)
Set the class to be deprecated.

Specified by:
setDeprecated in interface OntClass

setSatisfiable

public void setSatisfiable(java.lang.Boolean sat)
Set the satisfiability of this class.

Specified by:
setSatisfiable in interface OntClass

isSatisfiabele

public java.lang.Boolean isSatisfiabele()
Test if this class is satisfiable.

Specified by:
isSatisfiabele in interface OntClass

addDescendant

public void addDescendant(ObjectId sid)
Add descendant to this class.

Parameters:
sid - ObjectId

subsumes

public boolean subsumes(ObjectId sid)
Test if this class subsumes the given class.

Parameters:
sid - ObjectId
Returns:
boolean