edu.stanford.smi.protegex.owl.model.impl
Class DefaultOWLOntology

java.lang.Object
  extended byedu.stanford.smi.protege.model.DefaultFrame
      extended byedu.stanford.smi.protege.model.DefaultInstance
          extended byedu.stanford.smi.protege.model.DefaultSimpleInstance
              extended byedu.stanford.smi.protegex.owl.model.impl.DefaultRDFIndividual
                  extended byedu.stanford.smi.protegex.owl.model.impl.DefaultOWLOntology
All Implemented Interfaces:
Comparable, Externalizable, edu.stanford.smi.protege.model.Frame, edu.stanford.smi.protege.model.Instance, edu.stanford.smi.protege.model.Localizable, OWLOntology, ProtegeInstance, RDFIndividual, RDFObject, RDFResource, Serializable, edu.stanford.smi.protege.model.SimpleInstance, Visitable

public class DefaultOWLOntology
extends DefaultRDFIndividual
implements OWLOntology

The default implementation of the OWLObjectProperty interface.

Author:
Holger Knublauch
See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.stanford.smi.protege.model.DefaultFrame
 
Constructor Summary
DefaultOWLOntology()
           
DefaultOWLOntology(edu.stanford.smi.protege.model.KnowledgeBase kb, edu.stanford.smi.protege.model.FrameID id)
           
 
Method Summary
 void accept(OWLModelVisitor visitor)
          This method is provided to be used with the OWLModelVisitor, which is part of the visitor design pattern.
 void addBackwardCompatibleWith(String resource)
           
 void addImports(OWLOntology ontology)
           
 void addImports(RDFExternalResource resource)
           
 void addImports(RDFUntypedResource resource)
           
 void addImports(String uri)
          Adds an URI to the owl:imports statements of this ontology.
 void addImports(URI uri)
           
private  void addImportsHelper(Object resource)
           
 void addIncompatibleWith(String resource)
           
 void addPriorVersion(String resource)
           
 boolean equalsStructurally(RDFObject object)
          Determines whether or not the specified class is structurally equal to this class.
 Collection getBackwardCompatibleWith()
           
 String getBrowserText()
          Gets a human-readable visual representation of this resource.
 Icon getIcon()
           
 Collection getImportResources()
          Gets the URIs of the imports as RDFUntypedResources or OWLOntologies.
 Collection getImports()
          Gets the URIs of the imports (as strings)
 Collection getIncompatibleWith()
           
 String getOntologyURI()
           
 Collection getPriorVersions()
           
 void removeBackwardCompatibleWith(String resource)
           
 void removeImports(String uri)
           
 void removeIncompatibleWith(String resource)
           
 void removePriorVersion(String resource)
           
 
Methods inherited from class edu.stanford.smi.protegex.owl.model.impl.DefaultRDFIndividual
addComment, addDifferentFrom, addIsDefinedBy, addLabel, addPropertyValue, addPropertyValueListener, addProtegeType, addRDFType, addResourceListener, addSameAs, addVersionInfo, as, canAs, getAllValuesFromOnTypes, getComments, getDifferentFrom, getDocumentation, getHasValuesOnTypes, getIconLocation, getIconName, getInferredTypes, getIsDefinedBy, getLabels, getLocalName, getNamespace, getNamespacePrefix, getOWLModel, getPossibleRDFProperties, getPropertyValue, getPropertyValue, getPropertyValueAs, getPropertyValueCount, getPropertyValueLiteral, getPropertyValueLiterals, getPropertyValues, getPropertyValues, getPropertyValuesAs, getProtegeType, getProtegeTypes, getRDFProperties, getRDFType, getRDFTypes, getReferringAnonymousClasses, getSameAs, getURI, getVersionInfo, hasPropertyValue, hasPropertyValue, hasPropertyValue, hasPropertyValue, hasProtegeType, hasProtegeType, hasRDFType, hasRDFType, isAnonymous, isValidPropertyValue, listPropertyValues, listPropertyValues, listPropertyValuesAs, listRDFTypes, removeComment, removeDifferentFrom, removeIsDefinedBy, removeLabel, removePropertyValue, removePropertyValueListener, removeProtegeType, removeRDFType, removeResourceListener, removeSameAs, removeVersionInfo, setComment, setComments, setDocumentation, setInferredTypes, setPropertyValue, setPropertyValues, setProtegeType, setProtegeTypes, setRDFType, setRDFTypes
 
Methods inherited from class edu.stanford.smi.protege.model.DefaultSimpleInstance
toString
 
