Sophie

Sophie

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

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::Util::AsyncModel 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.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><a href="pages.html"><span>Related&nbsp;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 class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="classes.html"><span>Class&nbsp;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath">
    <ul>
      <li><a class="el" href="namespaceSoprano.html">Soprano</a>      </li>
      <li><a class="el" href="namespaceSoprano_1_1Util.html">Util</a>      </li>
      <li><a class="el" href="classSoprano_1_1Util_1_1AsyncModel.html">Soprano::Util::AsyncModel</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<h1>Soprano::Util::AsyncModel Class Reference</h1>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Soprano::Util::AsyncModel" --><!-- doxytag: inherits="Soprano::FilterModel" -->
<p>Filter model that allows to perform operations asyncroneously.  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="asyncmodel_8h_source.html">Soprano/Server/AsyncModel</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::Util::AsyncModel:</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_1Util_1_1AsyncModel__inherit__graph.png" border="0" usemap="#Soprano_1_1Util_1_1AsyncModel_inherit__map" alt="Inheritance graph"/></div>
<map name="Soprano_1_1Util_1_1AsyncModel_inherit__map" id="Soprano_1_1Util_1_1AsyncModel_inherit__map">
<area shape="rect" id="node2" href="classSoprano_1_1FilterModel.html" title="A FilterModel is a virtual model that wraps another Model." alt="" coords="43,160,184,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_1Util_1_1AsyncModel-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Util_1_1AsyncModel.html#a603c50087a4c48d816f6ed28ef946216">AsyncModelMode</a> { <a class="el" href="classSoprano_1_1Util_1_1AsyncModel.html#a603c50087a4c48d816f6ed28ef946216a1749db71b5398f5f9c9b918d71a5001f">SingleThreaded</a>, 
<a class="el" href="classSoprano_1_1Util_1_1AsyncModel.html#a603c50087a4c48d816f6ed28ef946216a9880e88a8ca617fdd724e396b59e999b">MultiThreaded</a>
 }</td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Util_1_1AsyncModel.html#a6637f92a3724d3439d573f4ac2a6654d">AsyncModel</a> (<a class="el" href="classSoprano_1_1Model.html">Model</a> *<a class="elRef" href="qobject.html#parent">parent</a>=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Util_1_1AsyncModel.html#ac547f64d2a589b2e057c929010627651">~AsyncModel</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Util_1_1AsyncModel.html#a632891da44486a4fea01d58a49862d18">setMode</a> (<a class="el" href="classSoprano_1_1Util_1_1AsyncModel.html#a603c50087a4c48d816f6ed28ef946216">AsyncModelMode</a> mode)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1Util_1_1AsyncModel.html#a603c50087a4c48d816f6ed28ef946216">AsyncModelMode</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Util_1_1AsyncModel.html#a1794dd436111f9810bd29430ff2c521e">mode</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1Util_1_1AsyncResult.html">AsyncResult</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Util_1_1AsyncModel.html#a1aac1a6a78dd0c5ddc082d8a4801b1e5">addStatementAsync</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_1Util_1_1AsyncResult.html">AsyncResult</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Util_1_1AsyncModel.html#ac33332d2e0bef687708758a44a97acb6">addStatementAsync</a> (const <a class="el" href="classSoprano_1_1Node.html">Node</a> &amp;subject, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &amp;predicate, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &amp;object, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &amp;context=<a class="el" href="classSoprano_1_1Node.html">Node</a>())</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1Util_1_1AsyncResult.html">AsyncResult</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Util_1_1AsyncModel.html#a23c76b9624367bbaaf9a5e5f44bb9b9f">addStatementsAsync</a> (const <a class="elRef" href="qlist.html">QList</a>&lt; <a class="el" href="classSoprano_1_1Statement.html">Statement</a> &gt; &amp;statements)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1Util_1_1AsyncResult.html">AsyncResult</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Util_1_1AsyncModel.html#a71a2940aee2bc73de98b059cc544973c">removeStatementAsync</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_1Util_1_1AsyncResult.html">AsyncResult</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Util_1_1AsyncModel.html#afe69b3a2944e24444cacabc120489014">removeStatementAsync</a> (const <a class="el" href="classSoprano_1_1Node.html">Node</a> &amp;subject, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &amp;predicate, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &amp;object, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &amp;context=<a class="el" href="classSoprano_1_1Node.html">Node</a>())</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1Util_1_1AsyncResult.html">AsyncResult</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Util_1_1AsyncModel.html#a46a08109044ddf5ce941dbb92dc3ec1f">removeStatementsAsync</a> (const <a class="elRef" href="qlist.html">QList</a>&lt; <a class="el" href="classSoprano_1_1Statement.html">Statement</a> &gt; &amp;statements)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1Util_1_1AsyncResult.html">AsyncResult</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Util_1_1AsyncModel.html#af61e47b15cbe0cf44a7558554ea705b4">removeAllStatementsAsync</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_1Util_1_1AsyncResult.html">AsyncResult</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Util_1_1AsyncModel.html#a038f679887648edb6cda049ef6fb7755">removeAllStatementsAsync</a> (const <a class="el" href="classSoprano_1_1Node.html">Node</a> &amp;subject, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &amp;predicate, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &amp;object, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &amp;context=<a class="el" href="classSoprano_1_1Node.html">Node</a>())</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1Util_1_1AsyncResult.html">AsyncResult</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Util_1_1AsyncModel.html#acb8213fa5426ba5f40c1dbd42e78c930">isEmptyAsync</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1Util_1_1AsyncResult.html">AsyncResult</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Util_1_1AsyncModel.html#a0c66dfd60fcd969226378c461e0f5400">statementCountAsync</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1Util_1_1AsyncResult.html">AsyncResult</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Util_1_1AsyncModel.html#a69d783d226fcbeedec9a6d150eea086c">listStatementsAsync</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_1Util_1_1AsyncResult.html">AsyncResult</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Util_1_1AsyncModel.html#a0d8f3de24090754f0e7aaf3da9ac7d6b">listStatementsAsync</a> (const <a class="el" href="classSoprano_1_1Node.html">Node</a> &amp;subject, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &amp;predicate, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &amp;object, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &amp;context=<a class="el" href="classSoprano_1_1Node.html">Node</a>()) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1Util_1_1AsyncResult.html">AsyncResult</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Util_1_1AsyncModel.html#ab4743442fb164c0487b8cb67209b582b">listStatementsAsync</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1Util_1_1AsyncResult.html">AsyncResult</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Util_1_1AsyncModel.html#aaf2c1a27a73292aab5809d694ca52e69">listContextsAsync</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1Util_1_1AsyncResult.html">AsyncResult</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Util_1_1AsyncModel.html#a56d028786d0d66fc7a22a2d4cf7049b7">executeQueryAsync</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_1Util_1_1AsyncResult.html">AsyncResult</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Util_1_1AsyncModel.html#aacfa36003a8da3eccee8c99dcf63c782">containsStatementAsync</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_1Util_1_1AsyncResult.html">AsyncResult</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Util_1_1AsyncModel.html#af6db1cdfd543b76721ef0e1d19e747e8">containsStatementAsync</a> (const <a class="el" href="classSoprano_1_1Node.html">Node</a> &amp;subject, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &amp;predicate, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &amp;object, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &amp;context=<a class="el" href="classSoprano_1_1Node.html">Node</a>()) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1Util_1_1AsyncResult.html">AsyncResult</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Util_1_1AsyncModel.html#aba6207efff0e3e80100147410dd36737">containsAnyStatementAsync</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_1Util_1_1AsyncResult.html">AsyncResult</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Util_1_1AsyncModel.html#aa6dd1dc85e025471537e06202668001d">containsAnyStatementAsync</a> (const <a class="el" href="classSoprano_1_1Node.html">Node</a> &amp;subject, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &amp;predicate, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &amp;object, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &amp;context=<a class="el" href="classSoprano_1_1Node.html">Node</a>()) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1Util_1_1AsyncResult.html">AsyncResult</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Util_1_1AsyncModel.html#a3bc993c5dd1a1b3c01d09307726bc69e">createBlankNodeAsync</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1StatementIterator.html">StatementIterator</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Util_1_1AsyncModel.html#ae27f005490b80a79c551642d7b1f5b08">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="classSoprano_1_1NodeIterator.html">NodeIterator</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Util_1_1AsyncModel.html#a96e75d77663bc37a498ea7ce597ba59f">listContexts</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1QueryResultIterator.html">QueryResultIterator</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Util_1_1AsyncModel.html#a9e3c08788cf03ceffe1eb0b8cd315790">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>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Filter model that allows to perform operations asyncroneously. </p>
