|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.semanticweb.elk.loading.AbstractAxiomLoader
org.semanticweb.elk.loading.Owl2ParserLoader
public class Owl2ParserLoader
An AxiomLoader that loads an ontology using a provided
Owl2Parser.
| Field Summary | |
|---|---|
protected ElkLoadingException |
exception
the exception created if something goes wrong |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected volatile ElkLoadingException exception
| Constructor Detail |
|---|
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 ontology| Method Detail |
|---|
public 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 again
load in interface AxiomLoaderload in class AbstractAxiomLoaderaxiomInserter - an ElkAxiomProcessor that inserts the axioms that were
addedaxiomDeleter - an ElkAxiomProcessor that deletes the axioms that were
removed
ElkLoadingException - if loading cannot be completed successfullypublic void dispose()
AxiomLoaderAxiomLoader
dispose 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||