Sophie

Sophie

distrib > Fedora > 14 > i386 > by-pkgid > 5b6c31d6428e1f6ea754ea6f7b1aed6e > files > 56

soprano-apidocs-2.6.0-2.fc14.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::Client::DBusModel Class Reference</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.3 -->
<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 id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Soprano&#160;<span id="projectnumber">2.6.0</span></div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespaceSoprano.html">Soprano</a>      </li>
      <li class="navelem"><a class="el" href="namespaceSoprano_1_1Client.html">Client</a>      </li>
      <li class="navelem"><a class="el" href="classSoprano_1_1Client_1_1DBusModel.html">DBusModel</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<h1>Soprano::Client::DBusModel Class Reference</h1>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Soprano::Client::DBusModel" --><!-- doxytag: inherits="Soprano::StorageModel" -->
<p>Interface to a DBus server model.  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="dbusmodel_8h_source.html">Soprano/Client/DBusModel</a>&gt;</code></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png"/> Inheritance diagram for Soprano::Client::DBusModel:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classSoprano_1_1Client_1_1DBusModel__inherit__graph.png" border="0" usemap="#Soprano_1_1Client_1_1DBusModel_inherit__map" alt="Inheritance graph"/></div>
<map name="Soprano_1_1Client_1_1DBusModel_inherit__map" id="Soprano_1_1Client_1_1DBusModel_inherit__map">
<area shape="rect" id="node2" href="classSoprano_1_1StorageModel.html" title="Base class for all Model implementations that store data (as compared to FilterModel)." alt="" coords="35,160,192,189"/><area shape="rect" id="node4" 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." alt="" coords="57,83,169,112"/><area shape="rect" id="node6" href="qobject.html" title="QObject" alt="" coords="5,5,75,35"/><area shape="rect" id="node8" href="classSoprano_1_1Error_1_1ErrorCache.html" title="Core class of Soprano&#39;s exception system." alt="" coords="99,5,277,35"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classSoprano_1_1Client_1_1DBusModel-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Client_1_1DBusModel.html#ac25443d0275a6b1b9a6a5b51fa5185dd">DBusModel</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;serviceName, const <a class="elRef" href="qstring.html">QString</a> &amp;dbusObject, const <a class="el" href="classSoprano_1_1Backend.html">Backend</a> *backend=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Client_1_1DBusModel.html#a54a81f028935e422765e87b5499b728f">~DBusModel</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Client_1_1DBusModel.html#acf475843df4e6660ebff1817b0d18a01">setAsyncCalls</a> (bool b)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Client_1_1DBusModel.html#a6a9ed49922c7148965232e91bc5412e8">asyncCalls</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceSoprano_1_1Error.html#aef1bd25c5b6705951735e0fb5c5ff525">Error::ErrorCode</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Client_1_1DBusModel.html#a8cba0c7707afb637d677b3d461b52150">addStatement</a> (const <a class="el" href="classSoprano_1_1Statement.html">Statement</a> &amp;statement)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1NodeIterator.html">NodeIterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Client_1_1DBusModel.html#a8bf2c45a0fc173fc2875d480c421538e">listContexts</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1QueryResultIterator.html">QueryResultIterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Client_1_1DBusModel.html#a5ee79f1a1c1e01c361b4cea706670685">executeQuery</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;query, <a class="el" href="namespaceSoprano_1_1Query.html#ab568869993a9d6c452c8e5a34d5ac26c">Query::QueryLanguage</a> language, const <a class="elRef" href="qstring.html">QString</a> &amp;userQueryLanguage=<a class="elRef" href="qstring.html">QString</a>()) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1StatementIterator.html">StatementIterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Client_1_1DBusModel.html#a4577199220e2e0be57b0556eb53ad16a">listStatements</a> (const <a class="el" href="classSoprano_1_1Statement.html">Statement</a> &amp;partial) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceSoprano_1_1Error.html#aef1bd25c5b6705951735e0fb5c5ff525">Error::ErrorCode</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Client_1_1DBusModel.html#ab558b0997b91accc3a0fc560aff7515a">removeStatement</a> (const <a class="el" href="classSoprano_1_1Statement.html">Statement</a> &amp;statement)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceSoprano_1_1Error.html#aef1bd25c5b6705951735e0fb5c5ff525">Error::ErrorCode</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Client_1_1DBusModel.html#ad5c084f8146e9d7f3fc814541095dfcf">removeAllStatements</a> (const <a class="el" href="classSoprano_1_1Statement.html">Statement</a> &amp;statement)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Client_1_1DBusModel.html#ac38d5204c1077328f7f0678293c5e33b">statementCount</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Client_1_1DBusModel.html#a182cb53819aaa1c328d3d2d0977dd05d">isEmpty</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Client_1_1DBusModel.html#af73ce3b3de76361a77c7e54122d34a44">containsStatement</a> (const <a class="el" href="classSoprano_1_1Statement.html">Statement</a> &amp;statement) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Client_1_1DBusModel.html#ac755e964c1e6b8b199badba9a61ecdb5">containsAnyStatement</a> (const <a class="el" href="classSoprano_1_1Statement.html">Statement</a> &amp;statement) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1Node.html">Node</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Client_1_1DBusModel.html#a930cb249a3ccbc22572cb3633c5472b5">createBlankNode</a> ()</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Interface to a DBus server model. </p>
<p>The <a class="el" href="classSoprano_1_1Client_1_1DBusModel.html" title="Interface to a DBus server model.">DBusModel</a> provides a fully functional interface to a <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.">Model</a> provided through a Soprano DBus server. It can thus, be seen as the counterpart to <a class="el" href="classSoprano_1_1Server_1_1DBusExportModel.html" title="Exports a Soprano Model via D-Bus.">Server::DBusExportModel</a>.</p>
<p>Given the DBus service name and the object path of 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.">Model</a> in question it handles all DBus communication transparently.</p>
<p>Normally there is no need to use this class directly as <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.">DBusClient</a> does create instances of it on request.</p>
<dl class="warning"><dt><b>Warning:</b></dt><dd><a class="el" href="classSoprano_1_1Client_1_1DBusModel.html" title="Interface to a DBus server model.">DBusModel</a> is not thread-safe by default and has to be protected if is is to be used from different threads (This can be done via <a class="el" href="classSoprano_1_1Util_1_1MutexModel.html" title="Protect a Model for multiple calls in multi-threaded applications.">Soprano::Util::MutexModel</a> in <a class="el" href="classSoprano_1_1Util_1_1MutexModel.html#abd408bea1a834abe1b34230c709752a1a17424d4518e0dd5dc1810b91e6b0366c">Soprano::Util::MutexModel::ReadWriteMultiThreading</a> mode or via setting the model to async mode via <a class="el" href="classSoprano_1_1Client_1_1DBusModel.html#acf475843df4e6660ebff1817b0d18a01">setAsyncCalls()</a>).</dd></dl>
<dl class="author"><dt><b>Author:</b></dt><dd>Sebastian Trueg &lt;<a href="mailto:trueg@kde.org">trueg@kde.org</a>&gt;</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="soprano_server_dbus.html">Soprano D-Bus Interface</a> </dd></dl>

