<!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::NRLModel 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="classSoprano_1_1NRLModel.html">Soprano::NRLModel</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::NRLModel Class Reference</h1> </div> </div> <div class="contents"> <!-- doxytag: class="Soprano::NRLModel" --><!-- doxytag: inherits="Soprano::FilterModel" --> <p><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> filter that makes working with NRL data simpler. <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="nrlmodel_8h_source.html">Soprano/NRLModel</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::NRLModel:</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_1NRLModel__inherit__graph.png" border="0" usemap="#Soprano_1_1NRLModel_inherit__map" alt="Inheritance graph"/></div> <map name="Soprano_1_1NRLModel_inherit__map" id="Soprano_1_1NRLModel_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'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_1NRLModel-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_1NRLModel.html#a724f3a42704bc42493697916a7105bf3">NRLModel</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1NRLModel.html#ab9ba20ae76c2e1e7ed76fbad286a94de">NRLModel</a> (<a class="el" href="classSoprano_1_1Model.html">Model</a> *<a class="elRef" href="qobject.html#parent">parent</a>)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1NRLModel.html#a7c3a78dc39d3fdd08d998882e8edd926">~NRLModel</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1NRLModel.html#a3337e50ae0d696d2eb53778ac4e190d8">setIgnoreContext</a> (bool b)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1NRLModel.html#a855345c4085ba2e07f46d81ea3374432">ignoreContext</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1NRLModel.html#adfc28a0b15ba46d69d1e048ebad1a170">setEnableQueryPrefixExpansion</a> (bool enable)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1NRLModel.html#aeb999b189b47e4f33dbee59e7f5be254">queryPrefixExpansionEnabled</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qhash.html">QHash</a>< <a class="elRef" href="qstring.html">QString</a>, <a class="elRef" href="qurl.html">QUrl</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1NRLModel.html#a4bf5f8d3e6b1c58e472b8384f191aa26">queryPrefixes</a> () const </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_1NRLModel.html#a04142e1466ae1463da6a21e776a0a762">addNrlStatement</a> (const <a class="el" href="classSoprano_1_1Statement.html">Statement</a> &s)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qurl.html">QUrl</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1NRLModel.html#aabc5310b5762809f7e6f715fc482fa97">createGraph</a> (const <a class="elRef" href="qurl.html">QUrl</a> &type, <a class="elRef" href="qurl.html">QUrl</a> *metadataGraph=0)</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_1NRLModel.html#ab79f8234403c19fe773ff2f3c83ea16d">removeGraph</a> (const <a class="elRef" href="qurl.html">QUrl</a> &graph)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classSoprano_1_1QueryResultIterator.html">QueryResultIterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1NRLModel.html#a38af0c9f0bd70b6497e428ce25317b3a">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, 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">virtual <a class="el" href="namespaceSoprano_1_1Error.html#aef1bd25c5b6705951735e0fb5c5ff525">Error::ErrorCode</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1NRLModel.html#ae515da2102283fc752162597d33216c2">removeAllStatements</a> (const <a class="el" href="classSoprano_1_1Statement.html">Statement</a> &statement)</td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p><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> filter that makes working with NRL data simpler. </p> <p>The <a class="el" href="classSoprano_1_1NRLModel.html" title="Model filter that makes working with NRL data simpler.">NRLModel</a> enforces NRL cardinality rules. That means predicates with a cardinality of maximum 1 are always udpated while statements that define predicates with a maximum cardinality bigger than 1 are rejected once the maximum is reached (future versions might remove an earlier defined statement based on the time the old statements were added).</p> <p>Thus, at the moment <a class="el" href="classSoprano_1_1NRLModel.html" title="Model filter that makes working with NRL data simpler.">NRLModel</a> is mostly usable for handling properties with a maximum cardinality of 1.</p> <p><a class="el" href="classSoprano_1_1NRLModel.html" title="Model filter that makes working with NRL data simpler.">NRLModel</a> also provides automatic query prefix expansion and named graph creation and removal with automatic metadata graph handling.</p> <p>THE API AND EVEN THE COMPLETE CLASS IS SUBJECT TO CHANGE!</p> <dl class="author"><dt><b>Author:</b></dt><dd>Sebastian Trueg <<a href="mailto:trueg@kde.org">trueg@kde.org</a>></dd></dl> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="namespaceSoprano_1_1Vocabulary_1_1NRL.html">Vocabulary::NRL</a> </dd></dl> <p>Definition at line <a class="el" href="nrlmodel_8h_source.html#l00050">50</a> of file <a class="el" href="nrlmodel_8h_source.html">nrlmodel.h</a>.</p> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a724f3a42704bc42493697916a7105bf3"></a><!-- doxytag: member="Soprano::NRLModel::NRLModel" ref="a724f3a42704bc42493697916a7105bf3" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Soprano::NRLModel::NRLModel </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="ab9ba20ae76c2e1e7ed76fbad286a94de"></a><!-- doxytag: member="Soprano::NRLModel::NRLModel" ref="ab9ba20ae76c2e1e7ed76fbad286a94de" args="(Model *parent)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Soprano::NRLModel::NRLModel </td> <td>(</td> <td class="paramtype"><a class="el" href="classSoprano_1_1Model.html">Model</a> * </td> <td class="paramname"> <em>parent</em></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a7c3a78dc39d3fdd08d998882e8edd926"></a><!-- doxytag: member="Soprano::NRLModel::~NRLModel" ref="a7c3a78dc39d3fdd08d998882e8edd926" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Soprano::NRLModel::~NRLModel </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a3337e50ae0d696d2eb53778ac4e190d8"></a><!-- doxytag: member="Soprano::NRLModel::setIgnoreContext" ref="a3337e50ae0d696d2eb53778ac4e190d8" args="(bool b)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Soprano::NRLModel::setIgnoreContext </td> <td>(</td> <td class="paramtype">bool </td> <td class="paramname"> <em>b</em></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>When enforcing the NRL cardinality rules <a class="el" href="classSoprano_1_1NRLModel.html" title="Model filter that makes working with NRL data simpler.">NRLModel</a> can either ignore the context of statements or treat different contexts as separate sets, each resetting the cardinality.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>b</em> </td><td>If <code>true</code> (the default) <a class="el" href="classSoprano_1_1NRLModel.html" title="Model filter that makes working with NRL data simpler.">NRLModel</a> does ignore the context when enforcing rules. If <code>false</code> the NRL rules can be violated across contexts.</td></tr> </table> </dd> </dl> <p>By default contexts are ignored.</p> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classSoprano_1_1NRLModel.html#a855345c4085ba2e07f46d81ea3374432">ignoreContext()</a> </dd></dl> </div> </div> <a class="anchor" id="a855345c4085ba2e07f46d81ea3374432"></a><!-- doxytag: member="Soprano::NRLModel::ignoreContext" ref="a855345c4085ba2e07f46d81ea3374432" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool Soprano::NRLModel::ignoreContext </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if contexts should be ignored when enforcing NRL rules.</dd></dl> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classSoprano_1_1NRLModel.html#a3337e50ae0d696d2eb53778ac4e190d8">setIgnoreContext()</a> </dd></dl> </div> </div> <a class="anchor" id="adfc28a0b15ba46d69d1e048ebad1a170"></a><!-- doxytag: member="Soprano::NRLModel::setEnableQueryPrefixExpansion" ref="adfc28a0b15ba46d69d1e048ebad1a170" args="(bool enable)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Soprano::NRLModel::setEnableQueryPrefixExpansion </td> <td>(</td> <td class="paramtype">bool </td> <td class="paramname"> <em>enable</em></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Enable automatic query prefix expansion based on nao:hasDefaultNamespaceAbbreviation. This will trigger reading all prefixes stored in the underlying model.</p> <p>By default query prefix expansion is disabled.</p> <dl class="since"><dt><b>Since:</b></dt><dd>2.4 </dd></dl> </div> </div> <a class="anchor" id="aeb999b189b47e4f33dbee59e7f5be254"></a><!-- doxytag: member="Soprano::NRLModel::queryPrefixExpansionEnabled" ref="aeb999b189b47e4f33dbee59e7f5be254" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool Soprano::NRLModel::queryPrefixExpansionEnabled </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if query prefix expansion is enabled.</dd></dl> <dl class="since"><dt><b>Since:</b></dt><dd>2.4 </dd></dl> </div> </div> <a class="anchor" id="a4bf5f8d3e6b1c58e472b8384f191aa26"></a><!-- doxytag: member="Soprano::NRLModel::queryPrefixes" ref="a4bf5f8d3e6b1c58e472b8384f191aa26" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="qhash.html">QHash</a><<a class="elRef" href="qstring.html">QString</a>, <a class="elRef" href="qurl.html">QUrl</a>> Soprano::NRLModel::queryPrefixes </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>The prefixes that have been read from the underlying model.</p> <dl class="return"><dt><b>Returns:</b></dt><dd>A list of prefixes mapping to the namespaces read from the model. This list is empty if queryPrefixExpansion is disabled.</dd></dl> <dl class="since"><dt><b>Since:</b></dt><dd>2.4 </dd></dl> </div> </div> <a class="anchor" id="a04142e1466ae1463da6a21e776a0a762"></a><!-- doxytag: member="Soprano::NRLModel::addNrlStatement" ref="a04142e1466ae1463da6a21e776a0a762" args="(const Statement &s)" --> <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::NRLModel::addNrlStatement </td> <td>(</td> <td class="paramtype">const <a class="el" href="classSoprano_1_1Statement.html">Statement</a> & </td> <td class="paramname"> <em>s</em></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Add a statement.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>s</em> </td><td>The statement containing the property to be set. If the predicate has NRL cardinality restrictions existing statements will be updated. Otherwise this method has the same effect as <a class="el" href="classSoprano_1_1Model.html#aed5b923235288fbac997850cca8f6053">Model::addStatement()</a>.</td></tr> </table> </dd> </dl> <p>Adding a statement that defines a predicate with a maximum cardinality bigger than 1 which has already been reached fails with an error.</p> <dl class="return"><dt><b>Returns:</b></dt><dd><a class="el" href="namespaceSoprano_1_1Error.html#aef1bd25c5b6705951735e0fb5c5ff525a69f521a4f40b463680d393963d5b4187">Error::ErrorNone</a> on success. </dd></dl> </div> </div> <a class="anchor" id="aabc5310b5762809f7e6f715fc482fa97"></a><!-- doxytag: member="Soprano::NRLModel::createGraph" ref="aabc5310b5762809f7e6f715fc482fa97" args="(const QUrl &type, QUrl *metadataGraph=0)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="qurl.html">QUrl</a> Soprano::NRLModel::createGraph </td> <td>(</td> <td class="paramtype">const <a class="elRef" href="qurl.html">QUrl</a> & </td> <td class="paramname"> <em>type</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="elRef" href="qurl.html">QUrl</a> * </td> <td class="paramname"> <em>metadataGraph</em> = <code>0</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 graph of type <code>type</code>.</p> <p>This will actually create two graphs: the requested one and its metadata graph which will already contain basic metadata like creation date.</p> <dl class="return"><dt><b>Returns:</b></dt><dd>The URI of the newly created graph.</dd></dl> <dl class="since"><dt><b>Since:</b></dt><dd>2.3 </dd></dl> </div> </div> <a class="anchor" id="ab79f8234403c19fe773ff2f3c83ea16d"></a><!-- doxytag: member="Soprano::NRLModel::removeGraph" ref="ab79f8234403c19fe773ff2f3c83ea16d" args="(const QUrl &graph)" --> <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::NRLModel::removeGraph </td> <td>(</td> <td class="paramtype">const <a class="elRef" href="qurl.html">QUrl</a> & </td> <td class="paramname"> <em>graph</em></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Remove a complete graph including its metadata graph</p> <p>This method can be seen as the counterpart to createGraph</p> <dl class="since"><dt><b>Since:</b></dt><dd>2.3 </dd></dl> </div> </div> <a class="anchor" id="a38af0c9f0bd70b6497e428ce25317b3a"></a><!-- doxytag: member="Soprano::NRLModel::executeQuery" ref="a38af0c9f0bd70b6497e428ce25317b3a" args="(const QString &query, Query::QueryLanguage language, const QString &userQueryLanguage=QString()) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="classSoprano_1_1QueryResultIterator.html">QueryResultIterator</a> Soprano::NRLModel::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>, </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>If queryPrefixExpansionEnabled is <code>true</code> query prefixes will be expanded before sending the query to the underlying model.</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> <a class="anchor" id="ae515da2102283fc752162597d33216c2"></a><!-- doxytag: member="Soprano::NRLModel::removeAllStatements" ref="ae515da2102283fc752162597d33216c2" args="(const Statement &statement)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="namespaceSoprano_1_1Error.html#aef1bd25c5b6705951735e0fb5c5ff525">Error::ErrorCode</a> Soprano::NRLModel::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>If the only node defined in <code>statement</code> is the context the graph including its metadata is removed.</p> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classSoprano_1_1NRLModel.html#ab79f8234403c19fe773ff2f3c83ea16d">removeGraph</a></dd></dl> <dl class="since"><dt><b>Since:</b></dt><dd>2.4 </dd></dl> <p>Reimplemented from <a class="el" href="classSoprano_1_1FilterModel.html#ab5bf9cad97a0426e6dcf9fba65228911">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/<a class="el" href="nrlmodel_8h_source.html">nrlmodel.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>