org.coode.owlapi.turtle
Class TurtleRenderer

java.lang.Object
  extended by org.coode.owlapi.rdf.renderer.RDFRendererBase
      extended by org.coode.owlapi.turtle.TurtleRenderer

public class TurtleRenderer
extends RDFRendererBase

Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 26-Jan-2008


Nested Class Summary
 
Nested classes/interfaces inherited from class org.coode.owlapi.rdf.renderer.RDFRendererBase
RDFRendererBase.TripleComparator
 
Field Summary
 
Fields inherited from class org.coode.owlapi.rdf.renderer.RDFRendererBase
manager, ontology, prettyPrintedTypes, RENDER_DECLARATION_AXIOMS_KEY
 
Constructor Summary
TurtleRenderer(OWLOntology ontology, OWLOntologyManager manager, java.io.Writer writer, OWLOntologyFormat format)
           
 
Method Summary
protected  void beginDocument()
           
protected  void endDocument()
           
protected  void endObject()
           
 void popTab()
           
 void pushTab()
           
 void render(RDFResourceNode node)
          Renders the triples whose subject is the specified node
protected  void writeAnnotationPropertyComment(OWLAnnotationProperty prop)
           
protected  void writeBanner(java.lang.String name)
           
protected  void writeClassComment(OWLClass cls)
           
protected  void writeDataPropertyComment(OWLDataProperty prop)
           
protected  void writeDatatypeComment(OWLDatatype datatype)
           
protected  void writeIndividualComments(OWLNamedIndividual ind)
           
protected  void writeObjectPropertyComment(OWLObjectProperty prop)
           
 
Methods inherited from class org.coode.owlapi.rdf.renderer.RDFRendererBase
beginObject, getGraph, getOntology, isObjectList, render, renderAnonRoots, toJavaList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TurtleRenderer

public TurtleRenderer(OWLOntology ontology,
                      OWLOntologyManager manager,
                      java.io.Writer writer,
                      OWLOntologyFormat format)
Method Detail

pushTab

public void pushTab()

popTab

public void popTab()

beginDocument

protected void beginDocument()
Specified by:
beginDocument in class RDFRendererBase

endDocument

protected void endDocument()
Specified by:
endDocument in class RDFRendererBase

writeClassComment

protected void writeClassComment(OWLClass cls)
Specified by:
writeClassComment in class RDFRendererBase

writeObjectPropertyComment

protected void writeObjectPropertyComment(OWLObjectProperty prop)
Specified by:
writeObjectPropertyComment in class RDFRendererBase

writeDataPropertyComment

protected void writeDataPropertyComment(OWLDataProperty prop)
Specified by:
writeDataPropertyComment in class RDFRendererBase

writeIndividualComments

protected void writeIndividualComments(OWLNamedIndividual ind)
Specified by:
writeIndividualComments in class RDFRendererBase

writeAnnotationPropertyComment

protected void writeAnnotationPropertyComment(OWLAnnotationProperty prop)
Specified by:
writeAnnotationPropertyComment in class RDFRendererBase

writeDatatypeComment

protected void writeDatatypeComment(OWLDatatype datatype)
Specified by:
writeDatatypeComment in class RDFRendererBase

endObject

protected void endObject()
Overrides:
endObject in class RDFRendererBase

writeBanner

protected void writeBanner(java.lang.String name)
Specified by:
writeBanner in class RDFRendererBase

render

public void render(RDFResourceNode node)
Renders the triples whose subject is the specified node

Specified by:
render in class RDFRendererBase
Parameters:
node - The node