Package org.openprovenance.prov.dot
Class ProvToDot
java.lang.Object
org.openprovenance.prov.dot.ProvToDot
- All Implemented Interfaces:
DotProperties,ProvShorthandNames,RecommendedProvVisualProperties
public class ProvToDot
extends Object
implements DotProperties, RecommendedProvVisualProperties, ProvShorthandNames
Serialisation of Prov representation to DOT format.
-
Field Summary
FieldsFields inherited from interface org.openprovenance.prov.dot.DotProperties
DOT_ARROWHEAD, DOT_ARROWSHAPE_ODIAMOND, DOT_ARROWSHAPE_OINV, DOT_ARROWTAIL, DOT_COLOUR, DOT_DIR, DOT_DIRECTED_EDGE, DOT_FILLCOLOUR, DOT_FONTCOLOUR, DOT_FONTSIZE, DOT_LABEL, DOT_LABELANGLE, DOT_LABELDISTANCE, DOT_LABELFONTSIZE, DOT_PENWIDTH, DOT_ROTATION, DOT_SHAPE, DOT_SIDES, DOT_STYLE, DOT_TAILLABEL, DOT_TOOLTIP, DOT_UNDIRECTED_EDGE, DOT_URL, DOT_WIDTHFields inherited from interface org.openprovenance.prov.dot.ProvShorthandNames
PROV_SHORTHAND_ALTERNATE, PROV_SHORTHAND_ASSOCIATION, PROV_SHORTHAND_ATTRIBUTION, PROV_SHORTHAND_COMMUNICATION, PROV_SHORTHAND_DELEGATION, PROV_SHORTHAND_DERIVATION, PROV_SHORTHAND_END, PROV_SHORTHAND_GENERATION, PROV_SHORTHAND_INFLUENCE, PROV_SHORTHAND_INVALIDATION, PROV_SHORTHAND_MEMBERSHIP, PROV_SHORTHAND_MENTION, PROV_SHORTHAND_SPECIALIZATION, PROV_SHORTHAND_START, PROV_SHORTHAND_USAGEFields inherited from interface org.openprovenance.prov.dot.RecommendedProvVisualProperties
ACTIVITY_COLOUR, ACTIVITY_FILL_COLOUR, ACTIVITY_SHAPE, ACTIVITY_SIDES, ACTIVITY_STYLE, AGENT_FILLCOLOUR, AGENT_SHAPE, AGENT_STYLE, ANNOTATION_SHAPE, ENTITY_COLOUR, ENTITY_FILLCOLOUR, ENTITY_STYLE -
Constructor Summary
ConstructorsConstructorDescriptionProvToDot(ProvFactory pf) ProvToDot(ProvFactory pf, Supplier<ProvUtilities> getProvUtilities) -
Method Summary
Modifier and TypeMethodDescriptionaddActivityColor(Activity p, Map<String, String> properties) addActivityLabel(Activity p, Map<String, String> properties) addActivityShape(Activity ignoredActivity, Map<String, String> properties) addAgentColor(Agent agent, Map<String, String> properties) addAgentLabel(Agent agent, Map<String, String> properties) addAgentShape(Agent ignoredAgent, Map<String, String> properties) addAnnotationColor(HasOther ann, Map<String, String> properties) addAnnotationLabel(HasOther ann, Map<String, String> properties) addAnnotationLinkProperties(HasOther ignoredAnn, Map<String, String> properties) addAnnotationShape(HasOther ignoredAnn, Map<String, String> properties) addBlankNodeShape(Map<String, String> properties) voidaddEntityColor(Entity a, Map<String, String> properties) addEntityLabel(Entity p, Map<String, String> properties) addEntityShape(Entity p, Map<String, String> properties) addURL(QualifiedName id, Map<String, String> properties) agentLabel(Agent p) annotationColor(HasOther ignoredAnn) annotationId(QualifiedName ignoredId, String node) voidconvert(Bundle bun, PrintStream out) voidvoidconvert(Document graph, OutputStream os, String title) voidconvert(Document graph, OutputStream os, String type, String title) voidconvert(Document doc, PrintStream out, String title) voidconvert(Document graph, String dotFile, OutputStream pdfStream, String title) voidvoidvoidvoidconvertProperty(Attribute oLabel) intcountOthers(HasOther ann) voidemitActivity(Activity p, PrintStream out) voidemitAgent(Agent ag, PrintStream out) voidemitAnnotations(String id, HasOther statement, PrintStream out) voidemitBlankNode(String bnid, Map<String, String> properties, PrintStream out) voidemitDependency(Relation e, PrintStream out) voidemitElement(QualifiedName name, StatementOrBundle.Kind kind, Map<String, String> properties, PrintStream out) voidemitEntity(Entity e, PrintStream out) voidemitProperties(StringBuffer sb, Map<String, String> properties) voidemitRelation(StatementOrBundle.Kind kind, String src, String dest, Map<String, String> properties, PrintStream out, boolean directional) localnameToString(QualifiedName qName) static ProvToDotstatic ProvToDotnewProvToDot(ProvFactory pf, List<String> exceptions) protected voidpostlude(Document ignoredDoc, PrintStream out) protected voidprelude(Document ignoredDoc, PrintStream out) selectColor(List<String> colors) voidvoidsetMaxStringLength(Integer maxStringLength)
-
Field Details
-
MAX_TOOLTIP_LENGTH
public int MAX_TOOLTIP_LENGTH -
name
-
layout
-
-
Constructor Details
-
ProvToDot
-
ProvToDot
-
-
Method Details
-
qualifiedNameToString
-
localnameToString
-
setMaxStringLength
-
convert
public void convert(Document graph, String dotFile, String pdfFile, String title) throws IOException - Throws:
IOException
-
convert
public void convert(Document graph, String dotFile, OutputStream pdfStream, String title) throws IOException - Throws:
IOException
-
convert
- Throws:
IOException
-
convert
public void convert(Document graph, String dotFile, String aFile, String type, String title) throws IOException - Throws:
IOException
-
convert
-
convert
public void convert(Document graph, String dotFile, OutputStream os, String type, String title) throws IOException - Throws:
IOException
-
convert
- Throws:
FileNotFoundException
-
convert
-
convert
-
convert
-
emitActivity
-
emitEntity
-
emitAgent
-
emitAnnotations
-
annotationId
-
addURL
-
addAnnotationLinkProperties
-
addActivityShape
-
addBlankNodeShape
-
addActivityLabel
-
addActivityColor
-
getStringValue
-
addColors
-
addEntityShape
-
addEntityColor
-
addEntityLabel
-
displaySize
-
addAgentShape
-
addAgentLabel
-
addAgentColor
-
addAnnotationShape
-
addAnnotationLabel
-
countOthers
-
nonEmptyLocalName
-
convertProperty
-
getPropertyFromAny
-
getPropertyValueWithUrl
-
addAnnotationColor
-
activityLabel
-
selectColor
-
entityLabel
-
annotationColor
-
agentLabel
-
emitDependency
-
dotify
-
htmlify
-
htmlify
-
emitElement
public void emitElement(QualifiedName name, StatementOrBundle.Kind kind, Map<String, String> properties, PrintStream out) -
emitBlankNode
-
emitRelation
public void emitRelation(StatementOrBundle.Kind kind, String src, String dest, Map<String, String> properties, PrintStream out, boolean directional) -
emitProperties
-
prelude
-
postlude
-
setLayout
-
newProvToDot
-
newProvToDot
-