Sophie

Sophie

distrib > Fedora > 13 > x86_64 > media > updates > by-pkgid > fc669c0115c2f74e1d26807f2cb98f7a > files > 811

soprano-apidocs-2.5.2-1.fc13.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Soprano: Soprano D-Bus Interface</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.1 -->
<script type="text/javascript">
function hasClass(ele,cls) {
  return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)'));
}

function addClass(ele,cls) {
  if (!this.hasClass(ele,cls)) ele.className += " "+cls;
}

function removeClass(ele,cls) {
  if (hasClass(ele,cls)) {
    var reg = new RegExp('(\\s|^)'+cls+'(\\s|$)');
    ele.className=ele.className.replace(reg,' ');
  }
}

function toggleVisibility(linkObj) {
 var base = linkObj.getAttribute('id');
 var summary = document.getElementById(base + '-summary');
 var content = document.getElementById(base + '-content');
 var trigger = document.getElementById(base + '-trigger');
 if ( hasClass(linkObj,'closed') ) {
   summary.style.display = 'none';
   content.style.display = 'block';
   trigger.src = 'open.png';
   removeClass(linkObj,'closed');
   addClass(linkObj,'opened');
 } else if ( hasClass(linkObj,'opened') ) {
   summary.style.display = 'block';
   content.style.display = 'none';
   trigger.src = 'closed.png';
   removeClass(linkObj,'opened');
   addClass(linkObj,'closed');
 }
 return false;
}
</script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li class="current"><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<h1><a class="el" href="namespaceSoprano.html">Soprano</a> D-Bus Interface </h1>  </div>
</div>
<div class="contents">
<dl class="warning"><dt><b>Warning:</b></dt><dd>When using the Soprano D-Bus interface from a QT application there is normally no need to use the D-Bus interfaces directly. <a class="el" href="classSoprano_1_1Client_1_1DBusClient.html" title="Core class to handle a connection to a Soprano server through the DBus interface.">Soprano::Client::DBusClient</a> and <a class="el" href="classSoprano_1_1Client_1_1DBusModel.html" title="Interface to a DBus server model.">Soprano::Client::DBusModel</a> provide very convenient wrapping classes.</dd></dl>
<p>Soprano provides a server implementation with a D-Bus interface. The server can be deployed in two different ways: by running the sopranod server application which registers the org.soprano.Server service or by using the <a class="el" href="classSoprano_1_1Server_1_1ServerCore.html" title="Central Soprano server class.">Soprano::Server::ServerCore</a> class and calling <a class="el" href="classSoprano_1_1Server_1_1ServerCore.html#a3024435aa02cdb52e6636cf62f1fc93e">Soprano::Server::ServerCore::registerAsDBusObject</a> method.</p>
<p>The Soprano server uses a set of D-Bus interfaces. When registered the server exports the org.soprano.Server interface on the /org/soprano/Server object.</p>
<h2><a class="anchor" id="soprano_server_dbus_server_interface"></a>
org.soprano.Server</h2>
<div class="fragment"><pre class="fragment"> &lt;interface <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1Xesam.html#a29e3031b7b2f544dc0a4fd9ce8af362f">name</a>=<span class="stringliteral">&quot;org.soprano.Server&quot;</span>&gt;
   &lt;method name=<span class="stringliteral">&quot;createModel&quot;</span>&gt;
     &lt;arg name=<span class="stringliteral">&quot;name&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a28ec91b268156971dedc36c027a023a6">type</a>=<span class="stringliteral">&quot;s&quot;</span> direction=<span class="stringliteral">&quot;in&quot;</span> /&gt;
     &lt;arg name=<span class="stringliteral">&quot;model&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a28ec91b268156971dedc36c027a023a6">type</a>=<span class="stringliteral">&quot;s&quot;</span> direction=<span class="stringliteral">&quot;out&quot;</span> /&gt;
   &lt;/method&gt;
   &lt;method name=<span class="stringliteral">&quot;removeModel&quot;</span>&gt;
     &lt;arg name=<span class="stringliteral">&quot;name&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a28ec91b268156971dedc36c027a023a6">type</a>=<span class="stringliteral">&quot;s&quot;</span> direction=<span class="stringliteral">&quot;in&quot;</span> /&gt;
   &lt;/method&gt;
   &lt;method name=<span class="stringliteral">&quot;allModels&quot;</span>&gt;
     &lt;arg name=<span class="stringliteral">&quot;models&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a28ec91b268156971dedc36c027a023a6">type</a>=<span class="stringliteral">&quot;as&quot;</span> direction=<span class="stringliteral">&quot;out&quot;</span> /&gt;
   &lt;/method&gt;
 &lt;/interface&gt;
