public abstract class AbstractOWLParser extends Object implements OWLParser
OWLOntologyManager
that should be
associated with the parser.Modifier and Type | Method and Description |
---|---|
OWLOntologyManager |
getOWLOntologyManager()
Deprecated.
Parser implementors should obtain ontology managers from the
ontology that gets supplied in the parse method.
|
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)
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)
public OWLOntologyFormat parse(IRI documentIRI, OWLOntology ontology) throws OWLParserException, IOException, UnloadableImportException
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 addednull
OWLParserException
- 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 © 2017 The University of Manchester. All Rights Reserved.