Methods inherited from class edu.stanford.smi.protege.model.DefaultInstance
addDirectType, addInstanceListener, copy, deepCopy, getDirectType, getDirectTypes, getOwnFacetValue, getOwnFacetValues, getReachableSimpleInstances, hasDirectType, hasType, moveDirectType, removeDirectType, removeInstanceListener, setDirectType, setDirectTypes, shallowCopy
 
Methods inherited from class edu.stanford.smi.protege.model.DefaultFrame
addFrameListener, addOwnFacetValue, addOwnSlotValue, areValidOwnSlotValues, compareTo, delete, equals, equals, getDefaultKnowledgeBase, getDefiningProjectURI, getDirectOwnSlotValue, getDirectOwnSlotValues, getFrameID, getInvalidOwnSlotValuesText, getInvalidOwnSlotValueText, getKnowledgeBase, getName, getOwnSlotAllowsMultipleValues, getOwnSlotAndSubslotValues, getOwnSlotDefaultValues, getOwnSlotFacets, getOwnSlotFacetValues, getOwnSlots, getOwnSlotValue, getOwnSlotValueCount, getOwnSlotValues, getOwnSlotValueType, getProject, getReferences, getReferences, hashCode, hasOwnSlot, isBeingDeleted, isDeleted, isEditable, isIncluded, isSystem, isValid, isValidOwnSlotValue, isVisible, localize, markDeleted, markDeleting, moveDirectOwnSlotValue, readExternal, removeFrameListener, removeOwnSlotValue, setDirectOwnSlotValue, setDirectOwnSlotValues, setDocumentation, setEditable, setIncluded, setName, setOwnFacetValue, setOwnFacetValues, setOwnSlotValue, setOwnSlotValues, setSystem, setVisible, writeExternal
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.stanford.smi.protegex.owl.model.RDFResource
addComment, addDifferentFrom, addIsDefinedBy, addLabel, addPropertyValue, addPropertyValueListener, addProtegeType, addRDFType, addResourceListener, addSameAs, addVersionInfo, as, canAs, delete, getAllValuesFromOnTypes, getComments, getDifferentFrom, getHasValuesOnTypes, getIconLocation, getIconName, getInferredTypes, getIsDefinedBy, getLabels, getLocalName, getName, getNamespace, getNamespacePrefix, getOWLModel, getPossibleRDFProperties, getPropertyValue, getPropertyValue, getPropertyValueAs, getPropertyValueCount, getPropertyValueLiteral, getPropertyValueLiterals, getPropertyValues, getPropertyValues, getPropertyValuesAs, getProtegeType, getProtegeTypes, getRDFProperties, getRDFType, getRDFTypes, getReferringAnonymousClasses, getSameAs, getURI, getVersionInfo, hasPropertyValue, hasPropertyValue, hasPropertyValue, hasPropertyValue, hasProtegeType, hasProtegeType, hasRDFType, hasRDFType, isAnonymous, isValidPropertyValue, isVisible, listPropertyValues, listPropertyValues, listPropertyValuesAs, listRDFTypes, removeComment, removeDifferentFrom, removeIsDefinedBy, removeLabel, removePropertyValue, removePropertyValueListener, removeProtegeType, removeRDFType, removeResourceListener, removeSameAs, removeVersionInfo, setComment, setComments, setInferredTypes, setName, setPropertyValue, setPropertyValues, setProtegeType, setProtegeTypes, setRDFType, setRDFTypes, setVisible
 
Methods inherited from interface edu.stanford.smi.protegex.owl.model.ProtegeInstance
addDirectType, addFrameListener, addInstanceListener, addOwnFacetValue, addOwnSlotValue, areValidOwnSlotValues, copy, deepCopy, getDirectOwnSlotValue, getDirectOwnSlotValues, getDirectType, getDirectTypes, getDocumentation, getFrameID, getInvalidOwnSlotValuesText, getInvalidOwnSlotValueText, getKnowledgeBase, getOwnFacetValue, getOwnFacetValues, getOwnSlotAllowsMultipleValues, getOwnSlotAndSubslotValues, getOwnSlotDefaultValues, getOwnSlotFacets, getOwnSlotFacetValues, getOwnSlots, getOwnSlotValue, getOwnSlotValueCount, getOwnSlotValues, getOwnSlotValueType, getProject, getReachableSimpleInstances, getReferences, getReferences, hasDirectType, hasOwnSlot, hasType, isBeingDeleted, isDeleted, isEditable, isIncluded, isSystem, isValidOwnSlotValue, markDeleted, markDeleting, removeDirectType, removeFrameListener, removeInstanceListener, removeOwnSlotValue, setDirectOwnSlotValue, setDirectOwnSlotValues, setDirectType, setDirectTypes, setDocumentation, setDocumentation, setEditable, setIncluded, setOwnFacetValue, setOwnFacetValues, setOwnSlotValue, setOwnSlotValues, shallowCopy
 
