edu.stanford.smi.protegex.owl.model
Interface OWLOntology

All Superinterfaces:
Comparable, edu.stanford.smi.protege.model.Frame, edu.stanford.smi.protege.model.Instance, ProtegeInstance, RDFObject, RDFResource, Visitable
All Known Implementing Classes:
DefaultOWLOntology

public interface OWLOntology
extends RDFResource

A RDFIndividual that represents an OWL Ontology (tag). Ontologies represent metadata such as versioning info and includes. There is usually only one Ontology defined in each OWL file.

Although this inherits namespace support, the Ontology's URI itself is stored in a separate own slot, which is accessible through the getOntologyURI() and setOntologyURI() methods. Note that it is not recommended to do low level changes to OWLOntologies; in particular the name should not be changed.

Author:
Holger Knublauch

Method Summary
 void addBackwardCompatibleWith(String resource)
           
 void addImports(OWLOntology ontology)
           
 void addImports(RDFExternalResource resource)
          Deprecated. use version with RDFUntypedResource instead
 void addImports(RDFUntypedResource resource)
           
 void addImports(String uri)
          Adds an URI to the owl:imports statements of this ontology.
 void addImports(URI uri)
           
 void addIncompatibleWith(String resource)
           
 void addPriorVersion(String resource)
           
 Collection getBackwardCompatibleWith()
           
 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()
          Deprecated. now getURI() can be used for that
 Collection getPriorVersions()
           
 void removeBackwardCompatibleWith(String resource)
           
 void removeImports(String uri)
           
 void removeIncompatibleWith(String resource)
           
 void removePriorVersion(String resource)
           
 
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, getBrowserText, 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, getIcon, 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
 
Methods inherited from interface edu.stanford.smi.protegex.owl.model.RDFObject
equalsStructurally
 
Methods inherited from interface edu.stanford.smi.protegex.owl.model.visitor.Visitable
accept
 

Method Detail

addBackwardCompatibleWith

public void addBackwardCompatibleWith(String resource)

addImports

public void addImports(String uri)
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).

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)

addImports

public void addImports(RDFExternalResource resource)
Deprecated. use version with RDFUntypedResource instead


addImports

public void addImports(OWLOntology ontology)

addImports

public void addImports(RDFUntypedResource resource)

addIncompatibleWith

public void addIncompatibleWith(String resource)

addPriorVersion

public void addPriorVersion(String resource)

getBackwardCompatibleWith

public Collection getBackwardCompatibleWith()

getImports

public Collection getImports()
Gets the URIs of the imports (as strings)

Returns:
a Collection of strings

getImportResources

public Collection getImportResources()
Gets the URIs of the imports as RDFUntypedResources or OWLOntologies.

Returns:
the import resources

getIncompatibleWith

public Collection getIncompatibleWith()

getOntologyURI

public String getOntologyURI()
Deprecated. now getURI() can be used for that

See Also:
RDFResource.getURI()

getPriorVersions

public Collection getPriorVersions()

removeBackwardCompatibleWith

public void removeBackwardCompatibleWith(String resource)

removeImports

public void removeImports(String uri)

removeIncompatibleWith

public void removeIncompatibleWith(String resource)

removePriorVersion

public void removePriorVersion(String resource)