<p>Definition at line <a class="el" href="dbusmodel_8h_source.html#l00056">56</a> of file <a class="el" href="dbusmodel_8h_source.html">dbusmodel.h</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ac25443d0275a6b1b9a6a5b51fa5185dd"></a><!-- doxytag: member="Soprano::Client::DBusModel::DBusModel" ref="ac25443d0275a6b1b9a6a5b51fa5185dd" args="(const QString &amp;serviceName, const QString &amp;dbusObject, const Backend *backend=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Soprano::Client::DBusModel::DBusModel </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>serviceName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>dbusObject</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1Backend.html">Backend</a> *&#160;</td>
          <td class="paramname"><em>backend</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Create a new DBus <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.">Model</a> interface.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">serviceName</td><td>The name of the DBus service that provides 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.">Model</a>. </td></tr>
    <tr><td class="paramname">dbusObject</td><td>The path 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.">Model</a> object in the DBus service. </td></tr>
    <tr><td class="paramname">backend</td><td>The backend that created this model. Should always be set to 0. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a54a81f028935e422765e87b5499b728f"></a><!-- doxytag: member="Soprano::Client::DBusModel::~DBusModel" ref="a54a81f028935e422765e87b5499b728f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Soprano::Client::DBusModel::~DBusModel </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="acf475843df4e6660ebff1817b0d18a01"></a><!-- doxytag: member="Soprano::Client::DBusModel::setAsyncCalls" ref="acf475843df4e6660ebff1817b0d18a01" args="(bool b)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Soprano::Client::DBusModel::setAsyncCalls </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>b</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Configure <a class="el" href="classSoprano_1_1Client_1_1DBusModel.html" title="Interface to a DBus server model.">DBusModel</a> to use asyncronous calls over DBus. With asyncronous calls <a class="el" href="classSoprano_1_1Client_1_1DBusModel.html" title="Interface to a DBus server model.">DBusModel</a> will enter local event loops while waiting for the reply. This way multiple calls can be performed interweaved. However, the application does not block, i.e. events (such as signals and slots) are handled which might not be wanted. If that is the case it is better to use <a class="el" href="classSoprano_1_1Util_1_1MutexModel.html" title="Protect a Model for multiple calls in multi-threaded applications.">Util::MutexModel</a> instead.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">b</td><td>If true asyncronous calls are enabled.</td></tr>
  </table>
  </dd>
</dl>
<p>Per default asyncronous calls are disabled.</p>
<dl class="warning"><dt><b>Warning:</b></dt><dd>Asyncronous calls only work in combination with a <a class="elRef" href="qcoreapplication.html">QCoreApplication</a> instance.</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd>QDBus::BlockWithGui </dd></dl>

</div>
</div>
<a class="anchor" id="a6a9ed49922c7148965232e91bc5412e8"></a><!-- doxytag: member="Soprano::Client::DBusModel::asyncCalls" ref="a6a9ed49922c7148965232e91bc5412e8" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Soprano::Client::DBusModel::asyncCalls </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if asyncronous calls are enabled. </dd></dl>

</div>
</div>
<a class="anchor" id="a8cba0c7707afb637d677b3d461b52150"></a><!-- doxytag: member="Soprano::Client::DBusModel::addStatement" ref="a8cba0c7707afb637d677b3d461b52150" args="(const Statement &amp;statement)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceSoprano_1_1Error.html#aef1bd25c5b6705951735e0fb5c5ff525">Error::ErrorCode</a> Soprano::Client::DBusModel::addStatement </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1Statement.html">Statement</a> &amp;&#160;</td>
          <td class="paramname"><em>statement</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Add the <a class="el" href="classSoprano_1_1Statement.html" title="A Statement instance represents one RDF quadruple.">Statement</a> 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.">Model</a>.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">statement</td><td>The <a class="el" href="classSoprano_1_1Statement.html" title="A Statement instance represents one RDF quadruple.">Statement</a> to add. </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="classSoprano_1_1Model.html#aed5b923235288fbac997850cca8f6053">Soprano::Model</a>.</p>

</div>
</div>
<a class="anchor" id="a8bf2c45a0fc173fc2875d480c421538e"></a><!-- doxytag: member="Soprano::Client::DBusModel::listContexts" ref="a8bf2c45a0fc173fc2875d480c421538e" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classSoprano_1_1NodeIterator.html">NodeIterator</a> Soprano::Client::DBusModel::listContexts </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>List all contexts in the model, i.e. all named graphs.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>An iterator over context Nodes, on error an invalid iterator is returned. </dd></dl>

<p>Implements <a class="el" href="classSoprano_1_1Model.html#ad530cc7d159fdb0d05f66902b9594020">Soprano::Model</a>.</p>

</div>
</div>
<a class="anchor" id="a5ee79f1a1c1e01c361b4cea706670685"></a><!-- doxytag: member="Soprano::Client::DBusModel::executeQuery" ref="a5ee79f1a1c1e01c361b4cea706670685" args="(const QString &amp;query, Query::QueryLanguage language, const QString &amp;userQueryLanguage=QString()) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classSoprano_1_1QueryResultIterator.html">QueryResultIterator</a> Soprano::Client::DBusModel::executeQuery </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>query</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceSoprano_1_1Query.html#ab568869993a9d6c452c8e5a34d5ac26c">Query::QueryLanguage</a>&#160;</td>
          <td class="paramname"><em>language</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>userQueryLanguage</em> = <code><a class="elRef" href="qstring.html">QString</a>()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>query_api_disabled Execute the given query over 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.">Model</a>.</p>
<p>This is a const read-only method. As such <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.">Model</a> implementations should not support SPARQL extensions such as INSERT or UPDATE through this method. A future version of Soprano will provide an additional API for queries that change 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.">Model</a>.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">query</td><td>The query to evaluate. </td></tr>
    <tr><td class="paramname">language</td><td>The query language used to encode <code>query</code>. </td></tr>
    <tr><td class="paramname">userQueryLanguage</td><td>If <code>language</code> equals <a class="el" href="namespaceSoprano_1_1Query.html#ab568869993a9d6c452c8e5a34d5ac26cac6b6f6a34d2d09221941d9a0ac522633">Query::QueryLanguageUser</a> userQueryLanguage defines the language to use.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>An iterator over all results matching the query, on error an invalid iterator is returned. </dd></dl>

<p>Implements <a class="el" href="classSoprano_1_1Model.html#a5157ca3996dea1e7a46947d41e530c51">Soprano::Model</a>.</p>

</div>
</div>
<a class="anchor" id="a4577199220e2e0be57b0556eb53ad16a"></a><!-- doxytag: member="Soprano::Client::DBusModel::listStatements" ref="a4577199220e2e0be57b0556eb53ad16a" args="(const Statement &amp;partial) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classSoprano_1_1StatementIterator.html">StatementIterator</a> Soprano::Client::DBusModel::listStatements </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1Statement.html">Statement</a> &amp;&#160;</td>
          <td class="paramname"><em>partial</em></td><td>)</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Return an iterator over <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.">Model</a> Statements that "partial" match the input <a class="el" href="classSoprano_1_1Statement.html" title="A Statement instance represents one RDF quadruple.">Statement</a>.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">partial</td><td>The partial <a class="el" href="classSoprano_1_1Statement.html" title="A Statement instance represents one RDF quadruple.">Statement</a> to match.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>An iterator for all the matched Statements, on error an invalid iterator is returned. </dd></dl>

