edu.lehigh.swat.hawk.core
Interface Ontology

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

public interface Ontology
extends Document

encapsulating the web ontology


Field Summary
static int ALLVALUERESTRICTION
           
static int ATOMICNODE
           
static int CARDINALITYRESTRICTION
           
static int COMPLEMENTOF
           
static int DISJOINTWITH
           
static int DOMAIN
           
static int EQUIVALENTCLASS
           
static int EQUIVALENTPROPERTY
           
static int HASVALUERESTRICTION
           
static int INTERSECTIONOF
           
static int INVERSEOF
           
static int ONEOF
           
static int RANGE
           
static int SOMEVALUERESTRICTION
           
static int SUBCLASSOF
           
static int SUBPROPERTYOF
           
static int UNIONOF
           
 
Method Summary
 void addAllAxiomNodeRestrictions(java.util.Vector<AxiomNode> res)
           
 boolean addAnnotations(ObjectId sId, ObjectId oId, java.lang.String value)
          Add annotations.
 void addAssertedClass(ObjectId cid)
          Add an asserted class.
 void addAssertedProperty(ObjectId pid)
          Add an asserted property.
 void addAxiom(Axiom a)
          Axiom Design Methods
 void addAxiomByObject(ObjectId obj, Axiom a)
           
 void addAxiomBySubject(ObjectId sub, Axiom a)
           
 void addAxiomByType(java.lang.Integer type, Axiom a)
           
 void addAxiomNodeRestriction(AxiomNode res)
           
 void addCompatiblePriorOnts(DocId id)
          Add a priorVersion ontology which is backwardCompatibleWith.
 void addImportedAxiom(Axiom a)
           
 void addImportedClass(ObjectId cid, OntClass c)
          Add an imported class.
 void addImportedProperty(ObjectId pid, OntProperty p)
          Add an imported property.
 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
 boolean assertedClass(ObjectId cid)
          To tell if the ontology asserted specified class.
 boolean assertedProperty(ObjectId pid)
          To tell if the ontology asserted specified property.
 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
 java.util.Vector<Annotation> getAllAnnotations()
          Get all annotations.
 java.util.List<Axiom> getAllAxioms()
           
 java.util.Hashtable<ObjectId,java.util.Vector<Axiom>> getAllAxiomsByObject()
           
 java.util.Hashtable<ObjectId,java.util.Vector<Axiom>> getAllAxiomsBySubject()
           
 java.util.Hashtable<java.lang.Integer,java.util.Vector<Axiom>> getAllAxiomsByType()
           
 OntClass[] getAllClasses()
          get all the classes in this ontology
 java.util.List<Axiom> getAllPlusImportedAxioms()
           
 java.util.Hashtable<ObjectId,java.util.Vector<Axiom>> getAllPlusImportedAxiomsByObject()
           
 java.util.Hashtable<ObjectId,java.util.Vector<Axiom>> getAllPlusImportedAxiomsBySubject()
           
 java.util.Hashtable<java.lang.Integer,java.util.Vector<Axiom>> getAllPlusImportedAxiomsByType()
           
 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.Vector<Annotation> getAnnotationsByObject(ObjectId pid)
          Get annotations by object ID.
 java.util.Vector<Annotation> getAnnotationsBySubject(ObjectId pid)
          Get annotations by subject ID.
 java.util.List<Axiom> getAxiomByObject(ObjectId object)
           
 java.util.List<Axiom> getAxiomBySubject(ObjectId subject)
           
 java.util.List<Axiom> getAxiomByType(java.lang.Integer type)
           
 java.util.Vector<AxiomNode> getAxiomNodeRestrictions()
           
 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
 OntObject getOntObject(ObjectId id)
          get the object (class/property) given the ID
 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, getSize, getXMLBase, setDescendants, setID, setLabel, setNameSpaces, setSize, setXMLBase
 

Field Detail

SUBCLASSOF

static final int SUBCLASSOF
See Also:
Constant Field Values

SUBPROPERTYOF

static final int SUBPROPERTYOF
See Also:
Constant Field Values

EQUIVALENTCLASS

static final int EQUIVALENTCLASS
See Also:
Constant Field Values

EQUIVALENTPROPERTY

static final int EQUIVALENTPROPERTY
See Also:
Constant Field Values

INVERSEOF

static final int INVERSEOF
See Also:
Constant Field Values

DISJOINTWITH

static final int DISJOINTWITH
See Also:
Constant Field Values

