public class GODOTWriter extends Object
| Constructor and Description |
|---|
GODOTWriter() |
| Modifier and Type | Method and Description |
|---|---|
static TermID |
decodeTermID(String encodedTermId)
Decode the string that was encoded via
encodeTermID(TermID) |
static String |
encodeTermID(TermID termId)
Encode the term id string of the given term id.
|
static void |
writeDOT(Ontology graph,
File file,
TermID rootTerm,
Set<TermID> terms,
IDotAttributesProvider provider)
Writes out a basic dot file which can be used within graphviz.
|
static void |
writeDOT(Ontology graph,
File file,
TermID rootTerm,
Set<TermID> terms,
IDotAttributesProvider provider,
String graphAttrs,
boolean reverseDirection,
boolean edgeLabels,
Set<TermID> ignoreTerms)
Writes out a basic dot file which can be used within graphviz.
|
public static String encodeTermID(TermID termId)
termId - to be encodedpublic static TermID decodeTermID(String encodedTermId)
encodeTermID(TermID)encodedTermId - the string to be decodedpublic static void writeDOT(Ontology graph, File file, TermID rootTerm, Set<TermID> terms, IDotAttributesProvider provider)
graph - the ontologyfile - defines the file in which the output is written to.rootTerm - defines the first term of the sub graph which should
be considered.terms - defines which terms should be included within the
graphs.provider - should provide for every property an appropiate id.public static void writeDOT(Ontology graph, File file, TermID rootTerm, Set<TermID> terms, IDotAttributesProvider provider, String graphAttrs, boolean reverseDirection, boolean edgeLabels, Set<TermID> ignoreTerms)
graph - the ontologyfile - defines the file in which the output is written to.rootTerm - defines the first term of the sub graph which should
be considered.terms - defines which terms should be included within the
graphs.provider - should provide for every property an appropiate id.reverseDirection - specedgeLabels - ignoreTerms - Copyright © 2017. All rights reserved.