public abstract class RDFRendererBase extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
GENERAL_AXIOMS_BANNER_TEXT
general axioms
|
protected org.semanticweb.owlapi.model.OWLOntology |
ontology |
protected Set<org.semanticweb.owlapi.model.IRI> |
prettyPrintedTypes |
static String |
RULES_BANNER_TEXT
rules banner
|
| Modifier | Constructor and Description |
|---|---|
|
RDFRendererBase(org.semanticweb.owlapi.model.OWLOntology ontology) |
protected |
RDFRendererBase(org.semanticweb.owlapi.model.OWLOntology ontology,
org.semanticweb.owlapi.model.OWLOntologyFormat format) |
|
RDFRendererBase(org.semanticweb.owlapi.model.OWLOntology ontology,
org.semanticweb.owlapi.model.OWLOntologyManager manager)
Deprecated.
|
protected |
RDFRendererBase(org.semanticweb.owlapi.model.OWLOntology ontology,
org.semanticweb.owlapi.model.OWLOntologyManager manager,
org.semanticweb.owlapi.model.OWLOntologyFormat format)
Deprecated.
|
| 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 org.semanticweb.owlapi.model.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() |
org.semanticweb.owlapi.model.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(org.semanticweb.owlapi.model.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(org.semanticweb.owlapi.model.OWLClass cls)
Called before a class is rendered to give subclasses the chance to prefix
the rendering with comments etc.
|
protected abstract void |
writeDataPropertyComment(org.semanticweb.owlapi.model.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(org.semanticweb.owlapi.model.OWLDatatype datatype)
Called before a datatype is rendered to give subclasses the chance to
prefix the rendering with comments etc.
|
protected abstract void |
writeIndividualComments(org.semanticweb.owlapi.model.OWLNamedIndividual ind)
Called before an individual is rendered to give subclasses the chance to
prefix the rendering with comments etc.
|
protected abstract void |
writeObjectPropertyComment(org.semanticweb.owlapi.model.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 org.semanticweb.owlapi.model.OWLOntology ontology
protected Set<org.semanticweb.owlapi.model.IRI> prettyPrintedTypes
public RDFRendererBase(org.semanticweb.owlapi.model.OWLOntology ontology)
ontology - ontology@Deprecated public RDFRendererBase(org.semanticweb.owlapi.model.OWLOntology ontology, org.semanticweb.owlapi.model.OWLOntologyManager manager)
ontology - ontologymanager - manager@Deprecated protected RDFRendererBase(org.semanticweb.owlapi.model.OWLOntology ontology, org.semanticweb.owlapi.model.OWLOntologyManager manager, org.semanticweb.owlapi.model.OWLOntologyFormat format)
protected RDFRendererBase(org.semanticweb.owlapi.model.OWLOntology ontology,
org.semanticweb.owlapi.model.OWLOntologyFormat format)
public RDFGraph getGraph()
public org.semanticweb.owlapi.model.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(org.semanticweb.owlapi.model.OWLAnnotationProperty prop)
throws IOException
prop - The property being renderedIOException - if there was a problem writing to the output streamprotected abstract void writeDataPropertyComment(org.semanticweb.owlapi.model.OWLDataProperty prop)
throws IOException
prop - The property being renderedIOException - if there was a problem writing to the output streamprotected abstract void writeObjectPropertyComment(org.semanticweb.owlapi.model.OWLObjectProperty prop)
throws IOException
prop - The property being renderedIOException - if there was a problem writing to the output streamprotected abstract void writeClassComment(org.semanticweb.owlapi.model.OWLClass cls)
throws IOException
cls - The class being renderedIOException - if there was a problem writing to the output streamprotected abstract void writeDatatypeComment(org.semanticweb.owlapi.model.OWLDatatype datatype)
throws IOException
datatype - The datatype being renderedIOException - if there was a problem writing to the output streamprotected abstract void writeIndividualComments(org.semanticweb.owlapi.model.OWLNamedIndividual ind)
throws IOException
ind - The individual being renderedIOException - if there was a problem writing to the output streampublic void render()
throws IOException
IOException - io errorprotected boolean shouldInsertDeclarations()
protected void createGraph(Set<? extends org.semanticweb.owlapi.model.OWLObject> objects)
protected abstract void writeBanner(String name) throws IOException
IOExceptionpublic void renderAnonRoots()
throws IOException
IOException - io errorpublic 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 © 2014 The University of Manchester. All Rights Reserved.