<p>Implements <a class="el" href="classSoprano_1_1Model.html#a7f50dc6483e0bed7830877182c7906ac">Soprano::Model</a>.</p>

</div>
</div>
<a class="anchor" id="ab558b0997b91accc3a0fc560aff7515a"></a><!-- doxytag: member="Soprano::Client::DBusModel::removeStatement" ref="ab558b0997b91accc3a0fc560aff7515a" args="(const Statement &amp;statement)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceSoprano_1_1Error.html#aef1bd25c5b6705951735e0fb5c5ff525">Error::ErrorCode</a> Soprano::Client::DBusModel::removeStatement </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1Statement.html">Statement</a> &amp;&#160;</td>
          <td class="paramname"><em>statement</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Remove one statement. For removing statements with wildward matching see <a class="el" href="classSoprano_1_1Model.html#ad24bce8972e94eeaa15d811131204394">removeAllStatements()</a>.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">statement</td><td>The statement that should be removed. This has to be a valid statement.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><a class="el" href="namespaceSoprano_1_1Error.html#aef1bd25c5b6705951735e0fb5c5ff525a69f521a4f40b463680d393963d5b4187">Error::ErrorNone</a> on success and an error code if statement was invalid or an error occured. </dd></dl>

<p>Implements <a class="el" href="classSoprano_1_1Model.html#ad5952940a5e589bd70fc794d434e0f63">Soprano::Model</a>.</p>

