Sophie

Sophie

distrib > Mageia > 3 > i586 > by-pkgid > 0dd6bc6711e7b2c30f94bd76b4f6f76a > files > 28

ocaml-rdf-devel-0.4-3.mga3.i586.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_my.html">
<link rel="next" href="Rdf_pg.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="Rdf_config" rel="Chapter" href="Rdf_config.html">
<link title="Rdf_dot" rel="Chapter" href="Rdf_dot.html">
<link title="Rdf_graph" rel="Chapter" href="Rdf_graph.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_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_node</title>
</head>
<body>
<div class="navbar"><a class="pre" href="Rdf_my.html" title="Rdf_my">Previous</a>
&nbsp;<a class="up" href="index.html" title="Index">Up</a>
&nbsp;<a class="post" href="Rdf_pg.html" title="Rdf_pg">Next</a>
</div>
<h1>Module <a href="type_Rdf_node.html">Rdf_node</a></h1>
<pre><span class="keyword">module</span> Rdf_node: <code class="code">sig</code> <a href="Rdf_node.html">..</a> <code class="code">end</code></pre><div class="info">
Nodes.<br>
</div>
<hr width="100%">
<pre><code><span id="TYPEliteral"><span class="keyword">type</span> <code class="type"></code>literal</span> = {</code></pre><table class="typetable">
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code><span id="TYPEELTliteral.lit_value">lit_value</span>&nbsp;:<code class="type">string</code>;</code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code><span id="TYPEELTliteral.lit_language">lit_language</span>&nbsp;:<code class="type">string option</code>;</code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code><span id="TYPEELTliteral.lit_type">lit_type</span>&nbsp;:<code class="type"><a href="Rdf_uri.html#TYPEuri">Rdf_uri.uri</a> option</code>;</code></td>

</tr></table>
}

<div class="info">
Literal nodes contain a value, a optional language and an optional data type URI.<br>
</div>

<pre><span id="TYPEblank_id"><span class="keyword">type</span> <code class="type"></code>blank_id</span> </pre>
<div class="info">
Type for blank node ids.<br>
</div>

<pre><code><span id="TYPEnode"><span class="keyword">type</span> <code class="type"></code>node</span> = </code></pre><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span id="TYPEELTnode.Uri"><span class="constructor">Uri</span></span> <span class="keyword">of</span> <code class="type"><a href="Rdf_uri.html#TYPEuri">Rdf_uri.uri</a></code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span id="TYPEELTnode.Literal"><span class="constructor">Literal</span></span> <span class="keyword">of</span> <code class="type"><a href="Rdf_node.html#TYPEliteral">literal</a></code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span id="TYPEELTnode.Blank"><span class="constructor">Blank</span></span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span id="TYPEELTnode.Blank_"><span class="constructor">Blank_</span></span> <span class="keyword">of</span> <code class="type"><a href="Rdf_node.html#TYPEblank_id">blank_id</a></code></code></td>

</tr></table>

<div class="info">
Various kinds of nodes.<br>
</div>

<pre><span class="keyword">module</span> <a href="Rdf_node.Ord_type.html">Ord_type</a>: <code class="code">sig</code> <a href="Rdf_node.Ord_type.html">..</a> <code class="code">end</code></pre><pre><span id="TYPEtriple"><span class="keyword">type</span> <code class="type"></code>triple</span> = <code class="type"><a href="Rdf_node.html#TYPEnode">node</a> * <a href="Rdf_node.html#TYPEnode">node</a> * <a href="Rdf_node.html#TYPEnode">node</a></code> </pre>
<div class="info">
A RDF triple is just ... a triple of nodes.<br>
</div>

