public abstract class AbstractOWLParser extends Object implements OWLParser, Serializable
OWLOntologyManager
that should be associated with the parser. Note: all
current parser implementations are stateless.Modifier and Type | Method and Description |
---|---|
String |
getName() |
OWLDocumentFormat |
parse(IRI documentIRI,
OWLOntology ontology)
Parses the ontology with a concrete representation available at
documentIRI and adds
its axioms to ontology . |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSupportedFormat, parse
@Nonnull public OWLDocumentFormat parse(IRI documentIRI, OWLOntology ontology) throws IOException
OWLParser
documentIRI
and adds
its axioms to ontology
. Implementors of this method should load imported ontologies
through
makeLoadImportRequest()
.parse
in interface OWLParser
documentIRI
- the IRI of the document to parseontology
- the ontology to which the parsed axioms are addedIOException
- if there was an IO problem during parsing.Copyright © 2020 The University of Manchester. All rights reserved.