</div>
</div>
<a class="anchor" id="ad5c084f8146e9d7f3fc814541095dfcf"></a><!-- doxytag: member="Soprano::Client::DBusModel::removeAllStatements" ref="ad5c084f8146e9d7f3fc814541095dfcf" args="(const Statement &amp;statement)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceSoprano_1_1Error.html#aef1bd25c5b6705951735e0fb5c5ff525">Error::ErrorCode</a> Soprano::Client::DBusModel::removeAllStatements </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1Statement.html">Statement</a> &amp;&#160;</td>
          <td class="paramname"><em>statement</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Default implementation is based on <a class="el" href="classSoprano_1_1Client_1_1DBusModel.html#a4577199220e2e0be57b0556eb53ad16a">listStatements()</a> and <a class="el" href="classSoprano_1_1Client_1_1DBusModel.html#ab558b0997b91accc3a0fc560aff7515a">removeStatement()</a>. </p>

<p>Reimplemented from <a class="el" href="classSoprano_1_1StorageModel.html#ab1bece9ba14391df92554efdb7bf1df9">Soprano::StorageModel</a>.</p>

</div>
</div>
<a class="anchor" id="ac38d5204c1077328f7f0678293c5e33b"></a><!-- doxytag: member="Soprano::Client::DBusModel::statementCount" ref="ac38d5204c1077328f7f0678293c5e33b" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Soprano::Client::DBusModel::statementCount </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The number of statements stored in this <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.">Model</a>. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The size of 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.">Model</a>, or -1 on error. </dd></dl>

