<!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"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.3.1"/> <title>Soprano: Soprano::Graph Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">Soprano  <span id="projectnumber">2.9.4</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.3.1 --> <div id="navrow1" 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 id="navrow2" 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="inherits.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="namespaceSoprano.html">Soprano</a></li><li class="navelem"><a class="el" href="classSoprano_1_1Graph.html">Graph</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="classSoprano_1_1Graph-members.html">List of all members</a> </div> <div class="headertitle"> <div class="title">Soprano::Graph Class Reference</div> </div> </div><!--header--> <div class="contents"> <p>A simple collection of statements. <a href="classSoprano_1_1Graph.html#details">More...</a></p> <p><code>#include <<a class="el" href="graph_8h_source.html">Soprano/Graph</a>></code></p> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr class="memitem:af46df00286e72edba15f3631d1d21624"><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 class="separator:af46df00286e72edba15f3631d1d21624"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a0aab6a6cae41504ffa7192304bac2585"><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 class="separator:a0aab6a6cae41504ffa7192304bac2585"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a11ed802ded6ca9c9423b4672b9c454b3"><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" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qlist.html">QList</a>< <a class="el" href="classSoprano_1_1Statement.html">Statement</a> > &)</td></tr> <tr class="separator:a11ed802ded6ca9c9423b4672b9c454b3"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:abd61e4df8a45c6596511011ec30c9347"><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 class="separator:abd61e4df8a45c6596511011ec30c9347"><td class="memSeparator" colspan="2"> </td></tr> <tr><td colspan="2"><div class="groupHeader"></div></td></tr> <tr class="memitem:a67ed36aac24d6a7d6aae54c7a95e226d"><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 class="separator:a67ed36aac24d6a7d6aae54c7a95e226d"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:af6a48519bb4dd163438029dde249ffeb"><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 class="separator:af6a48519bb4dd163438029dde249ffeb"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a478a295649e2269e9b9b68cbbbc0e133"><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" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qlist.html">QList</a>< <a class="el" href="classSoprano_1_1Statement.html">Statement</a> > &statements)</td></tr> <tr class="separator:a478a295649e2269e9b9b68cbbbc0e133"><td class="memSeparator" colspan="2"> </td></tr> <tr><td colspan="2"><div class="groupHeader"></div></td></tr> <tr class="memitem:a9455b004bcec10062d942fdf4aa8cffe"><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 class="separator:a9455b004bcec10062d942fdf4aa8cffe"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a5b4568dc75d3d2c300ad20dd724a8749"><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 class="separator:a5b4568dc75d3d2c300ad20dd724a8749"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a45547aebffb77a8c75d514bfaf48fb8e"><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 class="separator:a45547aebffb77a8c75d514bfaf48fb8e"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a4753bdcfb31602c7fd705e4929f01073"><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 class="separator:a4753bdcfb31602c7fd705e4929f01073"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a4c1e8c0f5609fb5ff0e595f4d7d71661"><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" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qlist.html">QList</a>< <a class="el" href="classSoprano_1_1Statement.html">Statement</a> > &statements)</td></tr> <tr class="separator:a4c1e8c0f5609fb5ff0e595f4d7d71661"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ac986d64ae9a05fc56ebb64d09467c544"><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 class="separator:ac986d64ae9a05fc56ebb64d09467c544"><td class="memSeparator" colspan="2"> </td></tr> <tr><td colspan="2"><div class="groupHeader"></div></td></tr> <tr class="memitem:aa1430334af2ceb9c2dd92909efe096bb"><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 class="separator:aa1430334af2ceb9c2dd92909efe096bb"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:acd94d22a3a6ca0ebae32646f72e0b236"><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 class="separator:acd94d22a3a6ca0ebae32646f72e0b236"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a627ce6c44215cc2cc8fe45f02b70451d"><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 class="separator:a627ce6c44215cc2cc8fe45f02b70451d"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a97e60f0483d6770f9c2a017211d0dff7"><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 class="separator:a97e60f0483d6770f9c2a017211d0dff7"><td class="memSeparator" colspan="2"> </td></tr> <tr><td colspan="2"><div class="groupHeader"></div></td></tr> <tr class="memitem:abb0e149ecaee0c1d9e40d83e24ca5460"><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 class="separator:abb0e149ecaee0c1d9e40d83e24ca5460"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a2b77fa11aa9e338163fd82a607bc0837"><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 class="separator:a2b77fa11aa9e338163fd82a607bc0837"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a50d1017a671c455eb6d2622a108770d8"><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 class="separator:a50d1017a671c455eb6d2622a108770d8"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a5d4af08830f9b0364a7c9649e68648e9"><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 class="separator:a5d4af08830f9b0364a7c9649e68648e9"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a8c2c1b9e31d49524d43cf77855491769"><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 class="separator:a8c2c1b9e31d49524d43cf77855491769"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:afaf29d55f6bab536bf683f156a7d0925"><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 class="separator:afaf29d55f6bab536bf683f156a7d0925"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a94795d57968235b71997c6f75f695ea9"><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 class="separator:a94795d57968235b71997c6f75f695ea9"><td class="memSeparator" colspan="2"> </td></tr> <tr><td colspan="2"><div class="groupHeader"></div></td></tr> <tr class="memitem:acb64add189f4fc093c74664f59342bcd"><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/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 class="separator:acb64add189f4fc093c74664f59342bcd"><td class="memSeparator" colspan="2"> </td></tr> <tr><td colspan="2"><div class="groupHeader"></div></td></tr> <tr class="memitem:afb944d051783e16a1d19806128b74ccf"><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qset.html">QSet</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#afb944d051783e16a1d19806128b74ccf">toSet</a> () const </td></tr> <tr class="separator:afb944d051783e16a1d19806128b74ccf"><td class="memSeparator" colspan="2"> </td></tr> <tr><td colspan="2"><div class="groupHeader">Operators</div></td></tr> <tr class="memitem:a17683006ea4fb21a701db178ed271e57"><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 class="separator:a17683006ea4fb21a701db178ed271e57"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a56a04e66dd60cac6d9209f72b9787073"><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" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qlist.html">QList</a>< <a class="el" href="classSoprano_1_1Statement.html">Statement</a> > &statements)</td></tr> <tr class="separator:a56a04e66dd60cac6d9209f72b9787073"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a1cb4010dbf16ac7d26aafc7d07d1d2e1"><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 class="separator:a1cb4010dbf16ac7d26aafc7d07d1d2e1"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ab987533716ba1042636a39d9c32c7145"><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 class="separator:ab987533716ba1042636a39d9c32c7145"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a464b870c0f9e34068e5fe5f0854c8650"><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 class="separator:a464b870c0f9e34068e5fe5f0854c8650"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a96aeda2bb6aa72c814aaaafd4b34d94c"><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 class="separator:a96aeda2bb6aa72c814aaaafd4b34d94c"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a048e4fd1f276766421386b12d81777e1"><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 class="separator:a048e4fd1f276766421386b12d81777e1"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aa7bbcd2afc679a635a813e7ac7c52c91"><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 class="separator:aa7bbcd2afc679a635a813e7ac7c52c91"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ae0b14bbea65acc9a4cca8fb025325962"><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 class="separator:ae0b14bbea65acc9a4cca8fb025325962"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a5c53d2907e993e3de6bd4183b1bebedd"><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 class="separator:a5c53d2907e993e3de6bd4183b1bebedd"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a0345cb0ab83ad008717b516e7b99b3d2"><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 class="separator:a0345cb0ab83ad008717b516e7b99b3d2"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a92c5162f3b92df873547b819818c7d96"><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 class="separator:a92c5162f3b92df873547b819818c7d96"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a30b3b66f7567007ef53e4e8d31180c94"><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 class="separator:a30b3b66f7567007ef53e4e8d31180c94"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aa5f2c61fbc73cae981bd20b9358a02a5"><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> <tr class="separator:aa5f2c61fbc73cae981bd20b9358a02a5"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><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" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/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="section author"><dt>Author</dt><dd>Sebastian Trueg <a href="#" onclick="location.href='mai'+'lto:'+'tru'+'eg'+'@kd'+'e.'+'org'; return false;">trueg<span style="display: none;">.nosp@m.</span>@kde<span style="display: none;">.nosp@m.</span>.org</a></dd></dl> <dl class="section since"><dt>Since</dt><dd>2.3 </dd></dl> <p>Definition at line <a class="el" href="graph_8h_source.html#l00060">60</a> of file <a class="el" href="graph_8h_source.html">graph.h</a>.</p> </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> <a class="anchor" id="af46df00286e72edba15f3631d1d21624"></a> <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> <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> <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" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/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="section see"><dt>See Also</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> <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> <h2 class="groupheader">Member Function Documentation</h2> <a class="anchor" id="a67ed36aac24d6a7d6aae54c7a95e226d"></a> <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 class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">statement</td><td>The <a class="el" href="classSoprano_1_1Statement.html" title="A Statement instance represents one RDF quadruple.">Statement</a> to add. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="af6a48519bb4dd163438029dde249ffeb"></a> <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> </tr> <tr> <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> <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" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/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> <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 class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">statement</td><td>The statement that should be removed. This has to be a valid statement.</td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</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> <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> </tr> <tr> <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> <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 class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">statement</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> <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> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">subject</td><td>The subject node to match. Can be empty as a wildcard. </td></tr> <tr><td class="paramname">predicate</td><td>The predicate node to match. Can be empty as a wildcard. </td></tr> <tr><td class="paramname">object</td><td>The object node to match. Can be empty as a wildcard. </td></tr> <tr><td class="paramname">context</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> <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" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/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> <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> <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 class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">partial</td><td>The partial <a class="el" href="classSoprano_1_1Statement.html" title="A Statement instance represents one RDF quadruple.">Statement</a> to match.</td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</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> <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> </tr> <tr> <td></td> <td>)</td> <td></td><td> const</td> </tr> </table> </div><div class="memdoc"> <p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">subject</td><td>The subject node to match. Can be empty as a wildcard. </td></tr> <tr><td class="paramname">predicate</td><td>The predicate node to match. Can be empty as a wildcard. </td></tr> <tr><td class="paramname">object</td><td>The object node to match. Can be empty as a wildcard. </td></tr> <tr><td class="paramname">context</td><td>The context node to match. Can be empty as a wildcard.</td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</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> <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="section return"><dt>Returns</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> <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="section return"><dt>Returns</dt><dd>An iterator over context Nodes, on error an invalid iterator is returned. </dd></dl> </div> </div> <a class="anchor" id="abb0e149ecaee0c1d9e40d83e24ca5460"></a> <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 class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">statement</td><td>A partially defined statement that serves as a pattern.</td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</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> <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> </tr> <tr> <td></td> <td>)</td> <td></td><td> const</td> </tr> </table> </div><div class="memdoc"> <p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">subject</td><td>The subject node to match. Can be empty as a wildcard. </td></tr> <tr><td class="paramname">predicate</td><td>The predicate node to match. Can be empty as a wildcard. </td></tr> <tr><td class="paramname">object</td><td>The object node to match. Can be empty as a wildcard. </td></tr> <tr><td class="paramname">context</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> <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 class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">statement</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="section return"><dt>Returns</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> <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> </tr> <tr> <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> <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> <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="section return"><dt>Returns</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> <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="section return"><dt>Returns</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> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/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="afb944d051783e16a1d19806128b74ccf"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qset.html">QSet</a><<a class="el" href="classSoprano_1_1Statement.html">Statement</a>> Soprano::Graph::toSet </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 set </p> </div> </div> <a class="anchor" id="a17683006ea4fb21a701db178ed271e57"></a> <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> <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" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/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> <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> <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> <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> <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> <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> <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> <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> <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> <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="section see"><dt>See Also</dt><dd>operator+= </dd></dl> </div> </div> <a class="anchor" id="a92c5162f3b92df873547b819818c7d96"></a> <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="section see"><dt>See Also</dt><dd>operator+= </dd></dl> </div> </div> <a class="anchor" id="a30b3b66f7567007ef53e4e8d31180c94"></a> <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="section return"><dt>Returns</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> <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="section return"><dt>Returns</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.9.4/soprano/<a class="el" href="graph_8h_source.html">graph.h</a></li> </ul> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.3.1 </small></address> </body> </html>