Owl2ParserLoader extends AbstractAxiomLoader implements
		AxiomLoader { @Override public synchronized void load(ElkAxiomProcessor axiomInserter, ElkAxiomProcessor axiomDeleter) throws ElkLoadingException { if (finished_) return; if (!started_) { parserThread_.start(); started_ = true; } ArrayList<ElkAxiom> nextBatch; for (;;) { if (isInterrupted()) break; try { nextBatch = axiomExchanger_.take(); } catch (InterruptedException e) { Thread.currentThread().interrupt(); break; } if (nextBatch == POISON_BATCH_) { break; } for (int i = 0; i < nextBatch.size(); i++) { ElkAxiom axiom = nextBatch.get(i); axiomInserter.visit(axiom); } } if (exception != null) { throw exception; } } Owl2ParserLoader(final InterruptMonitor interrupter,
			Owl2Parser owlParser, int batchLength);  Owl2ParserLoader(final InterruptMonitor interrupter,
			Owl2Parser owlParser); @Override synchronized void load(ElkAxiomProcessor axiomInserter,
			ElkAxiomProcessor axiomDeleter); @Override synchronized void dispose(); @Override boolean isLoadingFinished();  }
@Test(expected = ElkLoadingException.class) public void expectedLoadingExceptionOnSyntaxError() throws ElkLoadingException { String ontology = "" + "Prefix( : = <http: + "Ontology((((()(" + "EquivalentClasses(:B :C)" + "SubClassOf(:A ObjectSomeValuesFrom(:R :B))" + "))"; load(ontology); }
@Test(expected = ElkLoadingException.class) public void expectedLoadingExceptionOnLexicalError() throws Exception { String ontology = "" + "Prefix( : = <http: + "Ontology-LEXICAL-ERROR(" + "EquivalentClasses(:B :C)" + "SubClassOf(:A ObjectSomeValuesFrom(:R :B))" + ")"; load(ontology); }