org.coode.owlapi.manchesterowlsyntax
Class ManchesterOWLSyntaxOntologyParser

java.lang.Object
  extended by org.semanticweb.owlapi.io.AbstractOWLParser
      extended by org.coode.owlapi.manchesterowlsyntax.ManchesterOWLSyntaxOntologyParser
All Implemented Interfaces:
OWLParser

public class ManchesterOWLSyntaxOntologyParser
extends AbstractOWLParser

Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 13-Aug-2007


Constructor Summary
ManchesterOWLSyntaxOntologyParser()
           
 
Method Summary
 OWLOntologyFormat parse(OWLOntologyDocumentSource documentSource, OWLOntology ontology)
          Parses the ontology that has a concrete representation which is pointed to by the specified input source.
 
Methods inherited from class org.semanticweb.owlapi.io.AbstractOWLParser
getInputSource, getInputStream, getOWLOntologyManager, getRequestTypes, parse, setOWLOntologyManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManchesterOWLSyntaxOntologyParser

public ManchesterOWLSyntaxOntologyParser()
Method Detail

parse

public OWLOntologyFormat parse(OWLOntologyDocumentSource documentSource,
                               OWLOntology ontology)
                        throws OWLParserException,
                               java.io.IOException,
                               UnloadableImportException
Description copied from interface: OWLParser
Parses the ontology that has a concrete representation which is pointed to by the specified input source. Implementors of this method should load any imported ontologies with the makeImportsLoadRequest method on OWLOntologyManager.

Parameters:
documentSource - The input source which points the concrete representation. If the input source can provider a Reader then the ontology is parsed from the Reader. If the input source cannot provide a reader then it is parsed from the InputStream. If the input source cannot provide an InputStream then it is parsed from the ontology document IRI.
ontology - The ontology which the representation will be parsed into
Returns:
An OWLOntologyFormat which describes the concrete representation format which was parsed to obtain the ontology.
Throws:
OWLParserException - if there was a problem parsing the ontology. This indicates an error in the syntax with this ontology document that the parser reads.
java.io.IOException - if there was an IOException during parsing
UnloadableImportException - if loading this ontology prompted the loading of an import and the import could not be loaded.