2ronwalf/*
2ronwalf * Created on Nov 20, 2004
2ronwalf */
2ronwalfpackage org.mindswap.owl;
2ronwalf
2ronwalfimport java.net.URI;
2ronwalf
2ronwalfimport java.util.Set;
2ronwalf
2ronwalfimport org.mindswap.owls.service.Service;
2ronwalf
2ronwalf/**
2ronwalf * @author Evren Sirin
2ronwalf */
2ronwalfpublic interface OWLOntology extends OWLModel {
2ronwalf public URI getURI();
2ronwalf public void setURI(URI uri);
2ronwalf
2ronwalf public URI getFileURI();
2ronwalf public void setFileURI(URI uri);
2ronwalf
2ronwalf public OWLKnowledgeBase getKB();
2ronwalf
2ronwalf public Set getImports();
2ronwalf public Set getImports(boolean direct);
2ronwalf// public void setImports(Set imports);
2ronwalf public void addImport(OWLOntology ontology);
2ronwalf
2ronwalf
2ronwalf /**
2ronwalf * If this OWL-S ontology was translated from an older version of OWL-S
2ronwalf * (using <code>OWLSVersionTranslator</code>) then this function will return a
2ronwalf * reference to the original ontology. This way the information that
2ronwalf * might have been lost during translation, e.g. non-OWL-S descriptions
2ronwalf * in the original file, can still be accessed. If the ontology
2ronwalf * originally belongs to the latest version then this function will
2ronwalf * return a reference to itself.
2ronwalf *
2ronwalf * @return
2ronwalf */
2ronwalf public OWLOntology getTranslationSource();
2ronwalf
2ronwalf public void setTranslationSource(OWLOntology ontology);
2ronwalf
2ronwalf public Service getService();
2ronwalf
2ronwalf /**
2ronwalf * Merge the contents of this ontology with <code>ont</code> and return the
2ronwalf * merged ontology. Neither of the ontologies is changed. The returned
2ronwalf * ontology is NOT loaded to the KB automatically.
2ronwalf *
2ronwalf *
2ronwalf * @param ont
2ronwalf * @return
2ronwalf */
2ronwalf public OWLOntology union( OWLOntology ont );
2ronwalf
2ronwalf /**
2ronwalf * Add the contents of <code>ont</code> into this ontology.
2ronwalf *
2ronwalf * @param ont
2ronwalf * @return
2ronwalf */
2ronwalf public void add( OWLOntology ont );
2ronwalf}