|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.lehigh.swat.hawk.storage.simplememory.SerializableClass
edu.lehigh.swat.hawk.storage.simplememory.Document
edu.lehigh.swat.hawk.storage.simpledb.Document
edu.lehigh.swat.hawk.storage.simpledb.Ontology
public class Ontology
encapsulating the web ontology
Field Summary | |
---|---|
protected Ontology |
memoryOnto
|
protected int |
ontSeq
To see if ontology has imported the property. |
Fields inherited from class edu.lehigh.swat.hawk.storage.simpledb.Document |
---|
model, stmt |
Constructor Summary | |
---|---|
Ontology(Ontology mOnto)
Constructor |
Method Summary | |
---|---|
void |
addCompatiblePriorOnts(DocId id)
Add a priorVersion ontology which is backwardCompatibleWith. |
void |
addImportedClass(ObjectId cid,
OntClass c)
Add an imported class. |
void |
addImportedProperty(ObjectId pid,
OntProperty p)
Add an imported property. |
void |
addImports(DocId id)
Add an imports statement. |
void |
addOntClass(OntClass c)
add a class to this ontology |
void |
addPriorOnts(DocId id)
Add a priorVersion ontology may be incompatibleWith. |
void |
addProperty(OntProperty prop)
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 |
void |
flush()
Flush the axioms into database. |
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 |
DocId |
getID()
get the ID of this document |
Ontology |
getMemOnto()
Get the memory-based ontology object. |
OntClass |
getOntClass(ObjectId id)
get the specified class |
int |
getOntSeq()
Get the document sequence number. |
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)
Get the imported 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 |
setID(DocId id)
set the ID of this document |
void |
setOntSeq(int i)
Set the document sequence number. |
void |
setVersion(java.lang.String ver)
Set the version of this ontology. |
protected java.util.Vector |
viewDefToTabNames(java.lang.String vdef)
Get the table names in the view definition |
Methods inherited from class edu.lehigh.swat.hawk.storage.simpledb.Document |
---|
addIndividual, createIndividual, getDocSeq, getModel, setDocSeq, setModel, setSQLStatement |
Methods inherited from class edu.lehigh.swat.hawk.storage.simplememory.Document |
---|
addAssertion, addDescription, addDistinctIndividualsSet, addSameIndividualsSet, deleteAssertion, deleteDescriprion, deleteDistinctIndividualsSet, deleteImports, deleteIndividual, deleteSameIndividualsSet, getAllAssertions, getAllDescriptions, getAllIndividuals, getAssertionIterator, getDescendants, getDescription, getDistinctIndividualsSets, getImports, getIndividual, getIndividualIterator, getLabel, getNameSpaces, getSameIndividualsSets, getXMLBase, setDescendants, setLabel, setNameSpaces, setXMLBase |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int ontSeq
protected Ontology memoryOnto
Constructor Detail |
---|
public Ontology(Ontology mOnto)
Method Detail |
---|
public Ontology getMemOnto()
public DocId getID()
getID
in interface Document
getID
in class Document
public void setID(DocId id)
setID
in interface Document
setID
in class Document
public void addImports(DocId id)
addImports
in interface Document
addImports
in class Document
public void addOntClass(OntClass c)
addOntClass
in interface Ontology
public OntClass getOntClass(ObjectId id)
getOntClass
in interface Ontology
public void deleteOntClass(ObjectId id)
deleteOntClass
in interface Ontology
public OntClass[] getAllClasses()
getAllClasses
in interface Ontology
public OntClass[] getAllPlusImportedClasses()
getAllPlusImportedClasses
in interface Ontology
public java.util.Iterator getClassIterator()
getClassIterator
in interface Ontology
public void addProperty(OntProperty prop)
addProperty
in interface Ontology
public OntProperty getProperty(ObjectId id)
getProperty
in interface Ontology
public void deleteProperty(ObjectId id)
deleteProperty
in interface Ontology
public OntProperty[] getAllProperties()
getAllProperties
in interface Ontology
public OntProperty[] getAllPlusImportedProperties()
getAllPlusImportedProperties
in interface Ontology
public java.util.Iterator getPropertyIterator()
getPropertyIterator
in interface Ontology
public void addRestriction(PropertyRestriction p)
addRestriction
in interface Ontology
public PropertyRestriction getRestriction(ObjectId id)
getRestriction
in interface Ontology
public void deleteRestriction(ObjectId id)
deleteRestriction
in interface Ontology
public PropertyRestriction[] getAllRestrictions()
getAllRestrictions
in interface Ontology
public DocId[] getCompatiblePriorOnts()
getCompatiblePriorOnts
in interface Ontology
public void addCompatiblePriorOnts(DocId id)
addCompatiblePriorOnts
in interface Ontology
public void deleteCompatiblePriorOnts(DocId id)
deleteCompatiblePriorOnts
in interface Ontology
public DocId[] getPriorOnts()
getPriorOnts
in interface Ontology
public void addPriorOnts(DocId id)
addPriorOnts
in interface Ontology
public void deletePriorOnts(DocId id)
deletePriorOnts
in interface Ontology
public java.lang.String getVersion()
getVersion
in interface Ontology
public void setVersion(java.lang.String ver)
setVersion
in interface Ontology
public OntClass createClass()
createClass
in interface Ontology
public OntProperty createProperty()
createProperty
in interface Ontology
public PropertyRestriction createRestriction()
createRestriction
in interface Ontology
public void flush()
flush
in interface Document
flush
in class Document
public void addImportedClass(ObjectId cid, OntClass c)
public void addImportedProperty(ObjectId pid, OntProperty p)
public boolean hasClass(java.lang.String name)
hasClass
in interface Ontology
public boolean hasProperty(java.lang.String name)
hasProperty
in interface Ontology
protected java.util.Vector viewDefToTabNames(java.lang.String vdef)
public void setOntSeq(int i)
public int getOntSeq()
public boolean importedClass(ObjectId cid)
importedClass
in interface Ontology
public boolean importedProperty(ObjectId pid)
importedProperty
in interface Ontology
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |