uk.ac.manchester.cs.owl.owlapi.turtle.parser
Class TurtleOntologyParser

java.lang.Object
  extended by org.semanticweb.owlapi.io.AbstractOWLParser
      extended by uk.ac.manchester.cs.owl.owlapi.turtle.parser.TurtleOntologyParser
All Implemented Interfaces:
OWLParser

public class TurtleOntologyParser
extends AbstractOWLParser

Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 23-Feb-2008


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

TurtleOntologyParser

public TurtleOntologyParser()
Method Detail

parse

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