<p><a class="el" href="classSoprano_1_1Util_1_1AsyncModel.html" title="Filter model that allows to perform operations asyncroneously.">AsyncModel</a> has two modes: <a class="el" href="classSoprano_1_1Util_1_1AsyncModel.html#a603c50087a4c48d816f6ed28ef946216a1749db71b5398f5f9c9b918d71a5001f">AsyncModel::SingleThreaded</a> and <a class="el" href="classSoprano_1_1Util_1_1AsyncModel.html#a603c50087a4c48d816f6ed28ef946216a9880e88a8ca617fdd724e396b59e999b">AsyncModel::MultiThreaded</a>. The main purpose of the <a class="el" href="classSoprano_1_1Util_1_1AsyncModel.html#a603c50087a4c48d816f6ed28ef946216a1749db71b5398f5f9c9b918d71a5001f">AsyncModel::SingleThreaded</a> mode is to protect 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> against deadlocks in a single threaded situation.</p>
<p><a class="el" href="classSoprano_1_1Util_1_1AsyncModel.html#a603c50087a4c48d816f6ed28ef946216a9880e88a8ca617fdd724e396b59e999b">AsyncModel::MultiThreaded</a> mode provides real asyncroneous execution of <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> commands.</p>
<p>Usage: </p>
<div class="fragment"><pre class="fragment"> AsyncResult* result = model-&gt;listStatementsAsync( s );
 <a class="codeRef" href="qobject.html#connect">connect</a>( result, SIGNAL(resultReady(AsyncResult*)),
          <span class="keyword">this</span>, SLOT(slotResultReady(AsyncResult*)) );
