|
Protégé-OWL 3.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.smi.protegex.owl.repository.impl.AbstractStreamBasedRepositoryImpl
edu.stanford.smi.protegex.owl.repository.impl.AbstractLocalRepository
public abstract class AbstractLocalRepository
User: matthewhorridge
The University Of Manchester
Medical Informatics Group
Date: Sep 21, 2005
Constructor Summary | |
---|---|
AbstractLocalRepository(File file,
boolean forceReadOnly)
|
Method Summary | |
---|---|
boolean |
contains(URI ontologyName)
Determines if the repository contains the specified ontology. |
protected File |
getFile()
|
InputStream |
getInputStream(URI ontologyName)
Gets an inputstream to read the specified ontology from |
Collection<URI> |
getOntologies()
Gets the name of the ontologies that this repository contains. |
String |
getOntologyLocationDescription(URI ontologyName)
Gets a description of where the specified ontology is located. |
OutputStream |
getOutputStream(URI ontologyName)
Gets an output stream which can be used to write changes to the specified ontology. |
String |
getRepositoryDescriptor()
Gets the descriptor for this repository. |
boolean |
isForceReadOnly()
|
boolean |
isSystem()
Determines if the ontology repository is a system repository. |
boolean |
isWritable(URI ontologyName)
Determines if the specified ontology is writable. |
protected URI |
processFile(File file)
|
protected void |
putOntology(URI ontologyName,
File file)
|
void |
refresh()
Causes the repository to contain the latest information. |
void |
setForceReadOnly(boolean forceReadOnly)
|
Methods inherited from class edu.stanford.smi.protegex.owl.repository.impl.AbstractStreamBasedRepositoryImpl |
---|
hasOutputStream, loadImportedAssertions |
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 |
---|
getRepositoryDescription |
Constructor Detail |
---|
public AbstractLocalRepository(File file, boolean forceReadOnly)
Method Detail |
---|
protected File getFile()
public void refresh()
Repository
protected void putOntology(URI ontologyName, File file)
public boolean contains(URI ontologyName)
Repository
ontologyName
- The name of the ontology.public Collection<URI> getOntologies()
Repository
Collection
containing
URI
s.public InputStream getInputStream(URI ontologyName) throws edu.stanford.smi.protege.exception.OntologyLoadException
AbstractStreamBasedRepositoryImpl
getInputStream
in class AbstractStreamBasedRepositoryImpl
ontologyName
- The name of the ontology.
InputStream
to read the ontology
from, or null
if the repository does not
contain the ontology or the ontology cannot be retrieved.
edu.stanford.smi.protege.exception.OntologyLoadException
public OutputStream getOutputStream(URI ontologyName) throws IOException
Repository
ontologyName
- The ontology to be written
OutputStream
that can be used to
write changes to the ontology, or null
if the
ontology is not writable.
IOException
public boolean isSystem()
Repository
public String getOntologyLocationDescription(URI ontologyName)
Repository
ontologyName
- The name of the ontology.
String
description of the location of
the ontology, for example, "file:/Users/Blah/Blah/Blah". This
return value will be an empty String
if the repository
does not contain the specified ontology.public String getRepositoryDescriptor()
Repository
public boolean isWritable(URI ontologyName)
Repository
true
if the ontology is writable,
or false
if the ontology is not writable.public boolean isForceReadOnly()
public void setForceReadOnly(boolean forceReadOnly)
protected URI processFile(File file)
|
Protégé-OWL 3.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |