<!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::Graph 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_1Graph.html">Soprano::Graph</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::Graph Class Reference</h1> </div> </div> <div class="contents"> <!-- doxytag: class="Soprano::Graph" --> <p>A simple collection of statements. <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="graph_8h_source.html">Soprano/Graph</a>></code></p> <p><a href="classSoprano_1_1Graph-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_1Graph.html#af46df00286e72edba15f3631d1d21624">Graph</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Graph.html#a0aab6a6cae41504ffa7192304bac2585">Graph</a> (const <a class="el" href="classSoprano_1_1Graph.html">Graph</a> &)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Graph.html#a11ed802ded6ca9c9423b4672b9c454b3">Graph</a> (const <a class="elRef" href="qlist.html">QList</a>< <a class="el" href="classSoprano_1_1Statement.html">Statement</a> > &)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Graph.html#abd61e4df8a45c6596511011ec30c9347">~Graph</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_1Graph.html#a67ed36aac24d6a7d6aae54c7a95e226d">addStatement</a> (const <a class="el" href="classSoprano_1_1Statement.html">Statement</a> &statement)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Graph.html#af6a48519bb4dd163438029dde249ffeb">addStatement</a> (const <a class="el" href="classSoprano_1_1Node.html">Node</a> &subject, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &predicate, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &object, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &context=<a class="el" href="classSoprano_1_1Node.html">Node</a>())</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Graph.html#a478a295649e2269e9b9b68cbbbc0e133">addStatements</a> (const <a class="elRef" href="qlist.html">QList</a>< <a class="el" href="classSoprano_1_1Statement.html">Statement</a> > &statements)</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_1Graph.html#a9455b004bcec10062d942fdf4aa8cffe">removeStatement</a> (const <a class="el" href="classSoprano_1_1Statement.html">Statement</a> &statement)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Graph.html#a5b4568dc75d3d2c300ad20dd724a8749">removeStatement</a> (const <a class="el" href="classSoprano_1_1Node.html">Node</a> &subject, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &predicate, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &object, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &context=<a class="el" href="classSoprano_1_1Node.html">Node</a>())</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Graph.html#a45547aebffb77a8c75d514bfaf48fb8e">removeAllStatements</a> (const <a class="el" href="classSoprano_1_1Statement.html">Statement</a> &statement=<a class="el" href="classSoprano_1_1Statement.html">Statement</a>())</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Graph.html#a4753bdcfb31602c7fd705e4929f01073">removeAllStatements</a> (const <a class="el" href="classSoprano_1_1Node.html">Node</a> &subject, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &predicate, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &object, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &context=<a class="el" href="classSoprano_1_1Node.html">Node</a>())</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Graph.html#a4c1e8c0f5609fb5ff0e595f4d7d71661">removeStatements</a> (const <a class="elRef" href="qlist.html">QList</a>< <a class="el" href="classSoprano_1_1Statement.html">Statement</a> > &statements)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Graph.html#ac986d64ae9a05fc56ebb64d09467c544">removeContext</a> (const <a class="el" href="classSoprano_1_1Node.html">Node</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"><a class="el" href="classSoprano_1_1StatementIterator.html">StatementIterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Graph.html#aa1430334af2ceb9c2dd92909efe096bb">listStatements</a> (const <a class="el" href="classSoprano_1_1Statement.html">Statement</a> &partial=<a class="el" href="classSoprano_1_1Statement.html">Statement</a>()) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1StatementIterator.html">StatementIterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Graph.html#acd94d22a3a6ca0ebae32646f72e0b236">listStatements</a> (const <a class="el" href="classSoprano_1_1Node.html">Node</a> &subject, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &predicate, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &object, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &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_1StatementIterator.html">StatementIterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Graph.html#a627ce6c44215cc2cc8fe45f02b70451d">listStatementsInContext</a> (const <a class="el" href="classSoprano_1_1Node.html">Node</a> &context) 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_1Graph.html#a97e60f0483d6770f9c2a017211d0dff7">listContexts</a> () 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">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Graph.html#abb0e149ecaee0c1d9e40d83e24ca5460">containsAnyStatement</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_1Graph.html#a2b77fa11aa9e338163fd82a607bc0837">containsAnyStatement</a> (const <a class="el" href="classSoprano_1_1Node.html">Node</a> &subject, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &predicate, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &object, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &context=<a class="el" href="classSoprano_1_1Node.html">Node</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_1Graph.html#a50d1017a671c455eb6d2622a108770d8">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_1Graph.html#a5d4af08830f9b0364a7c9649e68648e9">containsStatement</a> (const <a class="el" href="classSoprano_1_1Node.html">Node</a> &subject, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &predicate, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &object, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &context=<a class="el" href="classSoprano_1_1Node.html">Node</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_1Graph.html#a8c2c1b9e31d49524d43cf77855491769">containsContext</a> (const <a class="el" href="classSoprano_1_1Node.html">Node</a> &context) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Graph.html#afaf29d55f6bab536bf683f156a7d0925">isEmpty</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Graph.html#a94795d57968235b71997c6f75f695ea9">statementCount</a> () 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"><a class="elRef" href="qlist.html">QList</a>< <a class="el" href="classSoprano_1_1Statement.html">Statement</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Graph.html#acb64add189f4fc093c74664f59342bcd">toList</a> () const </td></tr> <tr><td colspan="2"><div class="groupHeader">Operators</div></td></tr> <tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrpb3c5827f54218753bb2c3338236446c2"></a> </p> </div></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1Graph.html">Graph</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Graph.html#a17683006ea4fb21a701db178ed271e57">operator=</a> (const <a class="el" href="classSoprano_1_1Graph.html">Graph</a> &g)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1Graph.html">Graph</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Graph.html#a56a04e66dd60cac6d9209f72b9787073">operator=</a> (const <a class="elRef" href="qlist.html">QList</a>< <a class="el" href="classSoprano_1_1Statement.html">Statement</a> > &statements)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1Graph.html">Graph</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Graph.html#a1cb4010dbf16ac7d26aafc7d07d1d2e1">operator+</a> (const <a class="el" href="classSoprano_1_1Graph.html">Graph</a> &g) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1Graph.html">Graph</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Graph.html#ab987533716ba1042636a39d9c32c7145">operator+</a> (const <a class="el" href="classSoprano_1_1Statement.html">Statement</a> &s) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1Graph.html">Graph</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Graph.html#a464b870c0f9e34068e5fe5f0854c8650">operator+=</a> (const <a class="el" href="classSoprano_1_1Graph.html">Graph</a> &g)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1Graph.html">Graph</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Graph.html#a96aeda2bb6aa72c814aaaafd4b34d94c">operator+=</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="el" href="classSoprano_1_1Graph.html">Graph</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Graph.html#a048e4fd1f276766421386b12d81777e1">operator-</a> (const <a class="el" href="classSoprano_1_1Graph.html">Graph</a> &) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1Graph.html">Graph</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Graph.html#aa7bbcd2afc679a635a813e7ac7c52c91">operator-</a> (const <a class="el" href="classSoprano_1_1Statement.html">Statement</a> &s) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1Graph.html">Graph</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Graph.html#ae0b14bbea65acc9a4cca8fb025325962">operator-=</a> (const <a class="el" href="classSoprano_1_1Graph.html">Graph</a> &g)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1Graph.html">Graph</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Graph.html#a5c53d2907e993e3de6bd4183b1bebedd">operator-=</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="el" href="classSoprano_1_1Graph.html">Graph</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Graph.html#a0345cb0ab83ad008717b516e7b99b3d2">operator<<</a> (const <a class="el" href="classSoprano_1_1Graph.html">Graph</a> &)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1Graph.html">Graph</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Graph.html#a92c5162f3b92df873547b819818c7d96">operator<<</a> (const <a class="el" href="classSoprano_1_1Statement.html">Statement</a> &)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Graph.html#a30b3b66f7567007ef53e4e8d31180c94">operator==</a> (const <a class="el" href="classSoprano_1_1Graph.html">Graph</a> &g) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Graph.html#aa5f2c61fbc73cae981bd20b9358a02a5">operator!=</a> (const <a class="el" href="classSoprano_1_1Graph.html">Graph</a> &g) const </td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>A simple collection of statements. </p> <p>A <a class="el" href="classSoprano_1_1Graph.html" title="A simple collection of statements.">Graph</a> is a simple in-memory collection of Statements. It is supposed to be used where one needs a quick way to exchange or store a small number of statements. It is basically a fancy <a class="elRef" href="qset.html">QSet</a> of statements.</p> <p>In comparision to <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> it does not support queries, it does not use a specific backend plugin, and it is not optimized in any way.</p> <p>One graph does not represent one named graph, i.e. one context, it can contain Statements with different context nodes.</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="since"><dt><b>Since:</b></dt><dd>2.3 </dd></dl> <p>Definition at line <a class="el" href="graph_8h_source.html#l00056">56</a> of file <a class="el" href="graph_8h_source.html">graph.h</a>.</p> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="af46df00286e72edba15f3631d1d21624"></a><!-- doxytag: member="Soprano::Graph::Graph" ref="af46df00286e72edba15f3631d1d21624" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Soprano::Graph::Graph </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Create an empty graph. </p> </div> </div> <a class="anchor" id="a0aab6a6cae41504ffa7192304bac2585"></a><!-- doxytag: member="Soprano::Graph::Graph" ref="a0aab6a6cae41504ffa7192304bac2585" args="(const Graph &)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Soprano::Graph::Graph </td> <td>(</td> <td class="paramtype">const <a class="el" href="classSoprano_1_1Graph.html">Graph</a> & </td> <td class="paramname"></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Copy constructor. </p> </div> </div> <a class="anchor" id="a11ed802ded6ca9c9423b4672b9c454b3"></a><!-- doxytag: member="Soprano::Graph::Graph" ref="a11ed802ded6ca9c9423b4672b9c454b3" args="(const QList< Statement > &)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Soprano::Graph::Graph </td> <td>(</td> <td class="paramtype">const <a class="elRef" href="qlist.html">QList</a>< <a class="el" href="classSoprano_1_1Statement.html">Statement</a> > & </td> <td class="paramname"></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Create a graph from a list of statements.</p> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classSoprano_1_1Graph.html#a56a04e66dd60cac6d9209f72b9787073">operator=(const QList<Statement>&)</a> </dd></dl> </div> </div> <a class="anchor" id="abd61e4df8a45c6596511011ec30c9347"></a><!-- doxytag: member="Soprano::Graph::~Graph" ref="abd61e4df8a45c6596511011ec30c9347" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Soprano::Graph::~Graph </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="a67ed36aac24d6a7d6aae54c7a95e226d"></a><!-- doxytag: member="Soprano::Graph::addStatement" ref="a67ed36aac24d6a7d6aae54c7a95e226d" args="(const Statement &statement)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Soprano::Graph::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></td> </tr> </table> </div> <div class="memdoc"> <p>Add the <a class="el" href="classSoprano_1_1Statement.html" title="A Statement instance represents one RDF quadruple.">Statement</a> to the <a class="el" href="classSoprano_1_1Graph.html" title="A simple collection of statements.">Graph</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> </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> </div> </div> <a class="anchor" id="af6a48519bb4dd163438029dde249ffeb"></a><!-- doxytag: member="Soprano::Graph::addStatement" ref="af6a48519bb4dd163438029dde249ffeb" args="(const Node &subject, const Node &predicate, const Node &object, const Node &context=Node())" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Soprano::Graph::addStatement </td> <td>(</td> <td class="paramtype">const <a class="el" href="classSoprano_1_1Node.html">Node</a> & </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> & </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> & </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> & </td> <td class="paramname"> <em>context</em> = <code><a class="el" href="classSoprano_1_1Node.html">Node</a>()</code></td><td> </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> </div> </div> <a class="anchor" id="a478a295649e2269e9b9b68cbbbc0e133"></a><!-- doxytag: member="Soprano::Graph::addStatements" ref="a478a295649e2269e9b9b68cbbbc0e133" args="(const QList< Statement > &statements)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Soprano::Graph::addStatements </td> <td>(</td> <td class="paramtype">const <a class="elRef" href="qlist.html">QList</a>< <a class="el" href="classSoprano_1_1Statement.html">Statement</a> > & </td> <td class="paramname"> <em>statements</em></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> </div> </div> <a class="anchor" id="a9455b004bcec10062d942fdf4aa8cffe"></a><!-- doxytag: member="Soprano::Graph::removeStatement" ref="a9455b004bcec10062d942fdf4aa8cffe" args="(const Statement &statement)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Soprano::Graph::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></td> </tr> </table> </div> <div class="memdoc"> <p>Remove one statement. For removing statements with wildward matching see <a class="el" href="classSoprano_1_1Graph.html#a45547aebffb77a8c75d514bfaf48fb8e">removeAllStatements()</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> </td><td>The statement that should be removed. This has to be a valid statement.</td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd><a class="el" href="namespaceSoprano_1_1Error.html#aef1bd25c5b6705951735e0fb5c5ff525a69f521a4f40b463680d393963d5b4187">Error::ErrorNone</a> on success and an error code if statement was invalid or an error occured. </dd></dl> </div> </div> <a class="anchor" id="a5b4568dc75d3d2c300ad20dd724a8749"></a><!-- doxytag: member="Soprano::Graph::removeStatement" ref="a5b4568dc75d3d2c300ad20dd724a8749" args="(const Node &subject, const Node &predicate, const Node &object, const Node &context=Node())" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Soprano::Graph::removeStatement </td> <td>(</td> <td class="paramtype">const <a class="el" href="classSoprano_1_1Node.html">Node</a> & </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> & </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> & </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> & </td> <td class="paramname"> <em>context</em> = <code><a class="el" href="classSoprano_1_1Node.html">Node</a>()</code></td><td> </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> </div> </div> <a class="anchor" id="a45547aebffb77a8c75d514bfaf48fb8e"></a><!-- doxytag: member="Soprano::Graph::removeAllStatements" ref="a45547aebffb77a8c75d514bfaf48fb8e" args="(const Statement &statement=Statement())" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Soprano::Graph::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> = <code><a class="el" href="classSoprano_1_1Statement.html">Statement</a>()</code></td> <td> ) </td> <td></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_1Graph.html#a9455b004bcec10062d942fdf4aa8cffe">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> </td><td>A possible partially defined statement that serves as a filter for all statements that should be removed. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a4753bdcfb31602c7fd705e4929f01073"></a><!-- doxytag: member="Soprano::Graph::removeAllStatements" ref="a4753bdcfb31602c7fd705e4929f01073" args="(const Node &subject, const Node &predicate, const Node &object, const Node &context=Node())" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Soprano::Graph::removeAllStatements </td> <td>(</td> <td class="paramtype">const <a class="el" href="classSoprano_1_1Node.html">Node</a> & </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> & </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> & </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> & </td> <td class="paramname"> <em>context</em> = <code><a class="el" href="classSoprano_1_1Node.html">Node</a>()</code></td><td> </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><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>subject</em> </td><td>The subject node to match. Can be empty as a wildcard. </td></tr> <tr><td valign="top"></td><td valign="top"><em>predicate</em> </td><td>The predicate node to match. Can be empty as a wildcard. </td></tr> <tr><td valign="top"></td><td valign="top"><em>object</em> </td><td>The object node to match. Can be empty as a wildcard. </td></tr> <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>The context node to match. Can be empty as a wildcard. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a4c1e8c0f5609fb5ff0e595f4d7d71661"></a><!-- doxytag: member="Soprano::Graph::removeStatements" ref="a4c1e8c0f5609fb5ff0e595f4d7d71661" args="(const QList< Statement > &statements)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Soprano::Graph::removeStatements </td> <td>(</td> <td class="paramtype">const <a class="elRef" href="qlist.html">QList</a>< <a class="el" href="classSoprano_1_1Statement.html">Statement</a> > & </td> <td class="paramname"> <em>statements</em></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Convenience method which removes all statements in statements. </p> </div> </div> <a class="anchor" id="ac986d64ae9a05fc56ebb64d09467c544"></a><!-- doxytag: member="Soprano::Graph::removeContext" ref="ac986d64ae9a05fc56ebb64d09467c544" args="(const Node &)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Soprano::Graph::removeContext </td> <td>(</td> <td class="paramtype">const <a class="el" href="classSoprano_1_1Node.html">Node</a> & </td> <td class="paramname"></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Convenience method that removes all statements in the context. </p> </div> </div> <a class="anchor" id="aa1430334af2ceb9c2dd92909efe096bb"></a><!-- doxytag: member="Soprano::Graph::listStatements" ref="aa1430334af2ceb9c2dd92909efe096bb" args="(const Statement &partial=Statement()) 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::Graph::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> = <code><a class="el" href="classSoprano_1_1Statement.html">Statement</a>()</code></td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Return an iterator over <a class="el" href="classSoprano_1_1Graph.html" title="A simple collection of statements.">Graph</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>partial</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 iterator for all the matched Statements, on error an invalid iterator is returned. </dd></dl> </div> </div> <a class="anchor" id="acd94d22a3a6ca0ebae32646f72e0b236"></a><!-- doxytag: member="Soprano::Graph::listStatements" ref="acd94d22a3a6ca0ebae32646f72e0b236" args="(const Node &subject, const Node &predicate, const Node &object, const Node &context=Node()) 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::Graph::listStatements </td> <td>(</td> <td class="paramtype">const <a class="el" href="classSoprano_1_1Node.html">Node</a> & </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> & </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> & </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> & </td> <td class="paramname"> <em>context</em> = <code><a class="el" href="classSoprano_1_1Node.html">Node</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>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>subject</em> </td><td>The subject node to match. Can be empty as a wildcard. </td></tr> <tr><td valign="top"></td><td valign="top"><em>predicate</em> </td><td>The predicate node to match. Can be empty as a wildcard. </td></tr> <tr><td valign="top"></td><td valign="top"><em>object</em> </td><td>The object node to match. Can be empty as a wildcard. </td></tr> <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>The context node to match. Can be empty as a wildcard.</td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>An iterator for all the matched Statements, on error an invalid iterator is returned. </dd></dl> </div> </div> <a class="anchor" id="a627ce6c44215cc2cc8fe45f02b70451d"></a><!-- doxytag: member="Soprano::Graph::listStatementsInContext" ref="a627ce6c44215cc2cc8fe45f02b70451d" args="(const Node &context) 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::Graph::listStatementsInContext </td> <td>(</td> <td class="paramtype">const <a class="el" href="classSoprano_1_1Node.html">Node</a> & </td> <td class="paramname"> <em>context</em></td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Convenience method which lists all statements in context.</p> <dl class="return"><dt><b>Returns:</b></dt><dd>An iterator for all the matched Statements, on error an invalid iterator is returned. </dd></dl> </div> </div> <a class="anchor" id="a97e60f0483d6770f9c2a017211d0dff7"></a><!-- doxytag: member="Soprano::Graph::listContexts" ref="a97e60f0483d6770f9c2a017211d0dff7" 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::Graph::listContexts </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>List all contexts in the graph, i.e. all named graphs.</p> <dl class="return"><dt><b>Returns:</b></dt><dd>An iterator over context Nodes, on error an invalid iterator is returned. </dd></dl> </div> </div> <a class="anchor" id="abb0e149ecaee0c1d9e40d83e24ca5460"></a><!-- doxytag: member="Soprano::Graph::containsAnyStatement" ref="abb0e149ecaee0c1d9e40d83e24ca5460" args="(const Statement &statement) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool Soprano::Graph::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</td> </tr> </table> </div> <div class="memdoc"> <p>Check if the graph 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> </td><td>A partially defined statement that serves as a pattern.</td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>true if the <a class="el" href="classSoprano_1_1Graph.html" title="A simple collection of statements.">Graph</a> contains a <a class="el" href="classSoprano_1_1Statement.html" title="A Statement instance represents one RDF quadruple.">Statement</a> matching the given statement pattern. </dd></dl> </div> </div> <a class="anchor" id="a2b77fa11aa9e338163fd82a607bc0837"></a><!-- doxytag: member="Soprano::Graph::containsAnyStatement" ref="a2b77fa11aa9e338163fd82a607bc0837" args="(const Node &subject, const Node &predicate, const Node &object, const Node &context=Node()) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool Soprano::Graph::containsAnyStatement </td> <td>(</td> <td class="paramtype">const <a class="el" href="classSoprano_1_1Node.html">Node</a> & </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> & </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> & </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> & </td> <td class="paramname"> <em>context</em> = <code><a class="el" href="classSoprano_1_1Node.html">Node</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>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>subject</em> </td><td>The subject node to match. Can be empty as a wildcard. </td></tr> <tr><td valign="top"></td><td valign="top"><em>predicate</em> </td><td>The predicate node to match. Can be empty as a wildcard. </td></tr> <tr><td valign="top"></td><td valign="top"><em>object</em> </td><td>The object node to match. Can be empty as a wildcard. </td></tr> <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>The context node to match. Can be empty as a wildcard. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a50d1017a671c455eb6d2622a108770d8"></a><!-- doxytag: member="Soprano::Graph::containsStatement" ref="a50d1017a671c455eb6d2622a108770d8" args="(const Statement &statement) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool Soprano::Graph::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</td> </tr> </table> </div> <div class="memdoc"> <p>Check if the graph 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> </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="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the <a class="el" href="classSoprano_1_1Graph.html" title="A simple collection of statements.">Graph</a> contains the <a class="el" href="classSoprano_1_1Statement.html" title="A Statement instance represents one RDF quadruple.">Statement</a>, <code>false</code> otherwise or is statement is invalid. </dd></dl> </div> </div> <a class="anchor" id="a5d4af08830f9b0364a7c9649e68648e9"></a><!-- doxytag: member="Soprano::Graph::containsStatement" ref="a5d4af08830f9b0364a7c9649e68648e9" args="(const Node &subject, const Node &predicate, const Node &object, const Node &context=Node()) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool Soprano::Graph::containsStatement </td> <td>(</td> <td class="paramtype">const <a class="el" href="classSoprano_1_1Node.html">Node</a> & </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> & </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> & </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> & </td> <td class="paramname"> <em>context</em> = <code><a class="el" href="classSoprano_1_1Node.html">Node</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>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p> </div> </div> <a class="anchor" id="a8c2c1b9e31d49524d43cf77855491769"></a><!-- doxytag: member="Soprano::Graph::containsContext" ref="a8c2c1b9e31d49524d43cf77855491769" args="(const Node &context) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool Soprano::Graph::containsContext </td> <td>(</td> <td class="paramtype">const <a class="el" href="classSoprano_1_1Node.html">Node</a> & </td> <td class="paramname"> <em>context</em></td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Convenience method which is based on containsAnyStatement </p> </div> </div> <a class="anchor" id="afaf29d55f6bab536bf683f156a7d0925"></a><!-- doxytag: member="Soprano::Graph::isEmpty" ref="afaf29d55f6bab536bf683f156a7d0925" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool Soprano::Graph::isEmpty </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>true if the <a class="el" href="classSoprano_1_1Graph.html" title="A simple collection of statements.">Graph</a> doesn't contains any <a class="el" href="classSoprano_1_1Statement.html" title="A Statement instance represents one RDF quadruple.">Statement</a>. </dd></dl> </div> </div> <a class="anchor" id="a94795d57968235b71997c6f75f695ea9"></a><!-- doxytag: member="Soprano::Graph::statementCount" ref="a94795d57968235b71997c6f75f695ea9" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int Soprano::Graph::statementCount </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>The number of statements stored in this <a class="el" href="classSoprano_1_1Graph.html" title="A simple collection of statements.">Graph</a>. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>The size of the <a class="el" href="classSoprano_1_1Graph.html" title="A simple collection of statements.">Graph</a>. </dd></dl> </div> </div> <a class="anchor" id="acb64add189f4fc093c74664f59342bcd"></a><!-- doxytag: member="Soprano::Graph::toList" ref="acb64add189f4fc093c74664f59342bcd" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="qlist.html">QList</a><<a class="el" href="classSoprano_1_1Statement.html">Statement</a>> Soprano::Graph::toList </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Convert the <a class="el" href="classSoprano_1_1Graph.html" title="A simple collection of statements.">Graph</a> into a list </p> </div> </div> <a class="anchor" id="a17683006ea4fb21a701db178ed271e57"></a><!-- doxytag: member="Soprano::Graph::operator=" ref="a17683006ea4fb21a701db178ed271e57" args="(const Graph &g)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classSoprano_1_1Graph.html">Graph</a>& Soprano::Graph::operator= </td> <td>(</td> <td class="paramtype">const <a class="el" href="classSoprano_1_1Graph.html">Graph</a> & </td> <td class="paramname"> <em>g</em></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Assings <em>g</em> to this graph and returns a refernce to this graph. </p> </div> </div> <a class="anchor" id="a56a04e66dd60cac6d9209f72b9787073"></a><!-- doxytag: member="Soprano::Graph::operator=" ref="a56a04e66dd60cac6d9209f72b9787073" args="(const QList< Statement > &statements)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classSoprano_1_1Graph.html">Graph</a>& Soprano::Graph::operator= </td> <td>(</td> <td class="paramtype">const <a class="elRef" href="qlist.html">QList</a>< <a class="el" href="classSoprano_1_1Statement.html">Statement</a> > & </td> <td class="paramname"> <em>statements</em></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Assings <em>statements</em> to this graph and returns a refernce to this graph. </p> </div> </div> <a class="anchor" id="a1cb4010dbf16ac7d26aafc7d07d1d2e1"></a><!-- doxytag: member="Soprano::Graph::operator+" ref="a1cb4010dbf16ac7d26aafc7d07d1d2e1" args="(const Graph &g) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classSoprano_1_1Graph.html">Graph</a> Soprano::Graph::operator+ </td> <td>(</td> <td class="paramtype">const <a class="el" href="classSoprano_1_1Graph.html">Graph</a> & </td> <td class="paramname"> <em>g</em></td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Returns a graph containing all statements from this graph and from <em>g</em>. </p> </div> </div> <a class="anchor" id="ab987533716ba1042636a39d9c32c7145"></a><!-- doxytag: member="Soprano::Graph::operator+" ref="ab987533716ba1042636a39d9c32c7145" args="(const Statement &s) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classSoprano_1_1Graph.html">Graph</a> Soprano::Graph::operator+ </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> const</td> </tr> </table> </div> <div class="memdoc"> <p>Returns a graph containing all statements from this graph and from <em>s</em>. </p> </div> </div> <a class="anchor" id="a464b870c0f9e34068e5fe5f0854c8650"></a><!-- doxytag: member="Soprano::Graph::operator+=" ref="a464b870c0f9e34068e5fe5f0854c8650" args="(const Graph &g)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classSoprano_1_1Graph.html">Graph</a>& Soprano::Graph::operator+= </td> <td>(</td> <td class="paramtype">const <a class="el" href="classSoprano_1_1Graph.html">Graph</a> & </td> <td class="paramname"> <em>g</em></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Inserts the statements in graph <em>g</em> into this graph and returns a reference to this graph. </p> </div> </div> <a class="anchor" id="a96aeda2bb6aa72c814aaaafd4b34d94c"></a><!-- doxytag: member="Soprano::Graph::operator+=" ref="a96aeda2bb6aa72c814aaaafd4b34d94c" args="(const Statement &s)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classSoprano_1_1Graph.html">Graph</a>& Soprano::Graph::operator+= </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>Inserts the statement <em>s</em> into this graph and returns a reference to this graph. </p> </div> </div> <a class="anchor" id="a048e4fd1f276766421386b12d81777e1"></a><!-- doxytag: member="Soprano::Graph::operator-" ref="a048e4fd1f276766421386b12d81777e1" args="(const Graph &) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classSoprano_1_1Graph.html">Graph</a> Soprano::Graph::operator- </td> <td>(</td> <td class="paramtype">const <a class="el" href="classSoprano_1_1Graph.html">Graph</a> & </td> <td class="paramname"></td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Substracts all statements in <em>g</em> from this graph and returns a reference to this graph. </p> </div> </div> <a class="anchor" id="aa7bbcd2afc679a635a813e7ac7c52c91"></a><!-- doxytag: member="Soprano::Graph::operator-" ref="aa7bbcd2afc679a635a813e7ac7c52c91" args="(const Statement &s) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classSoprano_1_1Graph.html">Graph</a> Soprano::Graph::operator- </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> const</td> </tr> </table> </div> <div class="memdoc"> <p>Substracts <em>s</em> from this graph and returns a reference to this graph. </p> </div> </div> <a class="anchor" id="ae0b14bbea65acc9a4cca8fb025325962"></a><!-- doxytag: member="Soprano::Graph::operator-=" ref="ae0b14bbea65acc9a4cca8fb025325962" args="(const Graph &g)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classSoprano_1_1Graph.html">Graph</a>& Soprano::Graph::operator-= </td> <td>(</td> <td class="paramtype">const <a class="el" href="classSoprano_1_1Graph.html">Graph</a> & </td> <td class="paramname"> <em>g</em></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Removes the statements in graph <em>g</em> from this graph and returns a reference to this graph. </p> </div> </div> <a class="anchor" id="a5c53d2907e993e3de6bd4183b1bebedd"></a><!-- doxytag: member="Soprano::Graph::operator-=" ref="a5c53d2907e993e3de6bd4183b1bebedd" args="(const Statement &s)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classSoprano_1_1Graph.html">Graph</a>& Soprano::Graph::operator-= </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>Removes the statement <em>s</em> from this graph and returns a reference to this graph. </p> </div> </div> <a class="anchor" id="a0345cb0ab83ad008717b516e7b99b3d2"></a><!-- doxytag: member="Soprano::Graph::operator<<" ref="a0345cb0ab83ad008717b516e7b99b3d2" args="(const Graph &)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classSoprano_1_1Graph.html">Graph</a>& Soprano::Graph::operator<< </td> <td>(</td> <td class="paramtype">const <a class="el" href="classSoprano_1_1Graph.html">Graph</a> & </td> <td class="paramname"></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <dl class="see"><dt><b>See also:</b></dt><dd>operator+= </dd></dl> </div> </div> <a class="anchor" id="a92c5162f3b92df873547b819818c7d96"></a><!-- doxytag: member="Soprano::Graph::operator<<" ref="a92c5162f3b92df873547b819818c7d96" args="(const Statement &)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classSoprano_1_1Graph.html">Graph</a>& Soprano::Graph::operator<< </td> <td>(</td> <td class="paramtype">const <a class="el" href="classSoprano_1_1Statement.html">Statement</a> & </td> <td class="paramname"></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <dl class="see"><dt><b>See also:</b></dt><dd>operator+= </dd></dl> </div> </div> <a class="anchor" id="a30b3b66f7567007ef53e4e8d31180c94"></a><!-- doxytag: member="Soprano::Graph::operator==" ref="a30b3b66f7567007ef53e4e8d31180c94" args="(const Graph &g) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool Soprano::Graph::operator== </td> <td>(</td> <td class="paramtype">const <a class="el" href="classSoprano_1_1Graph.html">Graph</a> & </td> <td class="paramname"> <em>g</em></td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Comparision operator.</p> <dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if this graph and <em>g</em> contain the same statements, <code>false</code> otherwise. </dd></dl> </div> </div> <a class="anchor" id="aa5f2c61fbc73cae981bd20b9358a02a5"></a><!-- doxytag: member="Soprano::Graph::operator!=" ref="aa5f2c61fbc73cae981bd20b9358a02a5" args="(const Graph &g) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool Soprano::Graph::operator!= </td> <td>(</td> <td class="paramtype">const <a class="el" href="classSoprano_1_1Graph.html">Graph</a> & </td> <td class="paramname"> <em>g</em></td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Comparision operator.</p> <dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if this graph contains a statement <em>g</em> does not contain or the other way around, <code>false</code> otherwise. </dd></dl> </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="graph_8h_source.html">graph.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>