public abstract class AbstractOWLParser extends Object implements OWLParser
OWLOntologyManager that should be
associated with the parser| Modifier | Constructor and Description |
|---|---|
protected |
AbstractOWLParser() |
| Modifier and Type | Method and Description |
|---|---|
protected InputSource |
getInputSource(OWLOntologyDocumentSource documentSource,
OWLOntologyLoaderConfiguration config) |
protected InputStream |
getInputStream(IRI documentIRI,
OWLOntologyLoaderConfiguration config)
A convenience method that obtains an input stream from a URI.
|
OWLOntologyManager |
getOWLOntologyManager()
Deprecated.
Parser implementors should obtain ontology managers from the
ontology that gets supplied in the parse method.
|
protected String |
getRequestTypes() |
OWLOntologyFormat |
parse(IRI documentIRI,
OWLOntology ontology)
Parses the ontology that has a concrete representation which is pointed
to by the specified document IRI.
|
void |
setOWLOntologyManager(OWLOntologyManager owlOntologyManager)
Deprecated.
|
@Deprecated public void setOWLOntologyManager(OWLOntologyManager owlOntologyManager)
OWLParserOWLOntologyManager which should be used to load
imports etc.setOWLOntologyManager in interface OWLParserowlOntologyManager - The ontology manager to be set@Deprecated public OWLOntologyManager getOWLOntologyManager()
setOWLOntologyManager(org.semanticweb.owlapi.model.OWLOntologyManager)protected String getRequestTypes()
protected InputStream getInputStream(IRI documentIRI, OWLOntologyLoaderConfiguration config) throws IOException
documentIRI - The URI from which the input stream should be returnedIOException - if there was an IOException in obtaining the
input stream from the URI.protected InputSource getInputSource(OWLOntologyDocumentSource documentSource, OWLOntologyLoaderConfiguration config) throws IOException
IOExceptionpublic OWLOntologyFormat parse(IRI documentIRI, OWLOntology ontology) throws OWLParserException, IOException, UnloadableImportException
OWLParserparse in interface OWLParserdocumentIRI - The document IRI where the ontology should be loaded fromontology - The ontology that the concrete representation should be
parsed into. @return An OWLOntologyFormat which describes the concrete representation
format which was parsed to obtain the ontology. This will never be null.OWLParserException - if there was a problem parsing the ontology. This indicates an error in the syntax
with this ontology document that the parser reads.IOException - if there was an IOException during parsingUnloadableImportException - if loading this ontology prompted the loading of an import and the import
could not be loaded.Copyright © 2013 The University of Manchester. All Rights Reserved.