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 with a concrete representation available at
documentIRI and adds its axioms to ontology. |
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 returnedconfig - the load configurationIOException - 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
OWLParserdocumentIRI and adds its axioms to ontology. Implementors
of this method should load imported ontologies through
makeLoadImportRequest().parse in interface OWLParserdocumentIRI - the IRI of the document to parseontology - the ontology to which the parsed axioms are addednullOWLParserException - if there was a parsing problem parsing the ontology.IOException - if there was an IO problem during parsing.UnloadableImportException - if one or more imports could not be loaded.Copyright © 2014 The University of Manchester. All Rights Reserved.