</pre></div><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="since"><dt><b>Since:</b></dt><dd>2.1 </dd></dl>

<p>Definition at line <a class="el" href="asyncmodel_8h_source.html#l00063">63</a> of file <a class="el" href="asyncmodel_8h_source.html">asyncmodel.h</a>.</p>
<hr/><h2>Member Enumeration Documentation</h2>
<a class="anchor" id="a603c50087a4c48d816f6ed28ef946216"></a><!-- doxytag: member="Soprano::Util::AsyncModel::AsyncModelMode" ref="a603c50087a4c48d816f6ed28ef946216" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classSoprano_1_1Util_1_1AsyncModel.html#a603c50087a4c48d816f6ed28ef946216">Soprano::Util::AsyncModel::AsyncModelMode</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The mode of the model, single vs. multi threaded execution.</p>
<dl class="since"><dt><b>Since:</b></dt><dd>2.2 </dd></dl>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="a603c50087a4c48d816f6ed28ef946216a1749db71b5398f5f9c9b918d71a5001f"></a><!-- doxytag: member="SingleThreaded" ref="a603c50087a4c48d816f6ed28ef946216a1749db71b5398f5f9c9b918d71a5001f" args="" -->SingleThreaded</em>&nbsp;</td><td>
<p>The model uses a single thread. Thus, commands are executed in the same thread but no two commands will ever block each other. This is the default mode for historical reasons. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a603c50087a4c48d816f6ed28ef946216a9880e88a8ca617fdd724e396b59e999b"></a><!-- doxytag: member="MultiThreaded" ref="a603c50087a4c48d816f6ed28ef946216a9880e88a8ca617fdd724e396b59e999b" args="" -->MultiThreaded</em>&nbsp;</td><td>
<p>The model uses multiple threads through QThreadPool. Commands are executed in parallel. Be aware that the parent model needs to be thread-safe. </p>
</td></tr>
</table>
</dd>
</dl>

<p>Definition at line <a class="el" href="asyncmodel_8h_source.html#l00085">85</a> of file <a class="el" href="asyncmodel_8h_source.html">asyncmodel.h</a>.</p>

