public class RDFXMLRenderer extends RDFRendererBase
RDFRendererBase.TripleComparatorGENERAL_AXIOMS_BANNER_TEXT, manager, ontology, prettyPrintedTypes, RULES_BANNER_TEXT, tripleComparator| Constructor and Description |
|---|
RDFXMLRenderer(OWLOntologyManager manager,
OWLOntology ontology,
Writer w) |
RDFXMLRenderer(OWLOntologyManager manager,
OWLOntology ontology,
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.
|
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(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, toJavaListpublic RDFXMLRenderer(OWLOntologyManager manager, OWLOntology ontology, Writer w)
public RDFXMLRenderer(OWLOntologyManager manager, OWLOntology ontology, Writer w, OWLOntologyFormat format)
protected void beginDocument()
throws IOException
RDFRendererBasebeginDocument in class RDFRendererBaseIOException - if there was a problem writing to the output streamprotected void endDocument()
throws IOException
RDFRendererBaseendDocument in class RDFRendererBaseIOException - if there was a problem writing to the output streamprotected void writeIndividualComments(OWLNamedIndividual ind) throws IOException
RDFRendererBasewriteIndividualComments in class RDFRendererBaseind - The individual being renderedIOException - if there was a problem writing to the output streamprotected void writeClassComment(OWLClass cls) throws IOException
RDFRendererBasewriteClassComment in class RDFRendererBasecls - The class being renderedIOException - if there was a problem writing to the output streamprotected void writeDataPropertyComment(OWLDataProperty prop) throws IOException
RDFRendererBasewriteDataPropertyComment in class RDFRendererBaseprop - The property being renderedIOException - if there was a problem writing to the output streamprotected void writeObjectPropertyComment(OWLObjectProperty prop) throws IOException
RDFRendererBasewriteObjectPropertyComment in class RDFRendererBaseprop - The property being renderedIOException - if there was a problem writing to the output streamprotected void writeAnnotationPropertyComment(OWLAnnotationProperty prop) throws IOException
RDFRendererBasewriteAnnotationPropertyComment in class RDFRendererBaseprop - The property being renderedIOException - if there was a problem writing to the output streamprotected void writeDatatypeComment(OWLDatatype datatype) throws IOException
RDFRendererBasewriteDatatypeComment in class RDFRendererBasedatatype - The datatype being renderedIOException - if there was a problem writing to the output streamprotected void writeBanner(String name) throws IOException
writeBanner in class RDFRendererBaseIOExceptionpublic void render(RDFResourceNode node) throws IOException
RDFRendererBaserender in class RDFRendererBasenode - The main node to be renderedIOException - If there was a problem rendering the triples.Copyright © 2012 The University of Manchester. All Rights Reserved.