public abstract class AbstractOWLParser extends java.lang.Object implements OWLParser
OWLOntologyManager
that
should be associated with the parserModifier | Constructor and Description |
---|---|
protected |
AbstractOWLParser() |
Modifier and Type | Method and Description |
---|---|
protected org.xml.sax.InputSource |
getInputSource(OWLOntologyDocumentSource documentSource) |
protected java.io.InputStream |
getInputStream(IRI documentIRI)
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 java.lang.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)
OWLParser
OWLOntologyManager
which should be used to load
imports etc.setOWLOntologyManager
in interface OWLParser
owlOntologyManager
- The ontology manager to be set@Deprecated public OWLOntologyManager getOWLOntologyManager()
setOWLOntologyManager(org.semanticweb.owlapi.model.OWLOntologyManager)
protected java.lang.String getRequestTypes()
protected java.io.InputStream getInputStream(IRI documentIRI) throws java.io.IOException
documentIRI
- The URI from which the input stream should be returnedjava.io.IOException
- if there was an IOException
in obtaining the input stream from the URI.protected org.xml.sax.InputSource getInputSource(OWLOntologyDocumentSource documentSource) throws java.io.IOException
java.io.IOException
public OWLOntologyFormat parse(IRI documentIRI, OWLOntology ontology) throws OWLParserException, java.io.IOException, UnloadableImportException
OWLParser
parse
in interface OWLParser
documentIRI
- 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.java.io.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.