Protégé-OWL 3.4

edu.stanford.smi.protegex.owl.repository.impl
Class AbstractStreamBasedRepositoryImpl

java.lang.Object
  extended by 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


Constructor Summary
AbstractStreamBasedRepositoryImpl()
           
 
Method Summary
abstract  InputStream getInputStream(URI ontologyName)
          Gets an inputstream to read the specified ontology from
 boolean hasOutputStream(URI ontologyName)
          Determines if the ontology is writable through an output stream.
 TripleStore loadImportedAssertions(OWLModel owlModel, URI ontologyName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.stanford.smi.protegex.owl.repository.Repository
contains, getOntologies, getOntologyLocationDescription, getOutputStream, getRepositoryDescription, getRepositoryDescriptor, isSystem, isWritable, refresh
 

Constructor Detail

AbstractStreamBasedRepositoryImpl

public AbstractStreamBasedRepositoryImpl()
Method Detail

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 to
ontologyName - 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

Protégé-OWL 3.4

Submit a bug report or feature request
Copyright (c) 1998-2009 Stanford University.