<!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::SparqlModel 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 Page</span></a></li> <li><a href="pages.html"><span>Related 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 List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class 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_1Client.html">Client</a> </li> <li><a class="el" href="classSoprano_1_1Client_1_1SparqlModel.html">Soprano::Client::SparqlModel</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::SparqlModel Class Reference</h1> </div> </div> <div class="contents"> <!-- doxytag: class="Soprano::Client::SparqlModel" --><!-- doxytag: inherits="Soprano::Model" --> <p>Remote client <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> for Http SPARQL end points. <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="sparqlmodel_8h_source.html">Soprano/Client/SparqlModel</a>></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::SparqlModel:</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_1SparqlModel__inherit__graph.png" border="0" usemap="#Soprano_1_1Client_1_1SparqlModel_inherit__map" alt="Inheritance graph"/></div> <map name="Soprano_1_1Client_1_1SparqlModel_inherit__map" id="Soprano_1_1Client_1_1SparqlModel_inherit__map"> <area shape="rect" id="node2" 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="node4" href="qobject.html" title="QObject" alt="" coords="5,5,75,35"/><area shape="rect" id="node6" href="classSoprano_1_1Error_1_1ErrorCache.html" title="Core class of Soprano'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_1SparqlModel-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"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Client_1_1SparqlModel.html#a69c687881fc504f416e538b38c8a6870">SparqlModel</a> (const <a class="elRef" href="qstring.html">QString</a> &host=<a class="elRef" href="qstring.html">QString</a>(), quint16 port=80, const <a class="elRef" href="qstring.html">QString</a> &user=<a class="elRef" href="qstring.html">QString</a>(), const <a class="elRef" href="qstring.html">QString</a> &password=<a class="elRef" href="qstring.html">QString</a>())</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Client_1_1SparqlModel.html#ab648a6d4eedc9070d743c78d68592be3">~SparqlModel</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1Node.html">Node</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Client_1_1SparqlModel.html#ab6e26b6d7e0fb9fa0c610740feda0abc">createBlankNode</a> ()</td></tr> <tr><td colspan="2"><div class="groupHeader"></div></td></tr> <tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrpd41d8cd98f00b204e9800998ecf8427e"></a> </p> </div></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Client_1_1SparqlModel.html#a3afadfa77910c04f203ecad8d20639f8">setHost</a> (const <a class="elRef" href="qstring.html">QString</a> &host, quint16 port=80)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Client_1_1SparqlModel.html#a448a428b8ccd03930cb3b96ecab498e5">setUser</a> (const <a class="elRef" href="qstring.html">QString</a> &user, const <a class="elRef" href="qstring.html">QString</a> &password=<a class="elRef" href="qstring.html">QString</a>())</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Client_1_1SparqlModel.html#af8bdc408e34dbc8f52a36ca2ecc9aec5">setPath</a> (const <a class="elRef" href="qstring.html">QString</a> &path)</td></tr> <tr><td colspan="2"><div class="groupHeader"></div></td></tr> <tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrpd41d8cd98f00b204e9800998ecf8427e"></a> </p> </div></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceSoprano_1_1Error.html#aef1bd25c5b6705951735e0fb5c5ff525">Error::ErrorCode</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Client_1_1SparqlModel.html#a0aee80d7529fd240b1ae997b0386b54b">addStatement</a> (const <a class="el" href="classSoprano_1_1Statement.html">Statement</a> &statement)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceSoprano_1_1Error.html#aef1bd25c5b6705951735e0fb5c5ff525">Error::ErrorCode</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Client_1_1SparqlModel.html#a91f50584be2d2945042394917da7cbaa">removeStatement</a> (const <a class="el" href="classSoprano_1_1Statement.html">Statement</a> &statement)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceSoprano_1_1Error.html#aef1bd25c5b6705951735e0fb5c5ff525">Error::ErrorCode</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Client_1_1SparqlModel.html#a32c8e6a0c2bbcfa4a73704af4c77790b">removeAllStatements</a> (const <a class="el" href="classSoprano_1_1Statement.html">Statement</a> &statement)</td></tr> <tr><td colspan="2"><div class="groupHeader"></div></td></tr> <tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrpd41d8cd98f00b204e9800998ecf8427e"></a> </p> </div></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1StatementIterator.html">Soprano::StatementIterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Client_1_1SparqlModel.html#a4a46b04ecae1342da0a3f396eb77ddc2">listStatements</a> (const <a class="el" href="classSoprano_1_1Statement.html">Statement</a> &partial) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1Util_1_1AsyncResult.html">Soprano::Util::AsyncResult</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Client_1_1SparqlModel.html#aad38937cca2bc2cdae8ecd7447894f5f">listStatementsAsync</a> (const <a class="el" href="classSoprano_1_1Statement.html">Statement</a> &statement) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1QueryResultIterator.html">Soprano::QueryResultIterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Client_1_1SparqlModel.html#a268a3d6905e146b83ef6a37217a7db1b">executeQuery</a> (const <a class="elRef" href="qstring.html">QString</a> &query, <a class="el" href="namespaceSoprano_1_1Query.html#ab568869993a9d6c452c8e5a34d5ac26c">Query::QueryLanguage</a> language=Query::QueryLanguageSparql, const <a class="elRef" href="qstring.html">QString</a> &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">Soprano::Util::AsyncResult</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Client_1_1SparqlModel.html#a0502d8a6d5fdf7cb04ac074e8a7bd985">executeQueryAsync</a> (const <a class="elRef" href="qstring.html">QString</a> &query, <a class="el" href="namespaceSoprano_1_1Query.html#ab568869993a9d6c452c8e5a34d5ac26c">Query::QueryLanguage</a> language=Query::QueryLanguageSparql, const <a class="elRef" href="qstring.html">QString</a> &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_1NodeIterator.html">NodeIterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Client_1_1SparqlModel.html#aaab1422b7f979623e98c42cfaaefb027">listContexts</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1Util_1_1AsyncResult.html">Soprano::Util::AsyncResult</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Client_1_1SparqlModel.html#a329ff68dba5a823738fa011fc66e6a0d">listContextsAsync</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Client_1_1SparqlModel.html#abb981fcc9618b7d90045bde758bb4df0">containsStatement</a> (const <a class="el" href="classSoprano_1_1Statement.html">Statement</a> &statement) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Client_1_1SparqlModel.html#a6bbe0b6b15640d312d48b3f9edf750d6">containsAnyStatement</a> (const <a class="el" href="classSoprano_1_1Statement.html">Statement</a> &statement) const </td></tr> <tr><td colspan="2"><div class="groupHeader"></div></td></tr> <tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrpd41d8cd98f00b204e9800998ecf8427e"></a> </p> </div></td></tr> <tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Client_1_1SparqlModel.html#a301f9a0189184b4259e995b9664b4e9c">statementCount</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Client_1_1SparqlModel.html#ae99176bb9e03f5646111a226aa3210c9">isEmpty</a> () const </td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>Remote client <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> for Http SPARQL end points. </p> <p>The <a class="el" href="classSoprano_1_1Client_1_1SparqlModel.html" title="Remote client Model for Http SPARQL end points.">SparqlModel</a> provides a very simple way of accessing remote <a href="http://www.w3.org/TR/rdf-sparql-protocol/">SPARQL (SPARQL Protocol and RDF Query Language)</a> web services via Http.</p> <p>Its usage is simple: set hostname and optionally user credentials, then call the well known <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> methods like <a class="el" href="classSoprano_1_1Model.html#a5157ca3996dea1e7a46947d41e530c51">Model::executeQuery</a> to work with the remote repository.</p> <dl class="author"><dt><b>Author:</b></dt><dd>Rajeev J Sebastian <<a href="mailto:rajeev.sebastian@gmail.com">rajeev.sebastian@gmail.com</a>><br/> Sebastian Trueg <<a href="mailto:trueg@kde.org">trueg@kde.org</a>></dd></dl> <dl class="since"><dt><b>Since:</b></dt><dd>2.2 </dd></dl> <p>Definition at line <a class="el" href="sparqlmodel_8h_source.html#l00050">50</a> of file <a class="el" href="sparqlmodel_8h_source.html">sparqlmodel.h</a>.</p> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a69c687881fc504f416e538b38c8a6870"></a><!-- doxytag: member="Soprano::Client::SparqlModel::SparqlModel" ref="a69c687881fc504f416e538b38c8a6870" args="(const QString &host=QString(), quint16 port=80, const QString &user=QString(), const QString &password=QString())" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Soprano::Client::SparqlModel::SparqlModel </td> <td>(</td> <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> & </td> <td class="paramname"> <em>host</em> = <code><a class="elRef" href="qstring.html">QString</a>()</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">quint16 </td> <td class="paramname"> <em>port</em> = <code>80</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> & </td> <td class="paramname"> <em>user</em> = <code><a class="elRef" href="qstring.html">QString</a>()</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> & </td> <td class="paramname"> <em>password</em> = <code><a class="elRef" href="qstring.html">QString</a>()</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Create a new <a class="el" href="classSoprano_1_1Client_1_1SparqlModel.html" title="Remote client Model for Http SPARQL end points.">SparqlModel</a> instance.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>host</em> </td><td>The host to connect to (example: dbpedia.org) </td></tr> <tr><td valign="top"></td><td valign="top"><em>port</em> </td><td>The port on which to connect the host (most Http services run on port 80. </td></tr> <tr><td valign="top"></td><td valign="top"><em>user</em> </td><td>The userName in case the host does not allow anonymous access. </td></tr> <tr><td valign="top"></td><td valign="top"><em>password</em> </td><td>The password for <code>user</code> in case the host does not allow anonymous access. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="ab648a6d4eedc9070d743c78d68592be3"></a><!-- doxytag: member="Soprano::Client::SparqlModel::~SparqlModel" ref="ab648a6d4eedc9070d743c78d68592be3" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Soprano::Client::SparqlModel::~SparqlModel </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Destructor. </p> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a3afadfa77910c04f203ecad8d20639f8"></a><!-- doxytag: member="Soprano::Client::SparqlModel::setHost" ref="a3afadfa77910c04f203ecad8d20639f8" args="(const QString &host, quint16 port=80)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Soprano::Client::SparqlModel::setHost </td> <td>(</td> <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> & </td> <td class="paramname"> <em>host</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">quint16 </td> <td class="paramname"> <em>port</em> = <code>80</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Set the host to connect to.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>host</em> </td><td>The host to connect to (example: dbpedia.org) </td></tr> <tr><td valign="top"></td><td valign="top"><em>port</em> </td><td>The port on which to connect the host (most Http services run on port 80. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a448a428b8ccd03930cb3b96ecab498e5"></a><!-- doxytag: member="Soprano::Client::SparqlModel::setUser" ref="a448a428b8ccd03930cb3b96ecab498e5" args="(const QString &user, const QString &password=QString())" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Soprano::Client::SparqlModel::setUser </td> <td>(</td> <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> & </td> <td class="paramname"> <em>user</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> & </td> <td class="paramname"> <em>password</em> = <code><a class="elRef" href="qstring.html">QString</a>()</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Set the user name and password to access the host.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>user</em> </td><td>The userName in case the host does not allow anonymous access. </td></tr> <tr><td valign="top"></td><td valign="top"><em>password</em> </td><td>The password for <code>user</code> in case the host </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="af8bdc408e34dbc8f52a36ca2ecc9aec5"></a><!-- doxytag: member="Soprano::Client::SparqlModel::setPath" ref="af8bdc408e34dbc8f52a36ca2ecc9aec5" args="(const QString &path)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Soprano::Client::SparqlModel::setPath </td> <td>(</td> <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> & </td> <td class="paramname"> <em>path</em></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Set the path to where the SPARQL endpoint is exposed on the server.</p> <p>For historical reasons the default path is set to "/sparql".</p> <dl class="since"><dt><b>Since:</b></dt><dd>2.2.1 </dd></dl> </div> </div> <a class="anchor" id="a0aee80d7529fd240b1ae997b0386b54b"></a><!-- doxytag: member="Soprano::Client::SparqlModel::addStatement" ref="a0aee80d7529fd240b1ae997b0386b54b" args="(const Statement &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::SparqlModel::addStatement </td> <td>(</td> <td class="paramtype">const <a class="el" href="classSoprano_1_1Statement.html">Statement</a> & </td> <td class="paramname"> <em>statement</em></td> <td> ) </td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Add a statement to the remote model.</p> <p>This method is realized using the <a href="http://jena.hpl.hp.com/~afs/SPARQL-Update.html">SPARQL/Update</a> language extension. Thus, it will only work on services supporting this extension.</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> </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="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. Check <a class="el" href="classSoprano_1_1Error_1_1ErrorCache.html#a3251b8052cdf932d59a523ca215d21c9">Error::ErrorCache::lastError</a> for detailed error information. </dd></dl> <p>Implements <a class="el" href="classSoprano_1_1Model.html#aed5b923235288fbac997850cca8f6053">Soprano::Model</a>.</p> </div> </div> <a class="anchor" id="a91f50584be2d2945042394917da7cbaa"></a><!-- doxytag: member="Soprano::Client::SparqlModel::removeStatement" ref="a91f50584be2d2945042394917da7cbaa" args="(const Statement &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::SparqlModel::removeStatement </td> <td>(</td> <td class="paramtype">const <a class="el" href="classSoprano_1_1Statement.html">Statement</a> & </td> <td class="paramname"> <em>statement</em></td> <td> ) </td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Removed a statement from the remote model.</p> <p>This method is realized using the <a href="http://jena.hpl.hp.com/~afs/SPARQL-Update.html">SPARQL/Update</a> language extension. Thus, it will only work on services supporting this extension.</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> </td><td>The <a class="el" href="classSoprano_1_1Statement.html" title="A Statement instance represents one RDF quadruple.">Statement</a> to remove.</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. Check <a class="el" href="classSoprano_1_1Error_1_1ErrorCache.html#a3251b8052cdf932d59a523ca215d21c9">Error::ErrorCache::lastError</a> for detailed error information. </dd></dl> <p>Implements <a class="el" href="classSoprano_1_1Model.html#ad5952940a5e589bd70fc794d434e0f63">Soprano::Model</a>.</p> </div> </div> <a class="anchor" id="a32c8e6a0c2bbcfa4a73704af4c77790b"></a><!-- doxytag: member="Soprano::Client::SparqlModel::removeAllStatements" ref="a32c8e6a0c2bbcfa4a73704af4c77790b" args="(const Statement &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::SparqlModel::removeAllStatements </td> <td>(</td> <td class="paramtype">const <a class="el" href="classSoprano_1_1Statement.html">Statement</a> & </td> <td class="paramname"> <em>statement</em></td> <td> ) </td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Remove all statements that match the partial statement. For removing one specific statement see <a class="el" href="classSoprano_1_1Client_1_1SparqlModel.html#a91f50584be2d2945042394917da7cbaa">removeStatement()</a>.</p> <p>This method is realized using the <a href="http://jena.hpl.hp.com/~afs/SPARQL-Update.html">SPARQL/Update</a> language extension. Thus, it will only work on services supporting this extension.</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> </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="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. Check <a class="el" href="classSoprano_1_1Error_1_1ErrorCache.html#a3251b8052cdf932d59a523ca215d21c9">Error::ErrorCache::lastError</a> for detailed error information. </dd></dl> <p>Implements <a class="el" href="classSoprano_1_1Model.html#af4e328680aa3470852a6ce27253324cb">Soprano::Model</a>.</p> </div> </div> <a class="anchor" id="a4a46b04ecae1342da0a3f396eb77ddc2"></a><!-- doxytag: member="Soprano::Client::SparqlModel::listStatements" ref="a4a46b04ecae1342da0a3f396eb77ddc2" args="(const Statement &partial) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classSoprano_1_1StatementIterator.html">Soprano::StatementIterator</a> Soprano::Client::SparqlModel::listStatements </td> <td>(</td> <td class="paramtype">const <a class="el" href="classSoprano_1_1Statement.html">Statement</a> & </td> <td class="paramname"> <em>partial</em></td> <td> ) </td> <td> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Implements <a class="el" href="classSoprano_1_1Model.html#a7f50dc6483e0bed7830877182c7906ac">Soprano::Model</a>.</p> </div> </div> <a class="anchor" id="aad38937cca2bc2cdae8ecd7447894f5f"></a><!-- doxytag: member="Soprano::Client::SparqlModel::listStatementsAsync" ref="aad38937cca2bc2cdae8ecd7447894f5f" args="(const Statement &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">Soprano::Util::AsyncResult</a>* Soprano::Client::SparqlModel::listStatementsAsync </td> <td>(</td> <td class="paramtype">const <a class="el" href="classSoprano_1_1Statement.html">Statement</a> & </td> <td class="paramname"> <em>statement</em></td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Asyncroneously list 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> </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 AsyncResult 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> <dl class="since"><dt><b>Since:</b></dt><dd>2.4 </dd></dl> </div> </div> <a class="anchor" id="a268a3d6905e146b83ef6a37217a7db1b"></a><!-- doxytag: member="Soprano::Client::SparqlModel::executeQuery" ref="a268a3d6905e146b83ef6a37217a7db1b" args="(const QString &query, Query::QueryLanguage language=Query::QueryLanguageSparql, const QString &userQueryLanguage=QString()) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classSoprano_1_1QueryResultIterator.html">Soprano::QueryResultIterator</a> Soprano::Client::SparqlModel::executeQuery </td> <td>(</td> <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> & </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> </td> <td class="paramname"> <em>language</em> = <code>Query::QueryLanguageSparql</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> & </td> <td class="paramname"> <em>userQueryLanguage</em> = <code><a class="elRef" href="qstring.html">QString</a>()</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Execute a query on the SPARQL endpoint.</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> </td><td>The query to evaluate. </td></tr> <tr><td valign="top"></td><td valign="top"><em>language</em> </td><td>The query language used to encode <code>query</code>. Be aware that the <a class="el" href="classSoprano_1_1Client_1_1SparqlModel.html" title="Remote client Model for Http SPARQL end points.">SparqlModel</a> does only support one query language: <a class="el" href="namespaceSoprano_1_1Query.html#ab568869993a9d6c452c8e5a34d5ac26ca619ecf57d183bffe04ebf81089031334">Query::QueryLanguageSparql</a>. </td></tr> <tr><td valign="top"></td><td valign="top"><em>userQueryLanguage</em> </td><td>unused since <code>language</code> needs to be set to <a class="el" href="namespaceSoprano_1_1Query.html#ab568869993a9d6c452c8e5a34d5ac26ca619ecf57d183bffe04ebf81089031334">Query::QueryLanguageSparql</a>.</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="a0502d8a6d5fdf7cb04ac074e8a7bd985"></a><!-- doxytag: member="Soprano::Client::SparqlModel::executeQueryAsync" ref="a0502d8a6d5fdf7cb04ac074e8a7bd985" args="(const QString &query, Query::QueryLanguage language=Query::QueryLanguageSparql, const QString &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">Soprano::Util::AsyncResult</a>* Soprano::Client::SparqlModel::executeQueryAsync </td> <td>(</td> <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> & </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> </td> <td class="paramname"> <em>language</em> = <code>Query::QueryLanguageSparql</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> & </td> <td class="paramname"> <em>userQueryLanguage</em> = <code><a class="elRef" href="qstring.html">QString</a>()</code></td><td> </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> <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> </td><td>The query to evaluate. </td></tr> <tr><td valign="top"></td><td valign="top"><em>language</em> </td><td>The query language used to encode <code>query</code>. </td></tr> <tr><td valign="top"></td><td valign="top"><em>userQueryLanguage</em> </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_1Client_1_1SparqlModel.html#a268a3d6905e146b83ef6a37217a7db1b">executeQuery</a></dd></dl> <dl class="return"><dt><b>Returns:</b></dt><dd>an AsyncResult 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="aaab1422b7f979623e98c42cfaaefb027"></a><!-- doxytag: member="Soprano::Client::SparqlModel::listContexts" ref="aaab1422b7f979623e98c42cfaaefb027" 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::SparqlModel::listContexts </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Implements <a class="el" href="classSoprano_1_1Model.html#ad530cc7d159fdb0d05f66902b9594020">Soprano::Model</a>.</p> </div> </div> <a class="anchor" id="a329ff68dba5a823738fa011fc66e6a0d"></a><!-- doxytag: member="Soprano::Client::SparqlModel::listContextsAsync" ref="a329ff68dba5a823738fa011fc66e6a0d" 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">Soprano::Util::AsyncResult</a>* Soprano::Client::SparqlModel::listContextsAsync </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Asyncroneously list all contexts.</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> </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 AsyncResult 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> <dl class="since"><dt><b>Since:</b></dt><dd>2.4 </dd></dl> </div> </div> <a class="anchor" id="abb981fcc9618b7d90045bde758bb4df0"></a><!-- doxytag: member="Soprano::Client::SparqlModel::containsStatement" ref="abb981fcc9618b7d90045bde758bb4df0" args="(const Statement &statement) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool Soprano::Client::SparqlModel::containsStatement </td> <td>(</td> <td class="paramtype">const <a class="el" href="classSoprano_1_1Statement.html">Statement</a> & </td> <td class="paramname"> <em>statement</em></td> <td> ) </td> <td> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Implements <a class="el" href="classSoprano_1_1Model.html#a0194c85c892ab3661d1932fca610310e">Soprano::Model</a>.</p> </div> </div> <a class="anchor" id="a6bbe0b6b15640d312d48b3f9edf750d6"></a><!-- doxytag: member="Soprano::Client::SparqlModel::containsAnyStatement" ref="a6bbe0b6b15640d312d48b3f9edf750d6" args="(const Statement &statement) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool Soprano::Client::SparqlModel::containsAnyStatement </td> <td>(</td> <td class="paramtype">const <a class="el" href="classSoprano_1_1Statement.html">Statement</a> & </td> <td class="paramname"> <em>statement</em></td> <td> ) </td> <td> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Implements <a class="el" href="classSoprano_1_1Model.html#ab27c0414afb36a63e7bac1948293789f">Soprano::Model</a>.</p> </div> </div> <a class="anchor" id="a301f9a0189184b4259e995b9664b4e9c"></a><!-- doxytag: member="Soprano::Client::SparqlModel::statementCount" ref="a301f9a0189184b4259e995b9664b4e9c" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int Soprano::Client::SparqlModel::statementCount </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Retrieving the number of statements is not supported by the <a class="el" href="classSoprano_1_1Client_1_1SparqlModel.html" title="Remote client Model for Http SPARQL end points.">SparqlModel</a>.</p> <dl class="return"><dt><b>Returns:</b></dt><dd>-1 </dd></dl> <p>Implements <a class="el" href="classSoprano_1_1Model.html#a831c3fd0e5dea37566fa19bd6068add8">Soprano::Model</a>.</p> </div> </div> <a class="anchor" id="ae99176bb9e03f5646111a226aa3210c9"></a><!-- doxytag: member="Soprano::Client::SparqlModel::isEmpty" ref="ae99176bb9e03f5646111a226aa3210c9" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool Soprano::Client::SparqlModel::isEmpty </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Not supported by the <a class="el" href="classSoprano_1_1Client_1_1SparqlModel.html" title="Remote client Model for Http SPARQL end points.">SparqlModel</a>.</p> <dl class="return"><dt><b>Returns:</b></dt><dd>false </dd></dl> <p>Implements <a class="el" href="classSoprano_1_1Model.html#a905f4ca3e95862e73c8aa56471b20a25">Soprano::Model</a>.</p> </div> </div> <a class="anchor" id="ab6e26b6d7e0fb9fa0c610740feda0abc"></a><!-- doxytag: member="Soprano::Client::SparqlModel::createBlankNode" ref="ab6e26b6d7e0fb9fa0c610740feda0abc" 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::SparqlModel::createBlankNode </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Creation of blank nodes is not supported by the <a class="el" href="classSoprano_1_1Client_1_1SparqlModel.html" title="Remote client Model for Http SPARQL end points.">SparqlModel</a>.</p> <dl class="return"><dt><b>Returns:</b></dt><dd>an invalid <a class="el" href="classSoprano_1_1Node.html" title="A Node represents one RDF resource.">Node</a> </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.5.2/client/sparql/<a class="el" href="sparqlmodel_8h_source.html">sparqlmodel.h</a></li> </ul> </div> <hr class="footer"/><address class="footer"><small>Generated on Thu Oct 21 2010 for Soprano by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address> </body> </html>