Methods inherited from interface edu.stanford.smi.protege.model.Instance
moveDirectType
 
Methods inherited from interface edu.stanford.smi.protege.model.Frame
isValid, moveDirectOwnSlotValue
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

DefaultOWLOntology

public DefaultOWLOntology(edu.stanford.smi.protege.model.KnowledgeBase kb,
                          edu.stanford.smi.protege.model.FrameID id)

DefaultOWLOntology

public DefaultOWLOntology()
Method Detail

accept

public void accept(OWLModelVisitor visitor)
Description copied from interface: Visitable
This method is provided to be used with the OWLModelVisitor, which is part of the visitor design pattern. By implementing this method, instances of the implementing class are stating that they can accept an OWLModelVisitor

Specified by:
accept in interface Visitable
Overrides:
accept in class DefaultRDFIndividual

addBackwardCompatibleWith

public void addBackwardCompatibleWith(String resource)
Specified by:
addBackwardCompatibleWith in interface OWLOntology

addImports

public void addImports(String uri)
Description copied from interface: OWLOntology
Adds an URI to the owl:imports statements of this ontology. Note that this does not actually load the imported ontology - it only adds the import statement. If you want to load the import immediately, then you need to call the corresponding method in ProtegeOWLParser (for file-based projects).

Specified by:
addImports in interface OWLOntology
Parameters:
uri - an URI (not ending with a deliminator such as #)
See Also:
ProtegeOWLParser.addImport(edu.stanford.smi.protegex.owl.jena.JenaOWLModel, java.net.URI)

addImports

public void addImports(URI uri)
Specified by:
addImports in interface OWLOntology

addImports

public void addImports(RDFExternalResource resource)
Specified by:
addImports in interface OWLOntology

addImports

public void addImports(RDFUntypedResource resource)
Specified by:
addImports in interface OWLOntology

addImports

public void addImports(OWLOntology ontology)
Specified by:
addImports in interface OWLOntology

addImportsHelper

private void addImportsHelper(Object resource)

addIncompatibleWith

public void addIncompatibleWith(String resource)
Specified by:
addIncompatibleWith in interface OWLOntology

addPriorVersion

public void addPriorVersion(String resource)
Specified by:
addPriorVersion in interface OWLOntology

equalsStructurally

public boolean equalsStructurally(RDFObject object)
Description copied from interface: RDFObject
Determines whether or not the specified class is structurally equal to this class. Note that this does not test for structural equivalence using structural subsumption tests.

Specified by:
equalsStructurally in interface RDFObject
Overrides:
equalsStructurally in class DefaultRDFIndividual

getBackwardCompatibleWith

public Collection getBackwardCompatibleWith()
Specified by:
getBackwardCompatibleWith in interface OWLOntology

getBrowserText

public String getBrowserText()
Description copied from interface: RDFResource
Gets a human-readable visual representation of this resource. This is typically just the name of the resource, but for example, with anonymous class expressions this will return the full expression including special symbols.

Specified by:
getBrowserText in interface RDFResource

getIcon

public Icon getIcon()
Specified by:
getIcon in interface ProtegeInstance
Overrides:
getIcon in class DefaultRDFIndividual

getImports

public Collection getImports()
Description copied from interface: OWLOntology
Gets the URIs of the imports (as strings)

Specified by:
getImports in interface OWLOntology
Returns:
a Collection of strings

getImportResources

public Collection getImportResources()
Description copied from interface: OWLOntology
Gets the URIs of the imports as RDFUntypedResources or OWLOntologies.

Specified by:
getImportResources in interface OWLOntology
Returns:
the import resources

getIncompatibleWith

public Collection getIncompatibleWith()
Specified by:
getIncompatibleWith in interface OWLOntology

getOntologyURI

public String getOntologyURI()
Specified by:
getOntologyURI in interface OWLOntology
See Also:
RDFResource.getURI()

getPriorVersions

public Collection getPriorVersions()
Specified by:
getPriorVersions in interface OWLOntology

removeBackwardCompatibleWith

public void removeBackwardCompatibleWith(String resource)
Specified by:
removeBackwardCompatibleWith in interface OWLOntology

removeImports

public void removeImports(String uri)
Specified by:
removeImports in interface OWLOntology

removeIncompatibleWith

public void removeIncompatibleWith(String resource)
Specified by:
removeIncompatibleWith in interface OWLOntology

removePriorVersion

public void removePriorVersion(String resource)
Specified by:
removePriorVersion in interface OWLOntology