public abstract class RDFRendererBase extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RDFRendererBase.TripleComparator |
| Modifier and Type | Field and Description |
|---|---|
static String |
GENERAL_AXIOMS_BANNER_TEXT |
protected OWLOntologyManager |
manager |
protected OWLOntology |
ontology |
protected Set<IRI> |
prettyPrintedTypes |
static String |
RULES_BANNER_TEXT |
static RDFRendererBase.TripleComparator |
tripleComparator |
| Modifier | Constructor and Description |
|---|---|
|
RDFRendererBase(OWLOntology ontology,
OWLOntologyManager manager) |
protected |
RDFRendererBase(OWLOntology ontology,
OWLOntologyManager manager,
OWLOntologyFormat format) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
beginDocument()
Called before the ontology document is rendered.
|
protected void |
beginObject()
Called before an OWLObject such as an entity, anonymous individual, rule etc.
|
protected void |
createGraph(Set<? extends OWLObject> objects) |
protected abstract void |
endDocument()
Called after the ontology document has been rendered.
|
protected void |
endObject()
Called after an OWLObject such as an entity, anonymous individual, rule etc.
|
RDFGraph |
getGraph() |
OWLOntology |
getOntology() |
protected boolean |
isObjectList(RDFResourceNode node) |
void |
render() |
abstract void |
render(RDFResourceNode node)
Renders the triples in the current graph into a concrete format.
|
void |
renderAnonRoots() |
protected boolean |
shouldInsertDeclarations() |
protected void |
toJavaList(RDFNode n,
List<RDFNode> list) |
protected abstract void |
writeAnnotationPropertyComment(OWLAnnotationProperty prop)
Called before an annotation property is rendered to give subclasses the chance to prefix the rendering with
comments etc.
|
protected abstract void |
writeBanner(String name) |
protected abstract void |
writeClassComment(OWLClass cls)
Called before a class is rendered to give subclasses the chance to prefix the rendering with comments etc.
|
protected abstract void |
writeDataPropertyComment(OWLDataProperty prop)
Called before a data property is rendered to give subclasses the chance to prefix the rendering with comments etc.
|
protected abstract void |
writeDatatypeComment(OWLDatatype datatype)
Called before a datatype is rendered to give subclasses the chance to prefix the rendering with comments etc.
|
protected abstract void |
writeIndividualComments(OWLNamedIndividual ind)
Called before an individual is rendered to give subclasses the chance to prefix the rendering with comments etc.
|
protected abstract void |
writeObjectPropertyComment(OWLObjectProperty prop)
Called before an object property is rendered.
|
public static final String GENERAL_AXIOMS_BANNER_TEXT
public static final String RULES_BANNER_TEXT
protected OWLOntologyManager manager
protected OWLOntology ontology
public static final RDFRendererBase.TripleComparator tripleComparator
public RDFRendererBase(OWLOntology ontology, OWLOntologyManager manager)
protected RDFRendererBase(OWLOntology ontology, OWLOntologyManager manager, OWLOntologyFormat format)
public RDFGraph getGraph()
public OWLOntology getOntology()
protected abstract void beginDocument()
throws IOException
IOException - if there was a problem writing to the output streamprotected abstract void endDocument()
throws IOException
IOException - if there was a problem writing to the output streamprotected void beginObject()
throws IOException
IOException - if there was a problem writing to the output streamprotected void endObject()
throws IOException
IOException - if there was a problem writing to the output streamprotected abstract void writeAnnotationPropertyComment(OWLAnnotationProperty prop) throws IOException
prop - The property being renderedIOException - if there was a problem writing to the output streamprotected abstract void writeDataPropertyComment(OWLDataProperty prop) throws IOException
prop - The property being renderedIOException - if there was a problem writing to the output streamprotected abstract void writeObjectPropertyComment(OWLObjectProperty prop) throws IOException
prop - The property being renderedIOException - if there was a problem writing to the output streamprotected abstract void writeClassComment(OWLClass cls) throws IOException
cls - The class being renderedIOException - if there was a problem writing to the output streamprotected abstract void writeDatatypeComment(OWLDatatype datatype) throws IOException
datatype - The datatype being renderedIOException - if there was a problem writing to the output streamprotected abstract void writeIndividualComments(OWLNamedIndividual ind) throws IOException
ind - The individual being renderedIOException - if there was a problem writing to the output streampublic void render()
throws IOException
IOExceptionprotected boolean shouldInsertDeclarations()
protected abstract void writeBanner(String name) throws IOException
IOExceptionpublic void renderAnonRoots()
throws IOException
IOExceptionpublic abstract void render(RDFResourceNode node) throws IOException
node - The main node to be renderedIOException - If there was a problem rendering the triples.protected boolean isObjectList(RDFResourceNode node)
Copyright © 2012 The University of Manchester. All Rights Reserved.