</pre></div><p>The org.soprano.Server interface provides two main methods to create and remove Soprano models:</p>
<p><b>org.soprano.Server.createModel</b></p>
<p>The createModel method only takes a single argument: the model's unique name which identifies the model. The method returns the path to the D-Bus object which exports the org.soprano.Model interface.</p>
<p><b>org.soprano.Server.removeModel</b></p>
<p>The removeModel method also just takes the one parameter that is the model's name. It completely removes the model including the data on disk. Use with care.</p>
<h2><a class="anchor" id="soprano_server_dbus_model_interface"></a>
org.soprano.Model</h2>
<div class="fragment"><pre class="fragment"> &lt;interface name=<span class="stringliteral">&quot;org.soprano.Model&quot;</span>&gt;
   &lt;method name=<span class="stringliteral">&quot;addStatement&quot;</span>&gt;
     &lt;arg name=<span class="stringliteral">&quot;statement&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a28ec91b268156971dedc36c027a023a6">type</a>=<span class="stringliteral">&quot;((isss)(isss)(isss)(isss))&quot;</span> direction=<span class="stringliteral">&quot;in&quot;</span> /&gt;
     &lt;arg name=<span class="stringliteral">&quot;errorCode&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a28ec91b268156971dedc36c027a023a6">type</a>=<span class="stringliteral">&quot;i&quot;</span> direction=<span class="stringliteral">&quot;out&quot;</span> /&gt;
     &lt;<a class="code" href="namespaceSoprano_1_1Vocabulary_1_1NAO.html#a254f0832fbf85642da893081dd160dbd">annotation</a> name=<span class="stringliteral">&quot;com.trolltech.QtDBus.QtTypeName.In0&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a0e57b07dcc5317ad7925ebdb466528c0">value</a>=<span class="stringliteral">&quot;Soprano::Statement&quot;</span> /&gt;
   &lt;/method&gt;
   &lt;method name=<span class="stringliteral">&quot;removeStatement&quot;</span>&gt;
     &lt;arg name=<span class="stringliteral">&quot;statement&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a28ec91b268156971dedc36c027a023a6">type</a>=<span class="stringliteral">&quot;((isss)(isss)(isss)(isss))&quot;</span> direction=<span class="stringliteral">&quot;in&quot;</span> /&gt;
     &lt;arg name=<span class="stringliteral">&quot;errorCode&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a28ec91b268156971dedc36c027a023a6">type</a>=<span class="stringliteral">&quot;i&quot;</span> direction=<span class="stringliteral">&quot;out&quot;</span> /&gt;
     &lt;<a class="code" href="namespaceSoprano_1_1Vocabulary_1_1NAO.html#a254f0832fbf85642da893081dd160dbd">annotation</a> name=<span class="stringliteral">&quot;com.trolltech.QtDBus.QtTypeName.In0&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a0e57b07dcc5317ad7925ebdb466528c0">value</a>=<span class="stringliteral">&quot;Soprano::Statement&quot;</span> /&gt;
   &lt;/method&gt;
   &lt;method name=<span class="stringliteral">&quot;removeAllStatements&quot;</span>&gt;
     &lt;arg name=<span class="stringliteral">&quot;statement&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a28ec91b268156971dedc36c027a023a6">type</a>=<span class="stringliteral">&quot;((isss)(isss)(isss)(isss))&quot;</span> direction=<span class="stringliteral">&quot;in&quot;</span> /&gt;
     &lt;arg name=<span class="stringliteral">&quot;errorCode&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a28ec91b268156971dedc36c027a023a6">type</a>=<span class="stringliteral">&quot;i&quot;</span> direction=<span class="stringliteral">&quot;out&quot;</span> /&gt;
     &lt;<a class="code" href="namespaceSoprano_1_1Vocabulary_1_1NAO.html#a254f0832fbf85642da893081dd160dbd">annotation</a> name=<span class="stringliteral">&quot;com.trolltech.QtDBus.QtTypeName.In0&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a0e57b07dcc5317ad7925ebdb466528c0">value</a>=<span class="stringliteral">&quot;Soprano::Statement&quot;</span> /&gt;
   &lt;/method&gt;
   &lt;method name=<span class="stringliteral">&quot;containsStatement&quot;</span>&gt;
     &lt;arg name=<span class="stringliteral">&quot;statement&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a28ec91b268156971dedc36c027a023a6">type</a>=<span class="stringliteral">&quot;((isss)(isss)(isss)(isss))&quot;</span> direction=<span class="stringliteral">&quot;in&quot;</span> /&gt;
     &lt;arg name=<span class="stringliteral">&quot;reply&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a28ec91b268156971dedc36c027a023a6">type</a>=<span class="stringliteral">&quot;b&quot;</span> direction=<span class="stringliteral">&quot;out&quot;</span> /&gt;
     &lt;<a class="code" href="namespaceSoprano_1_1Vocabulary_1_1NAO.html#a254f0832fbf85642da893081dd160dbd">annotation</a> name=<span class="stringliteral">&quot;com.trolltech.QtDBus.QtTypeName.In0&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a0e57b07dcc5317ad7925ebdb466528c0">value</a>=<span class="stringliteral">&quot;Soprano::Statement&quot;</span> /&gt;
   &lt;/method&gt;
   &lt;method name=<span class="stringliteral">&quot;containsAnyStatement&quot;</span>&gt;
     &lt;arg name=<span class="stringliteral">&quot;statement&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a28ec91b268156971dedc36c027a023a6">type</a>=<span class="stringliteral">&quot;((isss)(isss)(isss)(isss))&quot;</span> direction=<span class="stringliteral">&quot;in&quot;</span> /&gt;
     &lt;arg name=<span class="stringliteral">&quot;reply&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a28ec91b268156971dedc36c027a023a6">type</a>=<span class="stringliteral">&quot;b&quot;</span> direction=<span class="stringliteral">&quot;out&quot;</span> /&gt;
     &lt;<a class="code" href="namespaceSoprano_1_1Vocabulary_1_1NAO.html#a254f0832fbf85642da893081dd160dbd">annotation</a> name=<span class="stringliteral">&quot;com.trolltech.QtDBus.QtTypeName.In0&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a0e57b07dcc5317ad7925ebdb466528c0">value</a>=<span class="stringliteral">&quot;Soprano::Statement&quot;</span> /&gt;
   &lt;/method&gt;
   &lt;method name=<span class="stringliteral">&quot;listStatements&quot;</span>&gt;
     &lt;arg name=<span class="stringliteral">&quot;statement&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a28ec91b268156971dedc36c027a023a6">type</a>=<span class="stringliteral">&quot;((isss)(isss)(isss)(isss))&quot;</span> direction=<span class="stringliteral">&quot;in&quot;</span> /&gt;
     &lt;arg name=<span class="stringliteral">&quot;iterator&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a28ec91b268156971dedc36c027a023a6">type</a>=<span class="stringliteral">&quot;s&quot;</span> direction=<span class="stringliteral">&quot;out&quot;</span> /&gt;
     &lt;<a class="code" href="namespaceSoprano_1_1Vocabulary_1_1NAO.html#a254f0832fbf85642da893081dd160dbd">annotation</a> name=<span class="stringliteral">&quot;com.trolltech.QtDBus.QtTypeName.In0&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a0e57b07dcc5317ad7925ebdb466528c0">value</a>=<span class="stringliteral">&quot;Soprano::Statement&quot;</span> /&gt;
   &lt;/method&gt;
   &lt;method name=<span class="stringliteral">&quot;listContexts&quot;</span>&gt;
     &lt;arg name=<span class="stringliteral">&quot;iterator&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a28ec91b268156971dedc36c027a023a6">type</a>=<span class="stringliteral">&quot;s&quot;</span> direction=<span class="stringliteral">&quot;out&quot;</span> /&gt;
   &lt;/method&gt;
   &lt;method name=<span class="stringliteral">&quot;statementCount&quot;</span>&gt;
     &lt;arg name=<span class="stringliteral">&quot;count&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a28ec91b268156971dedc36c027a023a6">type</a>=<span class="stringliteral">&quot;i&quot;</span> direction=<span class="stringliteral">&quot;out&quot;</span> /&gt;
   &lt;/method&gt;
   &lt;method name=<span class="stringliteral">&quot;isEmpty&quot;</span>&gt;
     &lt;arg name=<span class="stringliteral">&quot;reply&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a28ec91b268156971dedc36c027a023a6">type</a>=<span class="stringliteral">&quot;b&quot;</span> direction=<span class="stringliteral">&quot;out&quot;</span> /&gt;
   &lt;/method&gt;
   &lt;method name=<span class="stringliteral">&quot;executeQuery&quot;</span>&gt;
     &lt;arg name=<span class="stringliteral">&quot;query&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a28ec91b268156971dedc36c027a023a6">type</a>=<span class="stringliteral">&quot;s&quot;</span> direction=<span class="stringliteral">&quot;in&quot;</span> /&gt;
     &lt;arg name=<span class="stringliteral">&quot;queryLang&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a28ec91b268156971dedc36c027a023a6">type</a>=<span class="stringliteral">&quot;s&quot;</span> direction=<span class="stringliteral">&quot;in&quot;</span> /&gt;
     &lt;arg name=<span class="stringliteral">&quot;iterator&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a28ec91b268156971dedc36c027a023a6">type</a>=<span class="stringliteral">&quot;s&quot;</span> direction=<span class="stringliteral">&quot;out&quot;</span> /&gt;
   &lt;/method&gt;
   &lt;method name=<span class="stringliteral">&quot;createBlankNode&quot;</span>&gt;
     &lt;arg name=<span class="stringliteral">&quot;node&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a28ec91b268156971dedc36c027a023a6">type</a>=<span class="stringliteral">&quot;(isss)&quot;</span> direction=<span class="stringliteral">&quot;out&quot;</span> /&gt;
     &lt;<a class="code" href="namespaceSoprano_1_1Vocabulary_1_1NAO.html#a254f0832fbf85642da893081dd160dbd">annotation</a> name=<span class="stringliteral">&quot;com.trolltech.QtDBus.QtTypeName.Out0&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a0e57b07dcc5317ad7925ebdb466528c0">value</a>=<span class="stringliteral">&quot;Soprano::Node&quot;</span> /&gt;
   &lt;/method&gt;
   &lt;signal name=<span class="stringliteral">&quot;statementsAdded&quot;</span> /&gt;
   &lt;signal name=<span class="stringliteral">&quot;statementsRemoved&quot;</span> /&gt;
   &lt;signal name=<span class="stringliteral">&quot;statementAdded&quot;</span>&gt;
     &lt;arg name=<span class="stringliteral">&quot;statement&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a28ec91b268156971dedc36c027a023a6">type</a>=<span class="stringliteral">&quot;((isss)(isss)(isss)(isss))&quot;</span> /&gt;
     &lt;<a class="code" href="namespaceSoprano_1_1Vocabulary_1_1NAO.html#a254f0832fbf85642da893081dd160dbd">annotation</a> name=<span class="stringliteral">&quot;com.trolltech.QtDBus.QtTypeName.In0&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a0e57b07dcc5317ad7925ebdb466528c0">value</a>=<span class="stringliteral">&quot;Soprano::Statement&quot;</span> /&gt;
   &lt;/signal&gt;
   &lt;signal name=<span class="stringliteral">&quot;statementRemoved&quot;</span>&gt;
     &lt;arg name=<span class="stringliteral">&quot;statement&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a28ec91b268156971dedc36c027a023a6">type</a>=<span class="stringliteral">&quot;((isss)(isss)(isss)(isss))&quot;</span> /&gt;
     &lt;<a class="code" href="namespaceSoprano_1_1Vocabulary_1_1NAO.html#a254f0832fbf85642da893081dd160dbd">annotation</a> name=<span class="stringliteral">&quot;com.trolltech.QtDBus.QtTypeName.In0&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a0e57b07dcc5317ad7925ebdb466528c0">value</a>=<span class="stringliteral">&quot;Soprano::Statement&quot;</span> /&gt;
   &lt;/signal&gt;
 &lt;/interface&gt;
