edu.lehigh.swat.hawk.core
Interface Ontology

All Superinterfaces:
Document, java.io.Serializable
All Known Implementing Classes:
Ontology, Ontology, Ontology, Ontology

public interface Ontology
extends Document

encapsulating the web ontology


Method Summary
 void addCompatiblePriorOnts(DocId id)
          Add a priorVersion ontology which is backwardCompatibleWith.
 void addOntClass(OntClass c)
          add a class to this ontology
 void addPriorOnts(DocId id)
          Add a priorVersion ontology may be incompatibleWith.
 void addProperty(OntProperty p)
          add a property to this ontology
 void addRestriction(PropertyRestriction p)
          add a property to this ontology
 OntClass createClass()
          Create a Class object.
 OntProperty createProperty()
          Create a Property object.
 PropertyRestriction createRestriction()
          Create a PropertyRestriction object.
 void deleteCompatiblePriorOnts(DocId id)
          Delete a priorVersion ontology which is backwardCompatibleWith.
 void deleteOntClass(ObjectId id)
          delete the specified class
 void deletePriorOnts(DocId id)
          Delete a priorVersion ontology may be incompatibleWith.
 void deleteProperty(ObjectId id)
          delete a specified property
 void deleteRestriction(ObjectId id)
          delete a specified property
 OntClass[] getAllClasses()
          get all the classes in this ontology
 OntClass[] getAllPlusImportedClasses()
          Get All the classes plus the imported Classes.
 OntProperty[] getAllPlusImportedProperties()
          Get All the classes plus the imported properties.
 OntProperty[] getAllProperties()
          get all the properties in this ontology
 PropertyRestriction[] getAllRestrictions()
          get all the properties in this ontology
 java.util.Iterator getClassIterator()
          Get the Iterator of all the classes.
 DocId[] getCompatiblePriorOnts()
          Get the priorVersion ontologies which are backwardCompatibleWith
 OntClass getOntClass(ObjectId id)
          get the specified class
 DocId[] getPriorOnts()
          Get the priorVersion ontologies may be incompatibleWith
 OntProperty getProperty(ObjectId id)
          get the specified property
 java.util.Iterator getPropertyIterator()
          Get the Iterator of all the properties.
 PropertyRestriction getRestriction(ObjectId id)
          get the specified property
 java.lang.String getVersion()
          get the version of this ontology
 boolean hasClass(java.lang.String name)
          To see if ontology has the class.
 boolean hasProperty(java.lang.String name)
          To see if ontology has the property.
 boolean importedClass(ObjectId cid)
          To tell if the ontology imorted specified class.
 boolean importedProperty(ObjectId pid)
          To tell if the ontology imported specified property.
 void setVersion(java.lang.String ver)
          Set the version of this ontology.
 
Methods inherited from interface edu.lehigh.swat.hawk.core.Document
addAssertion, addDescription, addDistinctIndividualsSet, addImports, addIndividual, addSameIndividualsSet, createIndividual, deleteAssertion, deleteDescriprion, deleteDistinctIndividualsSet, deleteImports, deleteIndividual, deleteSameIndividualsSet, flush, getAllAssertions, getAllDescriptions, getAllIndividuals, getAssertionIterator, getDescendants, getDescription, getDistinctIndividualsSets, getID, getImports, getIndividual, getIndividualIterator, getLabel, getNameSpaces, getSameIndividualsSets, getXMLBase, setDescendants, setID, setLabel, setNameSpaces, setXMLBase
 

Method Detail

addOntClass

void addOntClass(OntClass c)
add a class to this ontology


getOntClass

OntClass getOntClass(ObjectId id)
get the specified class


deleteOntClass

void deleteOntClass(ObjectId id)
delete the specified class


getAllClasses

OntClass[] getAllClasses()
get all the classes in this ontology


getClassIterator

java.util.Iterator getClassIterator()
Get the Iterator of all the classes.


addProperty

void addProperty(OntProperty p)
add a property to this ontology


getProperty

OntProperty getProperty(ObjectId id)
get the specified property


deleteProperty

void deleteProperty(ObjectId id)
delete a specified property


getAllProperties

OntProperty[] getAllProperties()
get all the properties in this ontology


getPropertyIterator

java.util.Iterator getPropertyIterator()
Get the Iterator of all the properties.


addRestriction

void addRestriction(PropertyRestriction p)
add a property to this ontology


getRestriction

PropertyRestriction getRestriction(ObjectId id)
get the specified property


deleteRestriction

void deleteRestriction(ObjectId id)
delete a specified property


getAllRestrictions

PropertyRestriction[] getAllRestrictions()
get all the properties in this ontology


getCompatiblePriorOnts

DocId[] getCompatiblePriorOnts()
Get the priorVersion ontologies which are backwardCompatibleWith


addCompatiblePriorOnts

void addCompatiblePriorOnts(DocId id)
Add a priorVersion ontology which is backwardCompatibleWith.


deleteCompatiblePriorOnts

void deleteCompatiblePriorOnts(DocId id)
Delete a priorVersion ontology which is backwardCompatibleWith.


getPriorOnts

DocId[] getPriorOnts()
Get the priorVersion ontologies may be incompatibleWith


addPriorOnts

void addPriorOnts(DocId id)
Add a priorVersion ontology may be incompatibleWith.


deletePriorOnts

void deletePriorOnts(DocId id)
Delete a priorVersion ontology may be incompatibleWith.


getVersion

java.lang.String getVersion()
get the version of this ontology


setVersion

void setVersion(java.lang.String ver)
Set the version of this ontology.


createClass

OntClass createClass()
Create a Class object.


createProperty

OntProperty createProperty()
Create a Property object.


createRestriction

PropertyRestriction createRestriction()
Create a PropertyRestriction object.


hasClass

boolean hasClass(java.lang.String name)
To see if ontology has the class.


hasProperty

boolean hasProperty(java.lang.String name)
To see if ontology has the property.


getAllPlusImportedClasses

OntClass[] getAllPlusImportedClasses()
Get All the classes plus the imported Classes.


getAllPlusImportedProperties

OntProperty[] getAllPlusImportedProperties()
Get All the classes plus the imported properties.


importedClass

boolean importedClass(ObjectId cid)
To tell if the ontology imorted specified class.


importedProperty

boolean importedProperty(ObjectId pid)
To tell if the ontology imported specified property.