</div>
</div>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a6637f92a3724d3439d573f4ac2a6654d"></a><!-- doxytag: member="Soprano::Util::AsyncModel::AsyncModel" ref="a6637f92a3724d3439d573f4ac2a6654d" args="(Model *parent=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Soprano::Util::AsyncModel::AsyncModel </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classSoprano_1_1Model.html">Model</a> *&nbsp;</td>
          <td class="paramname"> <em>parent</em> = <code>0</code></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Create a new <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 border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>parent</em>&nbsp;</td><td>The parent model to forward the operations to. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ac547f64d2a589b2e057c929010627651"></a><!-- doxytag: member="Soprano::Util::AsyncModel::~AsyncModel" ref="ac547f64d2a589b2e057c929010627651" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Soprano::Util::AsyncModel::~AsyncModel </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Destructor. </p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a632891da44486a4fea01d58a49862d18"></a><!-- doxytag: member="Soprano::Util::AsyncModel::setMode" ref="a632891da44486a4fea01d58a49862d18" args="(AsyncModelMode mode)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Soprano::Util::AsyncModel::setMode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classSoprano_1_1Util_1_1AsyncModel.html#a603c50087a4c48d816f6ed28ef946216">AsyncModelMode</a>&nbsp;</td>
          <td class="paramname"> <em>mode</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Set the mode to be used. For historical reasons the default mode is SingleThreaded.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classSoprano_1_1Util_1_1AsyncModel.html#a1794dd436111f9810bd29430ff2c521e">mode</a></dd></dl>
<dl class="since"><dt><b>Since:</b></dt><dd>2.2 </dd></dl>

</div>
</div>
<a class="anchor" id="a1794dd436111f9810bd29430ff2c521e"></a><!-- doxytag: member="Soprano::Util::AsyncModel::mode" ref="a1794dd436111f9810bd29430ff2c521e" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classSoprano_1_1Util_1_1AsyncModel.html#a603c50087a4c48d816f6ed28ef946216">AsyncModelMode</a> Soprano::Util::AsyncModel::mode </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The mode used by this model.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classSoprano_1_1Util_1_1AsyncModel.html#a632891da44486a4fea01d58a49862d18">setMode</a></dd></dl>
<dl class="since"><dt><b>Since:</b></dt><dd>2.2 </dd></dl>

</div>
</div>
<a class="anchor" id="a1aac1a6a78dd0c5ddc082d8a4801b1e5"></a><!-- doxytag: member="Soprano::Util::AsyncModel::addStatementAsync" ref="a1aac1a6a78dd0c5ddc082d8a4801b1e5" args="(const Statement &amp;statement)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classSoprano_1_1Util_1_1AsyncResult.html">AsyncResult</a>* Soprano::Util::AsyncModel::addStatementAsync </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1Statement.html">Statement</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>statement</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Asyncroneously 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 border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>statement</em>&nbsp;</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>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classSoprano_1_1FilterModel.html#a1994117b73985823f12cb76192fdcda1">addStatement</a></dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>an <a class="el" href="classSoprano_1_1Util_1_1AsyncResult.html" title="A delayed result as returned by AsyncModel.">AsyncResult</a> with result type <a class="el" href="namespaceSoprano_1_1Error.html#aef1bd25c5b6705951735e0fb5c5ff525">Error::ErrorCode</a> object which will signal when the result is ready. </dd></dl>

</div>
</div>
<a class="anchor" id="ac33332d2e0bef687708758a44a97acb6"></a><!-- doxytag: member="Soprano::Util::AsyncModel::addStatementAsync" ref="ac33332d2e0bef687708758a44a97acb6" args="(const Node &amp;subject, const Node &amp;predicate, const Node &amp;object, const Node &amp;context=Node())" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classSoprano_1_1Util_1_1AsyncResult.html">AsyncResult</a>* Soprano::Util::AsyncModel::addStatementAsync </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1Node.html">Node</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>subject</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1Node.html">Node</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>predicate</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1Node.html">Node</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>object</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1Node.html">Node</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>context</em> = <code><a class="el" href="classSoprano_1_1Node.html">Node</a>()</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>
<dl class="since"><dt><b>Since:</b></dt><dd>2.2 </dd></dl>

</div>
</div>
<a class="anchor" id="a23c76b9624367bbaaf9a5e5f44bb9b9f"></a><!-- doxytag: member="Soprano::Util::AsyncModel::addStatementsAsync" ref="a23c76b9624367bbaaf9a5e5f44bb9b9f" args="(const QList&lt; Statement &gt; &amp;statements)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classSoprano_1_1Util_1_1AsyncResult.html">AsyncResult</a>* Soprano::Util::AsyncModel::addStatementsAsync </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qlist.html">QList</a>&lt; <a class="el" href="classSoprano_1_1Statement.html">Statement</a> &gt; &amp;&nbsp;</td>
          <td class="paramname"> <em>statements</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>
<dl class="since"><dt><b>Since:</b></dt><dd>2.2 </dd></dl>

</div>
</div>
<a class="anchor" id="a71a2940aee2bc73de98b059cc544973c"></a><!-- doxytag: member="Soprano::Util::AsyncModel::removeStatementAsync" ref="a71a2940aee2bc73de98b059cc544973c" args="(const Statement &amp;statement)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classSoprano_1_1Util_1_1AsyncResult.html">AsyncResult</a>* Soprano::Util::AsyncModel::removeStatementAsync </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1Statement.html">Statement</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>statement</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Asyncroneously remove one statement. For removing statements with wildward matching see <a class="el" href="classSoprano_1_1Util_1_1AsyncModel.html#af61e47b15cbe0cf44a7558554ea705b4">removeAllStatementsAsync()</a>.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>statement</em>&nbsp;</td><td>The statement that should be removed. This has to be a valid statement.</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classSoprano_1_1FilterModel.html#af6bf72a84ffb0fe92c2470eeb0eb8b4e">removeStatement</a></dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>an <a class="el" href="classSoprano_1_1Util_1_1AsyncResult.html" title="A delayed result as returned by AsyncModel.">AsyncResult</a> with result type <a class="el" href="namespaceSoprano_1_1Error.html#aef1bd25c5b6705951735e0fb5c5ff525">Error::ErrorCode</a> object which will signal when the result is ready. </dd></dl>

</div>
</div>
<a class="anchor" id="afe69b3a2944e24444cacabc120489014"></a><!-- doxytag: member="Soprano::Util::AsyncModel::removeStatementAsync" ref="afe69b3a2944e24444cacabc120489014" args="(const Node &amp;subject, const Node &amp;predicate, const Node &amp;object, const Node &amp;context=Node())" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classSoprano_1_1Util_1_1AsyncResult.html">AsyncResult</a>* Soprano::Util::AsyncModel::removeStatementAsync </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1Node.html">Node</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>subject</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1Node.html">Node</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>predicate</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1Node.html">Node</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>object</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1Node.html">Node</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>context</em> = <code><a class="el" href="classSoprano_1_1Node.html">Node</a>()</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>
<dl class="since"><dt><b>Since:</b></dt><dd>2.2 </dd></dl>

</div>
</div>
<a class="anchor" id="a46a08109044ddf5ce941dbb92dc3ec1f"></a><!-- doxytag: member="Soprano::Util::AsyncModel::removeStatementsAsync" ref="a46a08109044ddf5ce941dbb92dc3ec1f" args="(const QList&lt; Statement &gt; &amp;statements)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classSoprano_1_1Util_1_1AsyncResult.html">AsyncResult</a>* Soprano::Util::AsyncModel::removeStatementsAsync </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qlist.html">QList</a>&lt; <a class="el" href="classSoprano_1_1Statement.html">Statement</a> &gt; &amp;&nbsp;</td>
          <td class="paramname"> <em>statements</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>
<dl class="since"><dt><b>Since:</b></dt><dd>2.2 </dd></dl>

</div>
</div>
<a class="anchor" id="af61e47b15cbe0cf44a7558554ea705b4"></a><!-- doxytag: member="Soprano::Util::AsyncModel::removeAllStatementsAsync" ref="af61e47b15cbe0cf44a7558554ea705b4" args="(const Statement &amp;statement)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classSoprano_1_1Util_1_1AsyncResult.html">AsyncResult</a>* Soprano::Util::AsyncModel::removeAllStatementsAsync </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1Statement.html">Statement</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>statement</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Asyncroneously remove all statements that match the partial statement. For removing one specific statement see <a class="el" href="classSoprano_1_1FilterModel.html#af6bf72a84ffb0fe92c2470eeb0eb8b4e">removeStatement()</a>.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>statement</em>&nbsp;</td><td>A possible partially defined statement that serves as a filter for all statements that should be removed.</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classSoprano_1_1FilterModel.html#ab5bf9cad97a0426e6dcf9fba65228911">removeAllStatements</a></dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>an <a class="el" href="classSoprano_1_1Util_1_1AsyncResult.html" title="A delayed result as returned by AsyncModel.">AsyncResult</a> with result type <a class="el" href="namespaceSoprano_1_1Error.html#aef1bd25c5b6705951735e0fb5c5ff525">Error::ErrorCode</a> object which will signal when the result is ready. </dd></dl>

</div>
</div>
<a class="anchor" id="a038f679887648edb6cda049ef6fb7755"></a><!-- doxytag: member="Soprano::Util::AsyncModel::removeAllStatementsAsync" ref="a038f679887648edb6cda049ef6fb7755" args="(const Node &amp;subject, const Node &amp;predicate, const Node &amp;object, const Node &amp;context=Node())" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classSoprano_1_1Util_1_1AsyncResult.html">AsyncResult</a>* Soprano::Util::AsyncModel::removeAllStatementsAsync </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1Node.html">Node</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>subject</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1Node.html">Node</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>predicate</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1Node.html">Node</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>object</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1Node.html">Node</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>context</em> = <code><a class="el" href="classSoprano_1_1Node.html">Node</a>()</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>
<dl class="since"><dt><b>Since:</b></dt><dd>2.2 </dd></dl>

</div>
</div>
<a class="anchor" id="acb8213fa5426ba5f40c1dbd42e78c930"></a><!-- doxytag: member="Soprano::Util::AsyncModel::isEmptyAsync" ref="acb8213fa5426ba5f40c1dbd42e78c930" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classSoprano_1_1Util_1_1AsyncResult.html">AsyncResult</a>* Soprano::Util::AsyncModel::isEmptyAsync </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Asyncroneously check if 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> does contain any <a class="el" href="classSoprano_1_1Statement.html" title="A Statement instance represents one RDF quadruple.">Statement</a>.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classSoprano_1_1FilterModel.html#a2fb3ae451e7715319b57d061fd9352ae">isEmpty</a></dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>an <a class="el" href="classSoprano_1_1Util_1_1AsyncResult.html" title="A delayed result as returned by AsyncModel.">AsyncResult</a> with result type bool object which will signal when the result is ready. </dd></dl>

</div>
</div>
<a class="anchor" id="a0c66dfd60fcd969226378c461e0f5400"></a><!-- doxytag: member="Soprano::Util::AsyncModel::statementCountAsync" ref="a0c66dfd60fcd969226378c461e0f5400" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classSoprano_1_1Util_1_1AsyncResult.html">AsyncResult</a>* Soprano::Util::AsyncModel::statementCountAsync </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Asyncroneously determine 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="see"><dt><b>See also:</b></dt><dd><a class="el" href="classSoprano_1_1FilterModel.html#ac6330779ed50c13a84e90fd053e7b24b">statementCount</a></dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>an <a class="el" href="classSoprano_1_1Util_1_1AsyncResult.html" title="A delayed result as returned by AsyncModel.">AsyncResult</a> with result type int object which will signal when the result is ready. </dd></dl>

</div>
</div>
<a class="anchor" id="a69d783d226fcbeedec9a6d150eea086c"></a><!-- doxytag: member="Soprano::Util::AsyncModel::listStatementsAsync" ref="a69d783d226fcbeedec9a6d150eea086c" args="(const Statement &amp;statement) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classSoprano_1_1Util_1_1AsyncResult.html">AsyncResult</a>* Soprano::Util::AsyncModel::listStatementsAsync </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1Statement.html">Statement</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>statement</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Asyncroneously 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 border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>statement</em>&nbsp;</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="see"><dt><b>See also:</b></dt><dd><a class="el" href="classSoprano_1_1Util_1_1AsyncModel.html#ae27f005490b80a79c551642d7b1f5b08">listStatements</a></dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>an <a class="el" href="classSoprano_1_1Util_1_1AsyncResult.html" title="A delayed result as returned by AsyncModel.">AsyncResult</a> with result type <a class="el" href="classSoprano_1_1StatementIterator.html" title="An iterator that provides a stream of Statements.">StatementIterator</a> object which will signal when the result is ready. </dd></dl>

</div>
</div>
<a class="anchor" id="a0d8f3de24090754f0e7aaf3da9ac7d6b"></a><!-- doxytag: member="Soprano::Util::AsyncModel::listStatementsAsync" ref="a0d8f3de24090754f0e7aaf3da9ac7d6b" args="(const Node &amp;subject, const Node &amp;predicate, const Node &amp;object, const Node &amp;context=Node()) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classSoprano_1_1Util_1_1AsyncResult.html">AsyncResult</a>* Soprano::Util::AsyncModel::listStatementsAsync </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1Node.html">Node</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>subject</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1Node.html">Node</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>predicate</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1Node.html">Node</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>object</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1Node.html">Node</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>context</em> = <code><a class="el" href="classSoprano_1_1Node.html">Node</a>()</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>
<dl class="since"><dt><b>Since:</b></dt><dd>2.2 </dd></dl>

</div>
</div>
<a class="anchor" id="ab4743442fb164c0487b8cb67209b582b"></a><!-- doxytag: member="Soprano::Util::AsyncModel::listStatementsAsync" ref="ab4743442fb164c0487b8cb67209b582b" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classSoprano_1_1Util_1_1AsyncResult.html">AsyncResult</a>* Soprano::Util::AsyncModel::listStatementsAsync </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Lists all statements in 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> asyncroneously.</p>
<dl class="since"><dt><b>Since:</b></dt><dd>2.2 </dd></dl>

</div>
</div>
<a class="anchor" id="aaf2c1a27a73292aab5809d694ca52e69"></a><!-- doxytag: member="Soprano::Util::AsyncModel::listContextsAsync" ref="aaf2c1a27a73292aab5809d694ca52e69" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classSoprano_1_1Util_1_1AsyncResult.html">AsyncResult</a>* Soprano::Util::AsyncModel::listContextsAsync </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Asyncroneously list all contexts in the model, i.e. all named graphs.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classSoprano_1_1Util_1_1AsyncModel.html#a96e75d77663bc37a498ea7ce597ba59f">listContexts</a></dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>an <a class="el" href="classSoprano_1_1Util_1_1AsyncResult.html" title="A delayed result as returned by AsyncModel.">AsyncResult</a> with result type <a class="el" href="classSoprano_1_1NodeIterator.html" title="An iterator that provides a stream of Nodes.">NodeIterator</a> object which will signal when the result is ready. </dd></dl>

</div>
</div>
<a class="anchor" id="a56d028786d0d66fc7a22a2d4cf7049b7"></a><!-- doxytag: member="Soprano::Util::AsyncModel::executeQueryAsync" ref="a56d028786d0d66fc7a22a2d4cf7049b7" 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_1Util_1_1AsyncResult.html">AsyncResult</a>* Soprano::Util::AsyncModel::executeQueryAsync </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&nbsp;</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>&nbsp;</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;&nbsp;</td>
          <td class="paramname"> <em>userQueryLanguage</em> = <code><a class="elRef" href="qstring.html">QString</a>()</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Asyncroneously 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 border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>query</em>&nbsp;</td><td>The query to evaluate. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>language</em>&nbsp;</td><td>The query language used to encode <code>query</code>. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>userQueryLanguage</em>&nbsp;</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="see"><dt><b>See also:</b></dt><dd><a class="el" href="classSoprano_1_1Util_1_1AsyncModel.html#a9e3c08788cf03ceffe1eb0b8cd315790">executeQuery</a></dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>an <a class="el" href="classSoprano_1_1Util_1_1AsyncResult.html" title="A delayed result as returned by AsyncModel.">AsyncResult</a> with result type <a class="el" href="classSoprano_1_1QueryResultIterator.html" title="An iterator for query results.">QueryResultIterator</a> object which will signal when the result is ready. </dd></dl>

</div>
</div>
<a class="anchor" id="aacfa36003a8da3eccee8c99dcf63c782"></a><!-- doxytag: member="Soprano::Util::AsyncModel::containsStatementAsync" ref="aacfa36003a8da3eccee8c99dcf63c782" args="(const Statement &amp;statement) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classSoprano_1_1Util_1_1AsyncResult.html">AsyncResult</a>* Soprano::Util::AsyncModel::containsStatementAsync </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1Statement.html">Statement</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>statement</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p><a class="el" href="classSoprano_1_1Util_1_1AsyncResult.html" title="A delayed result as returned by AsyncModel.">AsyncResult</a> check if the model contains a statements.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>statement</em>&nbsp;</td><td>The statement in question. This has to be a valid statement, i.e. subject, predicate, and object need to be defined. If the context node is empty the default graph is searched.</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classSoprano_1_1FilterModel.html#af846accbea848739b50cd4e0f3f832e1">containsStatement</a></dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>an <a class="el" href="classSoprano_1_1Util_1_1AsyncResult.html" title="A delayed result as returned by AsyncModel.">AsyncResult</a> with result type bool object which will signal when the result is ready. </dd></dl>

</div>
</div>
<a class="anchor" id="af6db1cdfd543b76721ef0e1d19e747e8"></a><!-- doxytag: member="Soprano::Util::AsyncModel::containsStatementAsync" ref="af6db1cdfd543b76721ef0e1d19e747e8" args="(const Node &amp;subject, const Node &amp;predicate, const Node &amp;object, const Node &amp;context=Node()) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classSoprano_1_1Util_1_1AsyncResult.html">AsyncResult</a>* Soprano::Util::AsyncModel::containsStatementAsync </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1Node.html">Node</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>subject</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1Node.html">Node</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>predicate</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1Node.html">Node</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>object</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1Node.html">Node</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>context</em> = <code><a class="el" href="classSoprano_1_1Node.html">Node</a>()</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>
<dl class="since"><dt><b>Since:</b></dt><dd>2.2 </dd></dl>

</div>
</div>
<a class="anchor" id="aba6207efff0e3e80100147410dd36737"></a><!-- doxytag: member="Soprano::Util::AsyncModel::containsAnyStatementAsync" ref="aba6207efff0e3e80100147410dd36737" args="(const Statement &amp;statement) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classSoprano_1_1Util_1_1AsyncResult.html">AsyncResult</a>* Soprano::Util::AsyncModel::containsAnyStatementAsync </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1Statement.html">Statement</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>statement</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Asyncroneously check if the model contains certain statements.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>statement</em>&nbsp;</td><td>A partially defined statement that serves as a pattern.</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classSoprano_1_1FilterModel.html#ae3dc83bde44d1de4055eaea93f392c0a">containsAnyStatement</a></dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>an <a class="el" href="classSoprano_1_1Util_1_1AsyncResult.html" title="A delayed result as returned by AsyncModel.">AsyncResult</a> with result type bool object which will signal when the result is ready. </dd></dl>

</div>
</div>
<a class="anchor" id="aa6dd1dc85e025471537e06202668001d"></a><!-- doxytag: member="Soprano::Util::AsyncModel::containsAnyStatementAsync" ref="aa6dd1dc85e025471537e06202668001d" args="(const Node &amp;subject, const Node &amp;predicate, const Node &amp;object, const Node &amp;context=Node()) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classSoprano_1_1Util_1_1AsyncResult.html">AsyncResult</a>* Soprano::Util::AsyncModel::containsAnyStatementAsync </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1Node.html">Node</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>subject</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1Node.html">Node</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>predicate</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1Node.html">Node</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>object</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1Node.html">Node</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>context</em> = <code><a class="el" href="classSoprano_1_1Node.html">Node</a>()</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>
<dl class="since"><dt><b>Since:</b></dt><dd>2.2 </dd></dl>

</div>
</div>
<a class="anchor" id="a3bc993c5dd1a1b3c01d09307726bc69e"></a><!-- doxytag: member="Soprano::Util::AsyncModel::createBlankNodeAsync" ref="a3bc993c5dd1a1b3c01d09307726bc69e" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classSoprano_1_1Util_1_1AsyncResult.html">AsyncResult</a>* Soprano::Util::AsyncModel::createBlankNodeAsync </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Asyncroneously create a new blank node with a unique identifier.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classSoprano_1_1FilterModel.html#a099c3c2c012fab75cc4e6b8544704a6b">createBlankNode</a></dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>an <a class="el" href="classSoprano_1_1Util_1_1AsyncResult.html" title="A delayed result as returned by AsyncModel.">AsyncResult</a> with result type <a class="el" href="classSoprano_1_1Node.html" title="A Node represents one RDF resource.">Node</a> object which will signal when the result is ready. </dd></dl>

</div>
</div>
<a class="anchor" id="ae27f005490b80a79c551642d7b1f5b08"></a><!-- doxytag: member="Soprano::Util::AsyncModel::listStatements" ref="ae27f005490b80a79c551642d7b1f5b08" 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::Util::AsyncModel::listStatements </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1Statement.html">Statement</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>partial</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The call is directly delivered to the parent model. However, the iterator is counted so that interweaving asyncroneous and non-asyncroneous calls does not result in unwanted behaviour.</p>
<dl class="since"><dt><b>Since:</b></dt><dd>2.4 </dd></dl>

<p>Reimplemented from <a class="el" href="classSoprano_1_1FilterModel.html#af046c0ab7f49cd2aa0d1783d0dee8903">Soprano::FilterModel</a>.</p>

</div>
</div>
<a class="anchor" id="a96e75d77663bc37a498ea7ce597ba59f"></a><!-- doxytag: member="Soprano::Util::AsyncModel::listContexts" ref="a96e75d77663bc37a498ea7ce597ba59f" 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::Util::AsyncModel::listContexts </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The call is directly delivered to the parent model. However, the iterator is counted so that interweaving asyncroneous and non-asyncroneous calls does not result in unwanted behaviour.</p>
<dl class="since"><dt><b>Since:</b></dt><dd>2.4 </dd></dl>

<p>Reimplemented from <a class="el" href="classSoprano_1_1FilterModel.html#a79edd3a6f31bffc706c28641d04952eb">Soprano::FilterModel</a>.</p>

</div>
</div>
<a class="anchor" id="a9e3c08788cf03ceffe1eb0b8cd315790"></a><!-- doxytag: member="Soprano::Util::AsyncModel::executeQuery" ref="a9e3c08788cf03ceffe1eb0b8cd315790" 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::Util::AsyncModel::executeQuery </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&nbsp;</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>&nbsp;</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;&nbsp;</td>
          <td class="paramname"> <em>userQueryLanguage</em> = <code><a class="elRef" href="qstring.html">QString</a>()</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The call is directly delivered to the parent model. However, the iterator is counted so that interweaving asyncroneous and non-asyncroneous calls does not result in unwanted behaviour.</p>
<dl class="since"><dt><b>Since:</b></dt><dd>2.4 </dd></dl>

<p>Reimplemented from <a class="el" href="classSoprano_1_1FilterModel.html#a8d5189d772d22a7dd878bdc31cd01c18">Soprano::FilterModel</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>/builddir/build/BUILD/soprano-2.5.2/soprano/util/<a class="el" href="asyncmodel_8h_source.html">asyncmodel.h</a></li>
</ul>
</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>