public class RDFXMLRenderer extends RDFRendererBase
RDFRendererBase.TripleComparator
GENERAL_AXIOMS_BANNER_TEXT, ontology, prettyPrintedTypes, RULES_BANNER_TEXT, tripleComparator
Constructor and Description |
---|
RDFXMLRenderer(OWLOntologyManager manager,
OWLOntology ontology,
java.io.Writer w)
Deprecated.
|
RDFXMLRenderer(OWLOntologyManager manager,
OWLOntology ontology,
java.io.Writer w,
OWLOntologyFormat format)
Deprecated.
|
RDFXMLRenderer(OWLOntology ontology,
java.io.Writer w) |
RDFXMLRenderer(OWLOntology ontology,
java.io.Writer w,
OWLOntologyFormat format) |
Modifier and Type | Method and Description |
---|---|
protected void |
beginDocument()
Called before the ontology document is rendered.
|
protected void |
endDocument()
Called after the ontology document has been rendered.
|
java.util.Set<OWLEntity> |
getUnserialisableEntities() |
void |
render(RDFResourceNode node)
Renders the triples in the current graph into a concrete format.
|
protected void |
writeAnnotationPropertyComment(OWLAnnotationProperty prop)
Called before an annotation property is rendered to give subclasses the chance to prefix the rendering with
comments etc.
|
protected void |
writeBanner(java.lang.String name) |
protected void |
writeClassComment(OWLClass cls)
Called before a class is rendered to give subclasses the chance to prefix the rendering with comments etc.
|
protected void |
writeDataPropertyComment(OWLDataProperty prop)
Called before a data property is rendered to give subclasses the chance to prefix the rendering with comments etc.
|
protected void |
writeDatatypeComment(OWLDatatype datatype)
Called before a datatype is rendered to give subclasses the chance to prefix the rendering with comments etc.
|
protected void |
writeIndividualComments(OWLNamedIndividual ind)
Called before an individual is rendered to give subclasses the chance to prefix the rendering with comments etc.
|
protected void |
writeObjectPropertyComment(OWLObjectProperty prop)
Called before an object property is rendered.
|
beginObject, createGraph, endObject, getGraph, getOntology, isObjectList, render, renderAnonRoots, shouldInsertDeclarations, toJavaList
@Deprecated public RDFXMLRenderer(OWLOntologyManager manager, OWLOntology ontology, java.io.Writer w)
public RDFXMLRenderer(OWLOntology ontology, java.io.Writer w)
@Deprecated public RDFXMLRenderer(OWLOntologyManager manager, OWLOntology ontology, java.io.Writer w, OWLOntologyFormat format)
public RDFXMLRenderer(OWLOntology ontology, java.io.Writer w, OWLOntologyFormat format)
public java.util.Set<OWLEntity> getUnserialisableEntities()
protected void beginDocument() throws java.io.IOException
RDFRendererBase
beginDocument
in class RDFRendererBase
java.io.IOException
- if there was a problem writing to the output streamprotected void endDocument() throws java.io.IOException
RDFRendererBase
endDocument
in class RDFRendererBase
java.io.IOException
- if there was a problem writing to the output streamprotected void writeIndividualComments(OWLNamedIndividual ind) throws java.io.IOException
RDFRendererBase
writeIndividualComments
in class RDFRendererBase
ind
- The individual being renderedjava.io.IOException
- if there was a problem writing to the output streamprotected void writeClassComment(OWLClass cls) throws java.io.IOException
RDFRendererBase
writeClassComment
in class RDFRendererBase
cls
- The class being renderedjava.io.IOException
- if there was a problem writing to the output streamprotected void writeDataPropertyComment(OWLDataProperty prop) throws java.io.IOException
RDFRendererBase
writeDataPropertyComment
in class RDFRendererBase
prop
- The property being renderedjava.io.IOException
- if there was a problem writing to the output streamprotected void writeObjectPropertyComment(OWLObjectProperty prop) throws java.io.IOException
RDFRendererBase
writeObjectPropertyComment
in class RDFRendererBase
prop
- The property being renderedjava.io.IOException
- if there was a problem writing to the output streamprotected void writeAnnotationPropertyComment(OWLAnnotationProperty prop) throws java.io.IOException
RDFRendererBase
writeAnnotationPropertyComment
in class RDFRendererBase
prop
- The property being renderedjava.io.IOException
- if there was a problem writing to the output streamprotected void writeDatatypeComment(OWLDatatype datatype) throws java.io.IOException
RDFRendererBase
writeDatatypeComment
in class RDFRendererBase
datatype
- The datatype being renderedjava.io.IOException
- if there was a problem writing to the output streamprotected void writeBanner(java.lang.String name) throws java.io.IOException
writeBanner
in class RDFRendererBase
java.io.IOException
public void render(RDFResourceNode node) throws java.io.IOException
RDFRendererBase
render
in class RDFRendererBase
node
- The main node to be renderedjava.io.IOException
- If there was a problem rendering the triples.