<pre><span id="VALstring_of_blank_id"><span class="keyword">val</span> string_of_blank_id</span> : <code class="type"><a href="Rdf_node.html#TYPEblank_id">blank_id</a> -> string</code></pre><div class="info">
Get a string from a blank node id.<br>
</div>
<pre><span id="VALblank_id_of_string"><span class="keyword">val</span> blank_id_of_string</span> : <code class="type">string -> <a href="Rdf_node.html#TYPEblank_id">blank_id</a></code></pre><div class="info">
Make a blank node id from a string.<br>
</div>
<pre><span id="VALnode_of_uri_string"><span class="keyword">val</span> node_of_uri_string</span> : <code class="type">string -> <a href="Rdf_node.html#TYPEnode">node</a></code></pre><div class="info">
Shortcut for <code class="code">Uri (Rdf_uri.uri string)</code>.<br>
</div>
<pre><span id="VALmk_literal"><span class="keyword">val</span> mk_literal</span> : <code class="type">?typ:<a href="Rdf_uri.html#TYPEuri">Rdf_uri.uri</a> -> ?lang:string -> string -> <a href="Rdf_node.html#TYPEliteral">literal</a></code></pre><div class="info">
Creation of a literal.<br>
</div>
<pre><span id="VALmk_literal_datetime"><span class="keyword">val</span> mk_literal_datetime</span> : <code class="type">?d:float -> unit -> <a href="Rdf_node.html#TYPEliteral">literal</a></code></pre><div class="info">
Create a datetime literal with type uri from the given datetime <code class="code">d</code>.
  If no date is given, <code class="code">Unix.time()</code> is used.<br>
</div>
<pre><span id="VALnode_of_datetime"><span class="keyword">val</span> node_of_datetime</span> : <code class="type">?d:float -> unit -> <a href="Rdf_node.html#TYPEnode">node</a></code></pre><div class="info">
Create a literal node from the given datetime. (see <a href="Rdf_node.html#VALmk_literal_datetime"><code class="code">Rdf_node.mk_literal_datetime</code></a>).<br>
</div>
<pre><span id="VALdatetime_of_literal"><span class="keyword">val</span> datetime_of_literal</span> : <code class="type"><a href="Rdf_node.html#TYPEliteral">literal</a> -> Netdate.t</code></pre><div class="info">
Parse a literal to get a datetime.<br>
</div>
<pre><span id="VALmk_literal_bool"><span class="keyword">val</span> mk_literal_bool</span> : <code class="type">bool -> <a href="Rdf_node.html#TYPEliteral">literal</a></code></pre><div class="info">
Create a boolean literal with type uri from the given boolean.<br>
</div>
<pre><span id="VALnode_of_bool"><span class="keyword">val</span> node_of_bool</span> : <code class="type">bool -> <a href="Rdf_node.html#TYPEnode">node</a></code></pre><div class="info">
Create a literal node from the given boolean. (see <a href="Rdf_node.html#VALmk_literal_bool"><code class="code">Rdf_node.mk_literal_bool</code></a>).<br>
</div>
<pre><span id="VALbool_of_literal"><span class="keyword">val</span> bool_of_literal</span> : <code class="type"><a href="Rdf_node.html#TYPEliteral">literal</a> -> bool</code></pre><div class="info">
Parse a literal to get a boolean.<br>
</div>
<pre><span id="VALnode_of_literal_string"><span class="keyword">val</span> node_of_literal_string</span> : <code class="type">?typ:<a href="Rdf_uri.html#TYPEuri">Rdf_uri.uri</a> -> ?lang:string -> string -> <a href="Rdf_node.html#TYPEnode">node</a></code></pre><div class="info">
Shortcut for <code class="code">Literal (mk_literal ?typ ?lang string)</code><br>
</div>
<pre><span id="VALstring_of_node"><span class="keyword">val</span> string_of_node</span> : <code class="type"><a href="Rdf_node.html#TYPEnode">node</a> -> string</code></pre><div class="info">
Create a string for the given node, using RDF turtle syntax conventions.<br>
<b>See also</b> <a href="http://www.w3.org/TeamSubmission/turtle/#language">the description of turtle language.</a><br>
</div>
<pre><span id="VALnode_hash"><span class="keyword">val</span> node_hash</span> : <code class="type"><a href="Rdf_node.html#TYPEnode">node</a> -> int64</code></pre><div class="info">
<code class="code">node_hash node</code> returns an int64 identifiying (hopefully unically)) a given node.<br>
</div>
</body></html>