<p>Implements <a class="el" href="classSoprano_1_1Model.html#a831c3fd0e5dea37566fa19bd6068add8">Soprano::Model</a>.</p>

</div>
</div>
<a class="anchor" id="a182cb53819aaa1c328d3d2d0977dd05d"></a><!-- doxytag: member="Soprano::Client::DBusModel::isEmpty" ref="a182cb53819aaa1c328d3d2d0977dd05d" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Soprano::Client::DBusModel::isEmpty </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Default implementation is based on <a class="el" href="classSoprano_1_1Model.html#a831c3fd0e5dea37566fa19bd6068add8">Model::statementCount</a> </p>

<p>Reimplemented from <a class="el" href="classSoprano_1_1StorageModel.html#a1386c41c1e010928651497fbfc604b53">Soprano::StorageModel</a>.</p>

</div>
</div>
<a class="anchor" id="af73ce3b3de76361a77c7e54122d34a44"></a><!-- doxytag: member="Soprano::Client::DBusModel::containsStatement" ref="af73ce3b3de76361a77c7e54122d34a44" args="(const Statement &amp;statement) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Soprano::Client::DBusModel::containsStatement </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1Statement.html">Statement</a> &amp;&#160;</td>
          <td class="paramname"><em>statement</em></td><td>)</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Default implementation is based on <a class="el" href="classSoprano_1_1Model.html#a7f50dc6483e0bed7830877182c7906ac">Model::listStatements</a> </p>

<p>Reimplemented from <a class="el" href="classSoprano_1_1StorageModel.html#a6d385017d278413a6456c6155667f722">Soprano::StorageModel</a>.</p>

</div>
</div>
<a class="anchor" id="ac755e964c1e6b8b199badba9a61ecdb5"></a><!-- doxytag: member="Soprano::Client::DBusModel::containsAnyStatement" ref="ac755e964c1e6b8b199badba9a61ecdb5" args="(const Statement &amp;statement) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Soprano::Client::DBusModel::containsAnyStatement </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1Statement.html">Statement</a> &amp;&#160;</td>
          <td class="paramname"><em>statement</em></td><td>)</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Default implementation is based on <a class="el" href="classSoprano_1_1Model.html#a7f50dc6483e0bed7830877182c7906ac">Model::listStatements</a> </p>

<p>Reimplemented from <a class="el" href="classSoprano_1_1StorageModel.html#a036f0a4498b8a468814fa14d87d3ac83">Soprano::StorageModel</a>.</p>

</div>
</div>
<a class="anchor" id="a930cb249a3ccbc22572cb3633c5472b5"></a><!-- doxytag: member="Soprano::Client::DBusModel::createBlankNode" ref="a930cb249a3ccbc22572cb3633c5472b5" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classSoprano_1_1Node.html">Node</a> Soprano::Client::DBusModel::createBlankNode </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Creates a new blank node with a unique identifier.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A blank node that can be used to create new statements. </dd></dl>

<p>Implements <a class="el" href="classSoprano_1_1Model.html#a7f85d6812750b30e25175f92c3c62851">Soprano::Model</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>/builddir/build/BUILD/soprano-2.6.0/client/dbus/<a class="el" href="dbusmodel_8h_source.html">dbusmodel.h</a></li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Fri Mar 11 2011 for Soprano by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>
</body>
</html>