edu.stanford.smi.protegex.owl.repository.impl
Class AbstractStreamBasedRepositoryImpl
java.lang.Object
edu.stanford.smi.protegex.owl.repository.impl.AbstractStreamBasedRepositoryImpl
- All Implemented Interfaces:
- Repository
- Direct Known Subclasses:
- AbstractLocalRepository, DublinCoreDLVersionRedirectRepository, ForcedURLRetrievalRepository, FTPRepository, HTTPRepository
public abstract class AbstractStreamBasedRepositoryImpl
- extends Object
- implements Repository
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractStreamBasedRepositoryImpl
public AbstractStreamBasedRepositoryImpl()
getInputStream
public abstract InputStream getInputStream(URI ontologyName)
throws edu.stanford.smi.protege.exception.OntologyLoadException
- Gets an inputstream to read the specified ontology
from
- Parameters:
ontologyName
- The name of the ontology.
- Returns:
- an
InputStream
to read the ontology
from, or null
if the repository does not
contain the ontology or the ontology cannot be retrieved.
- Throws:
edu.stanford.smi.protege.exception.OntologyLoadException
loadImportedAssertions
public TripleStore loadImportedAssertions(OWLModel owlModel,
URI ontologyName)
throws edu.stanford.smi.protege.exception.OntologyLoadException
- Specified by:
loadImportedAssertions
in interface Repository
- Parameters:
owlModel
- the model to add the import toontologyName
- the ontology name to use to look up the imported ontology.
- Throws:
edu.stanford.smi.protege.exception.OntologyLoadException
hasOutputStream
public boolean hasOutputStream(URI ontologyName)
- Description copied from interface:
Repository
- Determines if the ontology is writable through an output stream. Can only
be true if the ontology is writable.
- Specified by:
hasOutputStream
in interface Repository
Submit a bug report or feature request
Copyright (c) 1998-2009 Stanford University.