</pre></div><p>The org.soprano.Model interface maps the <a class="el" href="classSoprano_1_1Model.html" title="A Model is the central class in Soprano. It is a queryable collection of RDF quadruples, i.e statements.">Soprano::Model</a> API to a D-Bus interface. The only difference is that instead of iterators the interface returns D-Bus object paths which provide D-Bus interfaces themselves and that the executeQuery method does take two string parameters: the query itself and the query language.</p>
<p>The method listContexts returns the path of a D-Bus object exporting the org.soprano.NodeIterator interface, listStatements returns the path of a D-Bus object exporting the org.soprano.StatementIterator interface, and executeQuery returns the path of a D-Bus object exporting the org.soprano.QueryResultIterator interface.</p>
<p>The D-Bus interface to the <a class="el" href="classSoprano_1_1Model.html" title="A Model is the central class in Soprano. It is a queryable collection of RDF quadruples, i.e statements.">Soprano::Model</a> obviously needs to encode <a class="el" href="classSoprano_1_1Node.html" title="A Node represents one RDF resource.">Soprano::Node</a> instances. A <a class="el" href="classSoprano_1_1Node.html" title="A Node represents one RDF resource.">Soprano::Node</a> is encoded as follows: </p>
<ul>
<li>The Node type as defined in <a class="el" href="classSoprano_1_1Node.html#ac63f6890978f00f3da8da427f4c5d16c">Soprano::Node::Type</a>: 0 - empty node, 1 - resource node, 2 - literal node, 3 - blank node </li>
<li>A string representation of the Node (the encoded URI for resource nodes, the identifier for blank nodes, and the literal value for literal nodes) </li>
<li>The language code (non-empty only for literal nodes) </li>
<li>The encoded datatype URI (non-empty only for literal nodes)</li>
</ul>
<h2><a class="anchor" id="soprano_server_dbus_node_iterator_interface"></a>
org.soprano.NodeIterator</h2>
<div class="fragment"><pre class="fragment"> &lt;interface name=<span class="stringliteral">&quot;org.soprano.NodeIterator&quot;</span>&gt;
   &lt;method name=<span class="stringliteral">&quot;next&quot;</span>&gt;
     &lt;arg name=<span class="stringliteral">&quot;reply&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a28ec91b268156971dedc36c027a023a6">type</a>=<span class="stringliteral">&quot;b&quot;</span> direction=<span class="stringliteral">&quot;out&quot;</span> /&gt;
   &lt;/method&gt;
   &lt;method name=<span class="stringliteral">&quot;current&quot;</span>&gt;
     &lt;arg name=<span class="stringliteral">&quot;node&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a28ec91b268156971dedc36c027a023a6">type</a>=<span class="stringliteral">&quot;(isss)&quot;</span> direction=<span class="stringliteral">&quot;out&quot;</span> /&gt;
     &lt;<a class="code" href="namespaceSoprano_1_1Vocabulary_1_1NAO.html#a254f0832fbf85642da893081dd160dbd">annotation</a> name=<span class="stringliteral">&quot;com.trolltech.QtDBus.QtTypeName.Out0&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a0e57b07dcc5317ad7925ebdb466528c0">value</a>=<span class="stringliteral">&quot;Soprano::Node&quot;</span> /&gt;
   &lt;/method&gt;
   &lt;method name=<span class="stringliteral">&quot;close&quot;</span> /&gt;
 &lt;/interface&gt;