COMPLEMENTOF

static final int COMPLEMENTOF
See Also:
Constant Field Values

INTERSECTIONOF

static final int INTERSECTIONOF
See Also:
Constant Field Values

UNIONOF

static final int UNIONOF
See Also:
Constant Field Values

ONEOF

static final int ONEOF
See Also:
Constant Field Values

ATOMICNODE

static final int ATOMICNODE
See Also:
Constant Field Values

CARDINALITYRESTRICTION

static final int CARDINALITYRESTRICTION
See Also:
Constant Field Values

HASVALUERESTRICTION

static final int HASVALUERESTRICTION
See Also:
Constant Field Values

SOMEVALUERESTRICTION

static final int SOMEVALUERESTRICTION
See Also:
Constant Field Values

ALLVALUERESTRICTION

static final int ALLVALUERESTRICTION
See Also:
Constant Field Values

DOMAIN

static final int DOMAIN
See Also:
Constant Field Values

RANGE

static final int RANGE
See Also:
Constant Field Values
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


getOntObject

OntObject getOntObject(ObjectId id)
get the object (class/property) given the ID


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.


addImportedClass

void addImportedClass(ObjectId cid,
                      OntClass c)
Add an imported class.


addImportedProperty

void addImportedProperty(ObjectId pid,
                         OntProperty p)
Add an imported property.


assertedClass

boolean assertedClass(ObjectId cid)
To tell if the ontology asserted specified class.


assertedProperty

boolean assertedProperty(ObjectId pid)
To tell if the ontology asserted specified property.


addAssertedClass

void addAssertedClass(ObjectId cid)
Add an asserted class.


addAssertedProperty

void addAssertedProperty(ObjectId pid)
Add an asserted property.


addAnnotations

boolean addAnnotations(ObjectId sId,
                       ObjectId oId,
                       java.lang.String value)
Add annotations.


getAnnotationsBySubject

java.util.Vector<Annotation> getAnnotationsBySubject(ObjectId pid)
Get annotations by subject ID.


getAnnotationsByObject

java.util.Vector<Annotation> getAnnotationsByObject(ObjectId pid)
Get annotations by object ID.


getAllAnnotations

java.util.Vector<Annotation> getAllAnnotations()
Get all annotations.


addAxiom

void addAxiom(Axiom a)
Axiom Design Methods


addAxiomByObject

void addAxiomByObject(ObjectId obj,
                      Axiom a)

addAxiomBySubject

void addAxiomBySubject(ObjectId sub,
                       Axiom a)

addAxiomByType

void addAxiomByType(java.lang.Integer type,
                    Axiom a)

addAxiomNodeRestriction

void addAxiomNodeRestriction(AxiomNode res)

addAllAxiomNodeRestrictions

void addAllAxiomNodeRestrictions(java.util.Vector<AxiomNode> res)

getAllAxioms

java.util.List<Axiom> getAllAxioms()

getAllAxiomsByObject

java.util.Hashtable<ObjectId,java.util.Vector<Axiom>> getAllAxiomsByObject()

getAllAxiomsBySubject

java.util.Hashtable<ObjectId,java.util.Vector<Axiom>> getAllAxiomsBySubject()

getAllAxiomsByType

java.util.Hashtable<java.lang.Integer,java.util.Vector<Axiom>> getAllAxiomsByType()

getAxiomByObject

java.util.List<Axiom> getAxiomByObject(ObjectId object)

getAxiomBySubject

java.util.List<Axiom> getAxiomBySubject(ObjectId subject)

getAxiomByType

java.util.List<Axiom> getAxiomByType(java.lang.Integer type)

getAxiomNodeRestrictions

java.util.Vector<AxiomNode> getAxiomNodeRestrictions()

getAllPlusImportedAxioms

java.util.List<Axiom> getAllPlusImportedAxioms()

getAllPlusImportedAxiomsByObject

java.util.Hashtable<ObjectId,java.util.Vector<Axiom>> getAllPlusImportedAxiomsByObject()

getAllPlusImportedAxiomsBySubject

java.util.Hashtable<ObjectId,java.util.Vector<Axiom>> getAllPlusImportedAxiomsBySubject()

getAllPlusImportedAxiomsByType

java.util.Hashtable<java.lang.Integer,java.util.Vector<Axiom>> getAllPlusImportedAxiomsByType()

addImportedAxiom

void addImportedAxiom(Axiom a)