http://www.zorba-xquery.com/modules/image/graphviz
Description
Before using any of the functions below please remember to import the module namespace:
import module namespace gr = "http://www.zorba-xquery.com/modules/image/graphviz";
Module that provides functions for generating SVG graphs.
The module provides two function for generating graphs given in the :
- DOT language (see http://www.graphviz.org)
- or in the XML-based Graph eXchange Language (see http://www.gupro.de/GXL/), respectively.
Please note that this feature is only available on Unix-based platforms (i.e. not on Windows).
Author
XQuery version and encoding
xquery version "1.0" encoding "utf-8";
Namespaces
| gr | http://www.zorba-xquery.com/modules/image/graphviz |
| ver | http://www.zorba-xquery.com/options/versioning |
Function Summary
dot($dot as xs:string*, $params as xs:string*) as node()* externalLayout one ore more graphs given in the DOT language and render them as SVG. | |
gxl($gxl as node()*, $params as xs:string*) as node()* externalLayout one ore more graphs given in the GXL language and render them as SVG. |
Functions
dot#2
declare function gr:dot(
$dot as xs:string*,
$params as xs:string*
) as node()* externalLayout one ore more graphs given in the DOT language and render them as SVG. For example,
dot("digraph mygraph { p -> q }", ())
Parameters
$dot as xs:stringA dot description of the graph to render.$params as xs:stringParameters to configure the layout and rendering process. Currently, only the empty-sequence is allowed here.
Returns
node()*A graph for each item in the sequence given using the first parameter. The result sequence consists of items which are instance of the SVG data model.
gxl#2
declare function gr:gxl(
$gxl as node()*,
$params as xs:string*
) as node()* externalLayout one ore more graphs given in the GXL language and render them as SVG.
Parameters
$gxl as node()A GXL description of the graph to render.$params as xs:stringParameters to configure the layout and rendering process. Currently, only the empty-sequence is allowed here.
Returns
node()*A graph for each item in the sequence given using the first parameter. The result sequence consists of items which are instance of the SVG data model.