</pre></div><p>The node iterator interface maps very closely to the API of <a class="el" href="classSoprano_1_1NodeIterator.html" title="An iterator that provides a stream of Nodes.">Soprano::NodeIterator</a>.</p>
<h2><a class="anchor" id="soprano_server_dbus_statement_iterator_interface"></a>
org.soprano.StatementIterator</h2>
<div class="fragment"><pre class="fragment"> &lt;interface name=<span class="stringliteral">&quot;org.soprano.StatementIterator&quot;</span>&gt;
   &lt;method name=<span class="stringliteral">&quot;next&quot;</span>&gt;
     &lt;arg name=<span class="stringliteral">&quot;reply&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a28ec91b268156971dedc36c027a023a6">type</a>=<span class="stringliteral">&quot;b&quot;</span> direction=<span class="stringliteral">&quot;out&quot;</span> /&gt;
   &lt;/method&gt;
   &lt;method name=<span class="stringliteral">&quot;current&quot;</span>&gt;
     &lt;arg name=<span class="stringliteral">&quot;statement&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a28ec91b268156971dedc36c027a023a6">type</a>=<span class="stringliteral">&quot;((isss)(isss)(isss)(isss))&quot;</span> direction=<span class="stringliteral">&quot;out&quot;</span> /&gt;
     &lt;<a class="code" href="namespaceSoprano_1_1Vocabulary_1_1NAO.html#a254f0832fbf85642da893081dd160dbd">annotation</a> name=<span class="stringliteral">&quot;com.trolltech.QtDBus.QtTypeName.Out0&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a0e57b07dcc5317ad7925ebdb466528c0">value</a>=<span class="stringliteral">&quot;Soprano::Statement&quot;</span> /&gt;
   &lt;/method&gt;
   &lt;method name=<span class="stringliteral">&quot;close&quot;</span> /&gt;
 &lt;/interface&gt;
