Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 51505017c6503723fcacfc6f494b9e3f > files > 40

ocaml-rdf-devel-0.6.0-3.mga4.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css">
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<link rel="Start" href="index.html">
<link rel="previous" href="Rdf_config.html">
<link rel="next" href="Rdf_ds.html">
<link rel="Up" href="index.html">
<link title="Index of types" rel=Appendix href="index_types.html">
<link title="Index of exceptions" rel=Appendix href="index_exceptions.html">
<link title="Index of values" rel=Appendix href="index_values.html">
<link title="Index of modules" rel=Appendix href="index_modules.html">
<link title="Index of module types" rel=Appendix href="index_module_types.html">
<link title="Kw_to_re" rel="Chapter" href="Kw_to_re.html">
<link title="Rdf_config" rel="Chapter" href="Rdf_config.html">
<link title="Rdf_dot" rel="Chapter" href="Rdf_dot.html">
<link title="Rdf_ds" rel="Chapter" href="Rdf_ds.html">
<link title="Rdf_dt" rel="Chapter" href="Rdf_dt.html">
<link title="Rdf_graph" rel="Chapter" href="Rdf_graph.html">
<link title="Rdf_loc" rel="Chapter" href="Rdf_loc.html">
<link title="Rdf_mem" rel="Chapter" href="Rdf_mem.html">
<link title="Rdf_misc" rel="Chapter" href="Rdf_misc.html">
<link title="Rdf_my" rel="Chapter" href="Rdf_my.html">
<link title="Rdf_node" rel="Chapter" href="Rdf_node.html">
<link title="Rdf_pg" rel="Chapter" href="Rdf_pg.html">
<link title="Rdf_rdf" rel="Chapter" href="Rdf_rdf.html">
<link title="Rdf_sparql" rel="Chapter" href="Rdf_sparql.html">
<link title="Rdf_sparql_algebra" rel="Chapter" href="Rdf_sparql_algebra.html">
<link title="Rdf_sparql_eval" rel="Chapter" href="Rdf_sparql_eval.html">
<link title="Rdf_sparql_expand" rel="Chapter" href="Rdf_sparql_expand.html">
<link title="Rdf_sparql_map" rel="Chapter" href="Rdf_sparql_map.html">
<link title="Rdf_sparql_ms" rel="Chapter" href="Rdf_sparql_ms.html">
<link title="Rdf_sparql_print" rel="Chapter" href="Rdf_sparql_print.html">
<link title="Rdf_sparql_types" rel="Chapter" href="Rdf_sparql_types.html">
<link title="Rdf_sparql_vis" rel="Chapter" href="Rdf_sparql_vis.html">
<link title="Rdf_to_ttl" rel="Chapter" href="Rdf_to_ttl.html">
<link title="Rdf_ttl" rel="Chapter" href="Rdf_ttl.html">
<link title="Rdf_ttl_types" rel="Chapter" href="Rdf_ttl_types.html">
<link title="Rdf_ulex" rel="Chapter" href="Rdf_ulex.html">
<link title="Rdf_uri" rel="Chapter" href="Rdf_uri.html">
<link title="Rdf_utf8" rel="Chapter" href="Rdf_utf8.html">
<link title="Rdf_xml" rel="Chapter" href="Rdf_xml.html"><title>OCaml-RDF : Rdf_dot</title>
</head>
<body>
<div class="navbar"><a class="pre" href="Rdf_config.html" title="Rdf_config">Previous</a>
&nbsp;<a class="up" href="index.html" title="Index">Up</a>
&nbsp;<a class="post" href="Rdf_ds.html" title="Rdf_ds">Next</a>
</div>
<h1>Module <a href="type_Rdf_dot.html">Rdf_dot</a></h1>

<pre><span class="keyword">module</span> Rdf_dot: <code class="code">sig</code> <a href="Rdf_dot.html">..</a> <code class="code">end</code></pre><div class="info module top">
Dump in graphviz format.<br>
</div>
<hr width="100%">

<pre><span id="VALapply_namespaces"><span class="keyword">val</span> apply_namespaces</span> : <code class="type">(string * string) list -> string -> string * string</code></pre><div class="info ">
<code class="code">apply_namespaces ns uri</code> return a pair <code class="code">(prefix, suffix)</code> representing
  the given <code class="code">uri</code> and using one of the namespaces <code class="code">ns</code>, of the form
  <code class="code">(prefix, uri)</code>.
  If a namespace <code class="code">(pref, uri)</code> exists such that <code class="code">uri</code> is a prefix of <code class="code">uri2</code>,
  then <code class="code">apply_namespaces ns uri2 = (prefix, rel)</code>, with <code class="code">rel</code> being the
  suffix of <code class="code">uri2</code> relative to <code class="code">uri</code>.<br>
</div>

<pre><span id="VALbuild_namespaces"><span class="keyword">val</span> build_namespaces</span> : <code class="type">?namespaces:(<a href="Rdf_uri.html#TYPEuri">Rdf_uri.uri</a> * string) list -><br>       <a href="Rdf_graph.html#TYPEgraph">Rdf_graph.graph</a> -> (string * string) list</code></pre><div class="info ">
<code class="code">build_namespaces graph</code> returns the list namespaces of the <code class="code">graph</code>,
  as a list of pairs <code class="code">(prefix, uri)</code> usable by <a href="Rdf_dot.html#VALapply_namespaces"><code class="code">Rdf_dot.apply_namespaces</code></a>.<br>
</div>
<div class="param_info"><code class="code">namespaces</code> : is used to specify additional namespaces.</div>

<pre><span id="VALdot_of_graph"><span class="keyword">val</span> dot_of_graph</span> : <code class="type">?namespaces:(<a href="Rdf_uri.html#TYPEuri">Rdf_uri.uri</a> * string) list -><br>       ?href:(<a href="Rdf_node.html#TYPEnode">Rdf_node.node</a> -> string option) -> <a href="Rdf_graph.html#TYPEgraph">Rdf_graph.graph</a> -> string</code></pre><div class="info ">
<code class="code">dot_of_graph graph</code> returns the Graphviz code to represent the given <code class="code">graph</code>.<br>
</div>
<div class="param_info"><code class="code">namespaces</code> : is used so specified namespaces in the form <code class="code">(uri, name)</code>;
   in this case, the abbreviated form <code class="code">ns:suffix</code> is used in labels of URI nodes,
   when possible. The namespaces of the graph are also used anyway.</div>
<div class="param_info"><code class="code">href</code> : can specify a function to call on each node, which can return
   an url (as a string), to add a <code class="code">href</code> attribute to the node in the graphviz code.
   This is useful to provide clickable nodes in SVG output, for example.</div>

<pre><span id="VALdot_of_uri"><span class="keyword">val</span> dot_of_uri</span> : <code class="type">?namespaces:(<a href="Rdf_uri.html#TYPEuri">Rdf_uri.uri</a> * string) list -><br>       ?href:(<a href="Rdf_node.html#TYPEnode">Rdf_node.node</a> -> string option) -><br>       <a href="Rdf_graph.html#TYPEgraph">Rdf_graph.graph</a> -> <a href="Rdf_uri.html#TYPEuri">Rdf_uri.uri</a> -> string</code></pre><div class="info ">
Same as <a href="Rdf_dot.html#VALdot_of_graph"><code class="code">Rdf_dot.dot_of_graph</code></a> but return code to represent only the triples
  having the given URI as subject or object.<br>
</div>
</body></html>