org.coode.owl.krssparser
Class KRSSOWLParser

java.lang.Object
  extended by org.semanticweb.owlapi.io.AbstractOWLParser
      extended by org.coode.owl.krssparser.KRSSOWLParser
All Implemented Interfaces:
OWLParser

public class KRSSOWLParser
extends AbstractOWLParser

Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 14-Nov-2006


Constructor Summary
KRSSOWLParser()
           
 
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

KRSSOWLParser

public KRSSOWLParser()
Method Detail

parse

public OWLOntologyFormat parse(OWLOntologyDocumentSource documentSource,
                               OWLOntology ontology)
                        throws OWLParserException,
                               java.io.IOException
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