|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geneontology.lego.dot.LegoDotWriter
public abstract class LegoDotWriter
Rudimentary implementation of a DOT writer for the LEGO annotations in OWL.
Constructor Summary | |
---|---|
LegoDotWriter(owltools.graph.OWLGraphWrapper graph,
org.semanticweb.owlapi.reasoner.OWLReasoner reasoner)
Create a new writer for the given ontology and reasoner. |
Method Summary | |
---|---|
protected abstract void |
appendLine(CharSequence line)
Write a line to the file. |
protected void |
close()
Overwrite this method to implement a custom close() function for the writer. |
protected void |
open()
Overwrite this method to implement a custom open() routine for the writer. |
void |
render(Collection<org.semanticweb.owlapi.model.OWLNamedIndividual> individuals,
String name,
boolean renderKey)
Render the given individuals (aka set of annotations). |
void |
renderLego(Collection<LegoNode> nodes,
String name,
boolean renderKey)
Render the given collection of nodes ( LegoNode ) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LegoDotWriter(owltools.graph.OWLGraphWrapper graph, org.semanticweb.owlapi.reasoner.OWLReasoner reasoner)
graph
- reasoner
- Method Detail |
---|
public void render(Collection<org.semanticweb.owlapi.model.OWLNamedIndividual> individuals, String name, boolean renderKey) throws IOException, LegoTools.UnExpectedStructureException
LegoRenderer
render
in interface LegoRenderer
name
- name of the graph (optional)
IOException
LegoTools.UnExpectedStructureException
- thrown, if there are unexpected axioms.public void renderLego(Collection<LegoNode> nodes, String name, boolean renderKey) throws IOException
LegoNode
)
nodes
- name
- name of the graph (optional)renderKey
-
IOException
protected void open() throws IOException
IOException
protected abstract void appendLine(CharSequence line) throws IOException
line
-
IOException
protected void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |