public class Owl2ParserLoader extends AbstractAxiomLoader implements AxiomLoader
AxiomLoader that loads an ontology using a provided
Owl2Parser.| Modifier and Type | Field and Description |
|---|---|
protected ElkLoadingException |
exception
the exception created if something goes wrong
|
| Constructor and Description |
|---|
Owl2ParserLoader(Owl2Parser owlParser)
Creating an
Owl2ParserLoader, which loads axioms generated using
Owl2Parser. |
Owl2ParserLoader(Owl2Parser owlParser,
int batchLength)
Creating an
Owl2ParserLoader, which loads axioms generated using
Owl2Parser. |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Close resources used by this
AxiomLoader |
protected void |
disposeParserResources()
A hook to free resources used by the parser
|
boolean |
isLoadingFinished() |
void |
load(ElkAxiomProcessor axiomInserter,
ElkAxiomProcessor axiomDeleter)
Loads pending axioms using the provided
axiomInserter for
inserting axioms and axiomDeleter for deleting axioms; if called
twice, the already loaded axioms will not be processed again |
isInterrupted, setInterruptclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisInterrupted, setInterruptprotected volatile ElkLoadingException exception
public Owl2ParserLoader(Owl2Parser owlParser, int batchLength)
Owl2ParserLoader, which loads axioms generated using
Owl2Parser. The axioms generated by the parser are stored in a
buffer of the given bufferSize.owlParser - the parser used to load the ontologybatchLength - the size of the batch for exchanging axiomspublic Owl2ParserLoader(Owl2Parser owlParser)
Owl2ParserLoader, which loads axioms generated using
Owl2Parser.owlParser - the parser used to load the ontologypublic void load(ElkAxiomProcessor axiomInserter, ElkAxiomProcessor axiomDeleter) throws ElkLoadingException
AxiomLoaderaxiomInserter for
inserting axioms and axiomDeleter for deleting axioms; if called
twice, the already loaded axioms will not be processed againload in interface AxiomLoaderload in class AbstractAxiomLoaderaxiomInserter - an ElkAxiomProcessor that inserts the axioms that were
addedaxiomDeleter - an ElkAxiomProcessor that deletes the axioms that were
removedElkLoadingException - if loading cannot be completed successfullypublic void dispose()
AxiomLoaderAxiomLoaderdispose in interface AxiomLoaderdispose in class AbstractAxiomLoaderpublic boolean isLoadingFinished()
isLoadingFinished in interface AxiomLoaderisLoadingFinished in class AbstractAxiomLoadertrue if the loading is finished, i.e., calling
AxiomLoader.load(ElkAxiomProcessor, ElkAxiomProcessor)
will have no effectprotected void disposeParserResources()
Copyright © 2011-2015 Department of Computer Science, University of Oxford. All Rights Reserved.