Class TemplatesToDot
java.lang.Object
org.openprovenance.prov.dot.ProvToDot
org.openprovenance.prov.service.TemplatesToDot
- All Implemented Interfaces:
org.openprovenance.prov.dot.DotProperties,org.openprovenance.prov.dot.ProvShorthandNames,org.openprovenance.prov.dot.RecommendedProvVisualProperties
public class TemplatesToDot
extends org.openprovenance.prov.dot.ProvToDot
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.openprovenance.prov.dot.ProvToDot
layout, MAX_TOOLTIP_LENGTH, nameFields 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_HEADPORT, DOT_LABEL, DOT_LABELANGLE, DOT_LABELDISTANCE, DOT_LABELFONTSIZE, DOT_PENWIDTH, DOT_ROTATION, DOT_SHAPE, DOT_SIDES, DOT_STYLE, DOT_TAILLABEL, DOT_TAILPORT, 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
ConstructorsConstructorDescriptionTemplatesToDot(List<TemplateQuery.TemplateConnection> templateConnections, String style, Map<String, Map<String, String>> baseTypes, Map<String, Map<String, Map<String, String>>> ioMap, TemplateDispatcher templateDispatcher, Map<String, Map<String, List<String>>> successors, org.openprovenance.prov.model.ProvFactory pf, TemplateQuery templateQuery, String principal) -
Method Summary
Modifier and TypeMethodDescriptionvoidconvert(org.openprovenance.prov.model.Document graph, OutputStream os, String title) voidconvert(org.openprovenance.prov.model.Document ignore, PrintStream out, String title) voidconvert_entities(org.openprovenance.prov.model.Document ignore, PrintStream out, String title) voidconvert_prov(org.openprovenance.prov.model.Document ignore, PrintStream out, String title) voidconvert_template(org.openprovenance.prov.model.Document doc, PrintStream out, String title) static StringcreateHtmlTable(TemplatesToDot.TemplateInfo templateInfo, List<String> inputsNames, List<String> inputsPorts, List<String> inputsColors, List<String> outputsNames, List<String> outputsPorts, List<String> outputColors) voidemitTemplate(String template, String templateId, String htmlTable, PrintStream out) Methods inherited from class org.openprovenance.prov.dot.ProvToDot
activityLabel, addActivityColor, addActivityLabel, addActivityShape, addAgentColor, addAgentLabel, addAgentShape, addAnnotationColor, addAnnotationLabel, addAnnotationLinkProperties, addAnnotationShape, addBlankNodeShape, addColors, addEntityColor, addEntityLabel, addEntityShape, addURL, agentLabel, annotationColor, annotationId, convert, convert, convert, convert, convert, convert, convert, convert, convertProperty, countOthers, displaySize, dotify, emitActivity, emitAgent, emitAnnotations, emitBlankNode, emitDependency, emitElement, emitEntity, emitProperties, emitRelation, entityLabel, getPropertyFromAny, getPropertyValueWithUrl, getStringValue, htmlify, htmlify, localnameToString, newProvToDot, newProvToDot, newProvToDot, newProvToDot, nonEmptyLocalName, postlude, prelude, qualifiedNameToString, selectColor, setLayout, setMaxStringLength
-
Constructor Details
-
TemplatesToDot
public TemplatesToDot(List<TemplateQuery.TemplateConnection> templateConnections, String style, Map<String, Map<String, String>> baseTypes, Map<String, Map<String, Map<String, String>>> ioMap, TemplateDispatcher templateDispatcher, Map<String, Map<String, List<String>>> successors, org.openprovenance.prov.model.ProvFactory pf, TemplateQuery templateQuery, String principal)
-
-
Method Details
-
createHtmlTable
-
convert
- Overrides:
convertin classorg.openprovenance.prov.dot.ProvToDot
-
convert
- Overrides:
convertin classorg.openprovenance.prov.dot.ProvToDot
-
convert_prov
public void convert_prov(org.openprovenance.prov.model.Document ignore, PrintStream out, String title) -
convert_entities
public void convert_entities(org.openprovenance.prov.model.Document ignore, PrintStream out, String title) -
convert_template
public void convert_template(org.openprovenance.prov.model.Document doc, PrintStream out, String title) -
emitTemplate
-