</pre></div><p>The statement iterator interface maps very closely to the API of <a class="el" href="classSoprano_1_1StatementIterator.html" title="An iterator that provides a stream of Statements.">Soprano::StatementIterator</a>.</p>
<h2><a class="anchor" id="soprano_server_dbus_queryresult_iterator_interface"></a>
org.soprano.QueryResultIterator</h2>
<div class="fragment"><pre class="fragment"> &lt;interface name=<span class="stringliteral">&quot;org.soprano.QueryResultIterator&quot;</span>&gt;
   &lt;method name=<span class="stringliteral">&quot;next&quot;</span>&gt;
     &lt;arg name=<span class="stringliteral">&quot;reply&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a28ec91b268156971dedc36c027a023a6">type</a>=<span class="stringliteral">&quot;b&quot;</span> direction=<span class="stringliteral">&quot;out&quot;</span> /&gt;
   &lt;/method&gt;
   &lt;method name=<span class="stringliteral">&quot;current&quot;</span>&gt;
     &lt;arg name=<span class="stringliteral">&quot;node&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a28ec91b268156971dedc36c027a023a6">type</a>=<span class="stringliteral">&quot;a{s(isss)}&quot;</span> direction=<span class="stringliteral">&quot;out&quot;</span> /&gt;
     &lt;<a class="code" href="namespaceSoprano_1_1Vocabulary_1_1NAO.html#a254f0832fbf85642da893081dd160dbd">annotation</a> name=<span class="stringliteral">&quot;com.trolltech.QtDBus.QtTypeName.Out0&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a0e57b07dcc5317ad7925ebdb466528c0">value</a>=<span class="stringliteral">&quot;Soprano::BindingSet&quot;</span> /&gt;
   &lt;/method&gt;
   &lt;method name=<span class="stringliteral">&quot;close&quot;</span> /&gt;
   &lt;method name=<span class="stringliteral">&quot;currentStatement&quot;</span>&gt;
     &lt;arg name=<span class="stringliteral">&quot;statement&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a28ec91b268156971dedc36c027a023a6">type</a>=<span class="stringliteral">&quot;((isss)(isss)(isss)(isss))&quot;</span> direction=<span class="stringliteral">&quot;out&quot;</span> /&gt;
     &lt;<a class="code" href="namespaceSoprano_1_1Vocabulary_1_1NAO.html#a254f0832fbf85642da893081dd160dbd">annotation</a> name=<span class="stringliteral">&quot;com.trolltech.QtDBus.QtTypeName.Out0&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a0e57b07dcc5317ad7925ebdb466528c0">value</a>=<span class="stringliteral">&quot;Soprano::Statement&quot;</span> /&gt;
   &lt;/method&gt;
   &lt;method name=<span class="stringliteral">&quot;bindingByName&quot;</span>&gt;
     &lt;arg name=<span class="stringliteral">&quot;name&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a28ec91b268156971dedc36c027a023a6">type</a>=<span class="stringliteral">&quot;s&quot;</span> direction=<span class="stringliteral">&quot;in&quot;</span> /&gt;
     &lt;arg name=<span class="stringliteral">&quot;node&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a28ec91b268156971dedc36c027a023a6">type</a>=<span class="stringliteral">&quot;(isss)&quot;</span> direction=<span class="stringliteral">&quot;out&quot;</span> /&gt;
     &lt;<a class="code" href="namespaceSoprano_1_1Vocabulary_1_1NAO.html#a254f0832fbf85642da893081dd160dbd">annotation</a> name=<span class="stringliteral">&quot;com.trolltech.QtDBus.QtTypeName.Out0&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a0e57b07dcc5317ad7925ebdb466528c0">value</a>=<span class="stringliteral">&quot;Soprano::Node&quot;</span> /&gt;
   &lt;/method&gt;
   &lt;method name=<span class="stringliteral">&quot;bindingByIndex&quot;</span>&gt;
     &lt;arg name=<span class="stringliteral">&quot;index&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a28ec91b268156971dedc36c027a023a6">type</a>=<span class="stringliteral">&quot;i&quot;</span> direction=<span class="stringliteral">&quot;in&quot;</span> /&gt;
     &lt;arg name=<span class="stringliteral">&quot;node&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a28ec91b268156971dedc36c027a023a6">type</a>=<span class="stringliteral">&quot;(isss)&quot;</span> direction=<span class="stringliteral">&quot;out&quot;</span> /&gt;
     &lt;<a class="code" href="namespaceSoprano_1_1Vocabulary_1_1NAO.html#a254f0832fbf85642da893081dd160dbd">annotation</a> name=<span class="stringliteral">&quot;com.trolltech.QtDBus.QtTypeName.Out0&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a0e57b07dcc5317ad7925ebdb466528c0">value</a>=<span class="stringliteral">&quot;Soprano::Node&quot;</span> /&gt;
   &lt;/method&gt;
   &lt;method name=<span class="stringliteral">&quot;bindingCount&quot;</span>&gt;
     &lt;arg name=<span class="stringliteral">&quot;names&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a28ec91b268156971dedc36c027a023a6">type</a>=<span class="stringliteral">&quot;i&quot;</span> direction=<span class="stringliteral">&quot;out&quot;</span> /&gt;
   &lt;/method&gt;
   &lt;method name=<span class="stringliteral">&quot;bindingNames&quot;</span>&gt;
     &lt;arg name=<span class="stringliteral">&quot;names&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a28ec91b268156971dedc36c027a023a6">type</a>=<span class="stringliteral">&quot;as&quot;</span> direction=<span class="stringliteral">&quot;out&quot;</span> /&gt;
   &lt;/method&gt;
   &lt;method name=<span class="stringliteral">&quot;boolValue&quot;</span>&gt;
     &lt;arg name=<span class="stringliteral">&quot;reply&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a28ec91b268156971dedc36c027a023a6">type</a>=<span class="stringliteral">&quot;b&quot;</span> direction=<span class="stringliteral">&quot;out&quot;</span> /&gt;
   &lt;/method&gt;
   &lt;method name=<span class="stringliteral">&quot;isGraph&quot;</span>&gt;
     &lt;arg name=<span class="stringliteral">&quot;reply&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a28ec91b268156971dedc36c027a023a6">type</a>=<span class="stringliteral">&quot;b&quot;</span> direction=<span class="stringliteral">&quot;out&quot;</span> /&gt;
   &lt;/method&gt;
   &lt;method name=<span class="stringliteral">&quot;isBinding&quot;</span>&gt;
     &lt;arg name=<span class="stringliteral">&quot;reply&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a28ec91b268156971dedc36c027a023a6">type</a>=<span class="stringliteral">&quot;b&quot;</span> direction=<span class="stringliteral">&quot;out&quot;</span> /&gt;
   &lt;/method&gt;
   &lt;method name=<span class="stringliteral">&quot;isBool&quot;</span>&gt;
     &lt;arg name=<span class="stringliteral">&quot;reply&quot;</span> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html#a28ec91b268156971dedc36c027a023a6">type</a>=<span class="stringliteral">&quot;b&quot;</span> direction=<span class="stringliteral">&quot;out&quot;</span> /&gt;
   &lt;/method&gt;
 &lt;/interface&gt;
</pre></div><p>The query result iterator interface maps closely to the <a class="el" href="classSoprano_1_1QueryResultIterator.html" title="An iterator for query results.">Soprano::QueryResultIterator</a> API except that it does not use method overloading (compare bindingByName and bindingByIndex). </p>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Thu Oct 21 2010 for Soprano by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address>
</body>
</html>