• Places
    • Home
    • Graphs
    • Prefixes
  • Admin
    • Users
    • Settings
    • Plugins
    • Statistics
  • CPACK
    • Home
    • List packs
    • Submit pack
  • Repository
    • Load local file
    • Load from HTTP
    • Load from library
    • Remove triples
    • Clear repository
  • Query
    • YASGUI SPARQL Editor
    • Simple Form
    • SWISH Prolog shell
  • Help
    • Documentation
    • Tutorial
    • Roadmap
    • HTTP Services
  • Login

/srv/ClioPatria/components/graphviz.pl
All Application Manual Name SummaryHelp

  • ClioPatria
    • components
      • menu.pl -- ClioPatria menu-bar
      • simple_search.pl -- Simple literal search
      • basics.pl -- Simple Small HTML components
      • label.pl -- Support for showing labels
      • query.pl -- Forms for entering SPARQL and SeRQL queries.
      • messages.pl -- Run goals that produce messages
      • server_statistics.pl -- Server statistics components
      • graphviz.pl -- Render RDF-graphs
        • graphviz_graph//2
 graphviz_graph(:Closure, +Options)//
Display an RDF graph graphical in the browser. The graph is a list of rdf(S,P,O) triples and is obtained by calling call(Closure, Graph). This component inserts HTML that will cause a subsequent call to send_graph/1, which executes call(Closure, Graph) and sends the graph. This design is required for the HTML5/canviz rendering. For SVG we could have opted for embedded SVG, but this design is currently more portable and avoid slowing down page rendering if it is expensive to produce the graph.

Options is an option-list for gviz_write_rdf/3. In addition, it processes the option:

render(+Exe)
Set the rendering engine. Default is dot.
format(+Format)
One of canviz, using AJAX-based rendering on HTML5 canvas or svg, using SVG. The default is defined by the setting graphviz:format.
object_attributes(+List)
Additional attributes to pass to the SVG object element.

This facility requires the graphiz renderer programs installed in the executable search-path.

See also
- http://code.google.com/p/canviz/
- http://www.graphviz.org/
ClioPatria (version V3.1.1-51-ga0b30a5)