edu.lehigh.swat.hawk.storage.ontper.dldb
Class Ontology

java.lang.Object
  extended by edu.lehigh.swat.hawk.storage.simplememory.Document
      extended by edu.lehigh.swat.hawk.storage.simpledb.Document
          extended by edu.lehigh.swat.hawk.storage.simpledb.Ontology
              extended by edu.lehigh.swat.hawk.storage.dldb.Ontology
                  extended by edu.lehigh.swat.hawk.storage.ontper.dldb.Ontology
All Implemented Interfaces:
Document, Ontology, java.io.Serializable

public class Ontology
extends Ontology

encapsulating the web ontology

See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.lehigh.swat.hawk.storage.simpledb.Ontology
dbName, memoryOnto, ontSeq
 
Fields inherited from class edu.lehigh.swat.hawk.storage.simpledb.Document
ancestors, model, stmt
 
Fields inherited from class edu.lehigh.swat.hawk.storage.simplememory.Document
assertions, comments, distinctSets, docId, imports, individuals, label, nameSpaces, sameSets, size, xmlBase
 
Fields inherited from interface edu.lehigh.swat.hawk.core.Ontology
ALLVALUERESTRICTION, ATOMICNODE, CARDINALITYRESTRICTION, COMPLEMENTOF, DISJOINTWITH, EQUIVALENTCLASS, EQUIVALENTPROPERTY, HASVALUERESTRICTION, INTERSECTIONOF, INVERSEOF, ONEOF, SOMEVALUERESTRICTION, SUBCLASSOF, SUBPROPERTYOF, UNIONOF
 
Constructor Summary
Ontology(Ontology mOnto)
          Constructor
 
Method Summary
 void addOntClass(OntClass c)
          add a class to this ontology
 void addProperty(OntProperty prop)
          add a property to this ontology
 void flush()
          Flush the axioms into database.
protected  void flushEquivals()
           
protected  void flushInverseOf()
          Flush owl:inverseOf into db view.
protected  void flushSubs()
           
 DocId[] getCompatiblePriorOnts()
          Get the priorVersion ontologies which are backwardCompatibleWith
 
Methods inherited from class edu.lehigh.swat.hawk.storage.simpledb.Ontology
addAllAxiomNodeRestrictions, addAssertedClass, addAssertedProperty, addAxiom, addAxiomByObject, addAxiomBySubject, addAxiomByType, addAxiomNodeRestriction, addCompatiblePriorOnts, addImportedClass, addImportedProperty, addImports, addIndividual, addPriorOnts, addRestriction, assertedClass, assertedProperty, createClass, createProperty, createRestriction, deleteCompatiblePriorOnts, deleteOntClass, deletePriorOnts, deleteProperty, deleteRestriction, getAllAxioms, getAllAxiomsByObject, getAllAxiomsBySubject, getAllAxiomsByType, getAllClasses, getAllPlusImportedClasses, getAllPlusImportedProperties, getAllProperties, getAllRestrictions, getAxiomByObject, getAxiomBySubject, getAxiomByType, getAxiomNodeRestrictions, getClassIndex, getClassIterator, getID, getMemOnto, getOntClass, getOntObject, getOntSeq, getPriorOnts, getProperty, getPropertyIndex, getPropertyIterator, getRestriction, getVersion, hasClass, hasProperty, importedClass, importedProperty, setID, setOntSeq, setVersion, viewDefToTabNames, ViewForRestriction
 
Methods inherited from class edu.lehigh.swat.hawk.storage.simpledb.Document
createIndividual, deleteIndividual, getAncestors, getDocSeq, getModel, setDocSeq, setModel, setSQLStatement
 
Methods inherited from class edu.lehigh.swat.hawk.storage.simplememory.Document
addAssertion, addDescription, addDistinctIndividualsSet, addSameIndividualsSet, deleteAllIndividual, deleteAssertion, deleteDescriprion, deleteDistinctIndividualsSet, deleteImports, deleteSameIndividualsSet, equals, getAllAssertions, getAllDescriptions, getAllIndividuals, getAssertionIterator, getDescendants, getDescription, getDistinctIndividualsSets, getImports, getIndividual, getIndividualIterator, getLabel, getNameSpaces, getSameIndividualsSets, getSize, getXMLBase, setDescendants, setLabel, setNameSpaces, setSize, setXMLBase
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.lehigh.swat.hawk.core.Document
addAssertion, addDescription, addDistinctIndividualsSet, addSameIndividualsSet, createIndividual, deleteAssertion, deleteDescriprion, deleteDistinctIndividualsSet, deleteImports, deleteIndividual, deleteSameIndividualsSet, getAllAssertions, getAllDescriptions, getAllIndividuals, getAssertionIterator, getDescendants, getDescription, getDistinctIndividualsSets, getImports, getIndividual, getIndividualIterator, getLabel, getNameSpaces, getSameIndividualsSets, getSize, getXMLBase, setDescendants, setLabel, setNameSpaces, setSize, setXMLBase
 

Constructor Detail

Ontology

public Ontology(Ontology mOnto)
Constructor

Method Detail

addOntClass

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

Specified by:
addOntClass in interface Ontology
Overrides:
addOntClass in class Ontology

addProperty

public void addProperty(OntProperty prop)
add a property to this ontology

Specified by:
addProperty in interface Ontology
Overrides:
addProperty in class Ontology

flush

public void flush()
Flush the axioms into database.

Specified by:
flush in interface Document
Overrides:
flush in class Ontology

flushSubs

protected void flushSubs()
Overrides:
flushSubs in class Ontology

flushEquivals

protected void flushEquivals()
Overrides:
flushEquivals in class Ontology

flushInverseOf

protected void flushInverseOf()
Flush owl:inverseOf into db view.

Overrides:
flushInverseOf in class Ontology

getCompatiblePriorOnts

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

Specified by:
getCompatiblePriorOnts in interface Ontology
Overrides:
getCompatiblePriorOnts in class Ontology