<?xml version="1.0" encoding="UTF-8"?> <!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" lang="en" xml:lang="en"> <head> <title>Syndication::RDF::Model Class Reference</title> <style type="text/css"> .cp-doNotDisplay { display: none; } @media aural, braille, handheld, tty { .cp-doNotDisplay { display: inline; speak: normal; }} .cp-edit { text-align: right; } @media print, embossed { .cp-edit { display: none; }} </style> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <link rel="meta" href="http://www.kde.org/labels.rdf" type="application/rdf+xml" title="ICRA labels" /> <meta name="trademark" content="KDE e.V." /> <meta name="description" content="K Desktop Environment Homepage, KDE.org" /> <meta name="MSSmartTagsPreventParsing" content="true" /> <meta name="robots" content="all" /> <meta name="no-email-collection" content="http://www.unspam.com/noemailcollection" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link rel="shortcut icon" href="../../../favicon.ico" /><link rel="icon" href="../../../favicon.ico" /> <link rel="stylesheet" media="screen" type="text/css" title="KDE Colors" href="../../../kde.css" /> <link rel="stylesheet" media="print, embossed" type="text/css" href="../../../print.css" /> <link rel="stylesheet" media="screen, aural, handheld, tty, braille" type="text/css" title="Flat" href="../../../flat.css" /> <link rel="stylesheet" type="text/css" href="../../../doxygen.css" /> <link rel="stylesheet" type="text/css" href="../../../tabs.css" /> </head> <body> <ul class="cp-doNotDisplay"> <li><a href="#cp-content" accesskey="2">Skip to content</a></li> <li><a href="#cp-menu" accesskey="5">Skip to link menu</a></li> </ul> <div id="container"> <div id="header"> <div id="header_top"><div><div> <img alt ="" src="../../../top-kde.jpg"/> </div></div></div> <div id="header_bottom"> <div id="location"> <ul> <li><a href="http://api.kde.org">KDE API Reference</a></li> <li><a href="../../../index.html">kdepimlibs-4.10.5 API Reference</a></li> </ul> </div> <div id="menu"> <ul> <li><a href="http://www.kde.org/">KDE Home</a></li> <li><a href="http://kde.org/contact/">Contact Us</a></li> </ul> </div> </div> </div> <!-- End page header --> <div id="body_wrapper"> <div id="body"> <!-- begin main content --> <div id="right"> <div class="content"> <div id="main"> <div class="clearer"> </div> <h2><a name="content"></a>syndication/rdf</h2> <!-- BC --> <div id="top"> <!-- Generated by Doxygen 1.8.3.1 --> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><b>Syndication</b></li><li class="navelem"><a class="el" href="namespaceSyndication_1_1RDF.html">RDF</a></li><li class="navelem"><a class="el" href="classSyndication_1_1RDF_1_1Model.html">Model</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="classSyndication_1_1RDF_1_1Model-members.html">List of all members</a> </div> <div class="headertitle"> <div class="title">Syndication::RDF::Model Class Reference</div> </div> </div><!--header--> <div class="contents"> <p><code>#include <<a class="el" href="model_8h_source.html">model.h</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:a87b2b573873ff6d925668306305a30d9"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classSyndication_1_1RDF_1_1Model.html#a87b2b573873ff6d925668306305a30d9">Model</a> ()</td></tr> <tr class="separator:a87b2b573873ff6d925668306305a30d9"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a5f2720eaa45e1cf6599d51bb956b4ed1"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classSyndication_1_1RDF_1_1Model.html#a5f2720eaa45e1cf6599d51bb956b4ed1">Model</a> (const <a class="el" href="classSyndication_1_1RDF_1_1Model.html">Model</a> &other)</td></tr> <tr class="separator:a5f2720eaa45e1cf6599d51bb956b4ed1"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ac7042ba56c5b01c2a8747aeb179c1e28"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classSyndication_1_1RDF_1_1Model.html#ac7042ba56c5b01c2a8747aeb179c1e28">~Model</a> ()</td></tr> <tr class="separator:ac7042ba56c5b01c2a8747aeb179c1e28"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a1625dfef39cf4b869f2a6ed4c6d2e91e"><td class="memItemLeft" align="right" valign="top">virtual StatementPtr </td><td class="memItemRight" valign="bottom"><a class="el" href="classSyndication_1_1RDF_1_1Model.html#a1625dfef39cf4b869f2a6ed4c6d2e91e">addStatement</a> (ResourcePtr subject, PropertyPtr predicate, NodePtr object)</td></tr> <tr class="separator:a1625dfef39cf4b869f2a6ed4c6d2e91e"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:af0a0d2daa3fee893e8779b404f40cd65"><td class="memItemLeft" align="right" valign="top">virtual LiteralPtr </td><td class="memItemRight" valign="bottom"><a class="el" href="classSyndication_1_1RDF_1_1Model.html#af0a0d2daa3fee893e8779b404f40cd65">createLiteral</a> (const QString &text)</td></tr> <tr class="separator:af0a0d2daa3fee893e8779b404f40cd65"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aaa57c4de22a7269df4e25d47a73d3cf7"><td class="memItemLeft" align="right" valign="top">virtual PropertyPtr </td><td class="memItemRight" valign="bottom"><a class="el" href="classSyndication_1_1RDF_1_1Model.html#aaa57c4de22a7269df4e25d47a73d3cf7">createProperty</a> (const QString &uri)</td></tr> <tr class="separator:aaa57c4de22a7269df4e25d47a73d3cf7"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a23e620a5547f7f3550f8194c9c6d4a39"><td class="memItemLeft" align="right" valign="top">virtual ResourcePtr </td><td class="memItemRight" valign="bottom"><a class="el" href="classSyndication_1_1RDF_1_1Model.html#a23e620a5547f7f3550f8194c9c6d4a39">createResource</a> (const QString &uri=QString())</td></tr> <tr class="separator:a23e620a5547f7f3550f8194c9c6d4a39"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a6d60defd9fd78c8271f7fe24c59d4819"><td class="memItemLeft" align="right" valign="top">virtual SequencePtr </td><td class="memItemRight" valign="bottom"><a class="el" href="classSyndication_1_1RDF_1_1Model.html#a6d60defd9fd78c8271f7fe24c59d4819">createSequence</a> (const QString &uri=QString())</td></tr> <tr class="separator:a6d60defd9fd78c8271f7fe24c59d4819"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a0ee38939351166cbb46b7eae72569339"><td class="memItemLeft" align="right" valign="top">virtual QString </td><td class="memItemRight" valign="bottom"><a class="el" href="classSyndication_1_1RDF_1_1Model.html#a0ee38939351166cbb46b7eae72569339">debugInfo</a> () const </td></tr> <tr class="separator:a0ee38939351166cbb46b7eae72569339"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ab272afa7ae1c82897b30604e70d7e03d"><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classSyndication_1_1RDF_1_1Model.html#ab272afa7ae1c82897b30604e70d7e03d">isEmpty</a> () const </td></tr> <tr class="separator:ab272afa7ae1c82897b30604e70d7e03d"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a8135c92a17206b00fbf2fadec61d1aa9"><td class="memItemLeft" align="right" valign="top">virtual LiteralPtr </td><td class="memItemRight" valign="bottom"><a class="el" href="classSyndication_1_1RDF_1_1Model.html#a8135c92a17206b00fbf2fadec61d1aa9">literalByID</a> (uint id) const </td></tr> <tr class="separator:a8135c92a17206b00fbf2fadec61d1aa9"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ade30c7d350c707a13bc914ca411c3d5e"><td class="memItemLeft" align="right" valign="top">virtual NodePtr </td><td class="memItemRight" valign="bottom"><a class="el" href="classSyndication_1_1RDF_1_1Model.html#ade30c7d350c707a13bc914ca411c3d5e">nodeByID</a> (uint id) const </td></tr> <tr class="separator:ade30c7d350c707a13bc914ca411c3d5e"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ad906dedb3b17fa501544c39fa0395e38"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSyndication_1_1RDF_1_1Model.html">Model</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classSyndication_1_1RDF_1_1Model.html#ad906dedb3b17fa501544c39fa0395e38">operator=</a> (const <a class="el" href="classSyndication_1_1RDF_1_1Model.html">Model</a> &other)</td></tr> <tr class="separator:ad906dedb3b17fa501544c39fa0395e38"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ae89c1123159aa2afacf7be24f03550ad"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classSyndication_1_1RDF_1_1Model.html#ae89c1123159aa2afacf7be24f03550ad">operator==</a> (const <a class="el" href="classSyndication_1_1RDF_1_1Model.html">Model</a> &other) const </td></tr> <tr class="separator:ae89c1123159aa2afacf7be24f03550ad"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a6a0966bf9ee6060c016d8f20829418de"><td class="memItemLeft" align="right" valign="top">virtual PropertyPtr </td><td class="memItemRight" valign="bottom"><a class="el" href="classSyndication_1_1RDF_1_1Model.html#a6a0966bf9ee6060c016d8f20829418de">propertyByID</a> (uint id) const </td></tr> <tr class="separator:a6a0966bf9ee6060c016d8f20829418de"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a201a9efc9d01c4bbc6f77a474a82a103"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classSyndication_1_1RDF_1_1Model.html#a201a9efc9d01c4bbc6f77a474a82a103">removeStatement</a> (ResourcePtr subject, PropertyPtr predicate, NodePtr object)</td></tr> <tr class="separator:a201a9efc9d01c4bbc6f77a474a82a103"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a3b2b61732170a521373b3bfc93ad1930"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classSyndication_1_1RDF_1_1Model.html#a3b2b61732170a521373b3bfc93ad1930">removeStatement</a> (StatementPtr statement)</td></tr> <tr class="separator:a3b2b61732170a521373b3bfc93ad1930"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a7346a72453afe9185af1c6d2ee1bba50"><td class="memItemLeft" align="right" valign="top">virtual ResourcePtr </td><td class="memItemRight" valign="bottom"><a class="el" href="classSyndication_1_1RDF_1_1Model.html#a7346a72453afe9185af1c6d2ee1bba50">resourceByID</a> (uint id) const </td></tr> <tr class="separator:a7346a72453afe9185af1c6d2ee1bba50"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a62a3f4049ba3dd61264da494542c218a"><td class="memItemLeft" align="right" valign="top">virtual QList< ResourcePtr > </td><td class="memItemRight" valign="bottom"><a class="el" href="classSyndication_1_1RDF_1_1Model.html#a62a3f4049ba3dd61264da494542c218a">resourcesWithType</a> (ResourcePtr type) const </td></tr> <tr class="separator:a62a3f4049ba3dd61264da494542c218a"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aa4317aa9b3a467720c43eab0f2a54d94"><td class="memItemLeft" align="right" valign="top">virtual QList< StatementPtr > </td><td class="memItemRight" valign="bottom"><a class="el" href="classSyndication_1_1RDF_1_1Model.html#aa4317aa9b3a467720c43eab0f2a54d94">statements</a> () const </td></tr> <tr class="separator:aa4317aa9b3a467720c43eab0f2a54d94"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><p>An <a class="el" href="namespaceSyndication_1_1RDF.html" title="Syndication's parser for the RDF-based RSS 0.9 and RSS 1.0 formats.">RDF</a> model, a set of <a class="el" href="namespaceSyndication_1_1RDF.html" title="Syndication's parser for the RDF-based RSS 0.9 and RSS 1.0 formats.">RDF</a> statements. </p> <p><a class="el" href="classSyndication_1_1RDF_1_1Model.html" title="An RDF model, a set of RDF statements.">Model</a> objects are implicitely shared.</p> <dl class="section author"><dt>Author</dt><dd>Frank Osterfeld </dd></dl> <p>Definition at line <a class="el" href="model_8h_source.html#l00049">49</a> of file <a class="el" href="model_8h_source.html">model.h</a>.</p> </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> <a class="anchor" id="a87b2b573873ff6d925668306305a30d9"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Syndication::RDF::Model::Model </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>default constructor, creates an empty model containing no statements </p> <p>Definition at line <a class="el" href="model_8cpp_source.html#l00031">31</a> of file <a class="el" href="model_8cpp_source.html">model.cpp</a>.</p> </div> </div> <a class="anchor" id="a5f2720eaa45e1cf6599d51bb956b4ed1"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Syndication::RDF::Model::Model </td> <td>(</td> <td class="paramtype">const <a class="el" href="classSyndication_1_1RDF_1_1Model.html">Model</a> & </td> <td class="paramname"><em>other</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>constructs a model from another. </p> <p>Both models will share the same set of statements, so adding/removing statements from one model also modifies the other!</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">other</td><td>another model </td></tr> </table> </dd> </dl> <p>Definition at line <a class="el" href="model_8cpp_source.html#l00035">35</a> of file <a class="el" href="model_8cpp_source.html">model.cpp</a>.</p> </div> </div> <a class="anchor" id="ac7042ba56c5b01c2a8747aeb179c1e28"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">Syndication::RDF::Model::~Model </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>destructor </p> <p>Definition at line <a class="el" href="model_8cpp_source.html#l00040">40</a> of file <a class="el" href="model_8cpp_source.html">model.cpp</a>.</p> </div> </div> <h2 class="groupheader">Member Function Documentation</h2> <a class="anchor" id="a1625dfef39cf4b869f2a6ed4c6d2e91e"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">StatementPtr Syndication::RDF::Model::addStatement </td> <td>(</td> <td class="paramtype">ResourcePtr </td> <td class="paramname"><em>subject</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">PropertyPtr </td> <td class="paramname"><em>predicate</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">NodePtr </td> <td class="paramname"><em>object</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>adds a statement to the model. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">subject</td><td></td></tr> <tr><td class="paramname">predicate</td><td></td></tr> <tr><td class="paramname">object</td><td></td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>a shared pointer to a statement associated with this model, with the given <code>subject</code>, <code>predicate</code> and <code>object</code> </dd></dl> <p>Definition at line <a class="el" href="model_8cpp_source.html#l00146">146</a> of file <a class="el" href="model_8cpp_source.html">model.cpp</a>.</p> </div> </div> <a class="anchor" id="af0a0d2daa3fee893e8779b404f40cd65"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">LiteralPtr Syndication::RDF::Model::createLiteral </td> <td>(</td> <td class="paramtype">const QString & </td> <td class="paramname"><em>text</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>creates a literal and associates it with this model. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">text</td><td>the literal text </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>a shared pointer to the requested literal </dd></dl> <p>Definition at line <a class="el" href="model_8cpp_source.html#l00123">123</a> of file <a class="el" href="model_8cpp_source.html">model.cpp</a>.</p> </div> </div> <a class="anchor" id="aaa57c4de22a7269df4e25d47a73d3cf7"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">PropertyPtr Syndication::RDF::Model::createProperty </td> <td>(</td> <td class="paramtype">const QString & </td> <td class="paramname"><em>uri</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>creates a property and associates it with this model. </p> <p>If the model already contains a property with the given URI, the existing instance is returned.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">uri</td><td>the URI of the property. This must be non-empty, otherwise null property is returned </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>a shared pointer to the requested property </dd></dl> <p>Definition at line <a class="el" href="model_8cpp_source.html#l00055">55</a> of file <a class="el" href="model_8cpp_source.html">model.cpp</a>.</p> </div> </div> <a class="anchor" id="a23e620a5547f7f3550f8194c9c6d4a39"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">ResourcePtr Syndication::RDF::Model::createResource </td> <td>(</td> <td class="paramtype">const QString & </td> <td class="paramname"><em>uri</em> = <code>QString()</code></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>creates a resource and associates it with this model. </p> <p>If the model already contains a resource with the given URI, the existing instance is returned.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">uri</td><td>the URI of the resource. If a null string, a blank node is created. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>a shared pointer to the requested resource </dd></dl> <p>Definition at line <a class="el" href="model_8cpp_source.html#l00080">80</a> of file <a class="el" href="model_8cpp_source.html">model.cpp</a>.</p> </div> </div> <a class="anchor" id="a6d60defd9fd78c8271f7fe24c59d4819"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">SequencePtr Syndication::RDF::Model::createSequence </td> <td>(</td> <td class="paramtype">const QString & </td> <td class="paramname"><em>uri</em> = <code>QString()</code></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>creates a sequence and associates it with this model. </p> <p>If the model already contains a sequence with the given URI, the existing instance is returned.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">uri</td><td>the URI of the sequence, or a null string for an anonymous instance </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>a shared pointer to the requested sequence </dd></dl> <p>Definition at line <a class="el" href="model_8cpp_source.html#l00098">98</a> of file <a class="el" href="model_8cpp_source.html">model.cpp</a>.</p> </div> </div> <a class="anchor" id="a0ee38939351166cbb46b7eae72569339"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">QString Syndication::RDF::Model::debugInfo </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>a debug string listing the contained statements for debugging purposes </p> <dl class="section return"><dt>Returns</dt><dd>debug string </dd></dl> <p>Definition at line <a class="el" href="model_8cpp_source.html#l00274">274</a> of file <a class="el" href="model_8cpp_source.html">model.cpp</a>.</p> </div> </div> <a class="anchor" id="ab272afa7ae1c82897b30604e70d7e03d"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">bool Syndication::RDF::Model::isEmpty </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>returns whether this model is empty, i.e. </p> <p>contains no statements. </p> <p>Definition at line <a class="el" href="model_8cpp_source.html#l00198">198</a> of file <a class="el" href="model_8cpp_source.html">model.cpp</a>.</p> </div> </div> <a class="anchor" id="a8135c92a17206b00fbf2fadec61d1aa9"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">LiteralPtr Syndication::RDF::Model::literalByID </td> <td>(</td> <td class="paramtype">uint </td> <td class="paramname"><em>id</em></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>searches the model for a literal by ID. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">id</td><td>the ID to search for </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>the literal with the given ID, or a null literal if the model doesn't contain a literal with this ID </dd></dl> <p>Definition at line <a class="el" href="model_8cpp_source.html#l00376">376</a> of file <a class="el" href="model_8cpp_source.html">model.cpp</a>.</p> </div> </div> <a class="anchor" id="ade30c7d350c707a13bc914ca411c3d5e"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">NodePtr Syndication::RDF::Model::nodeByID </td> <td>(</td> <td class="paramtype">uint </td> <td class="paramname"><em>id</em></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>searches the model for a node by ID. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">id</td><td>the ID to search for </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>the node with the given ID, or a null node (which is of type <a class="el" href="classSyndication_1_1RDF_1_1Literal.html" title="a node type representing simple string values.">Literal</a>) if the model doesn't contain the node with this ID </dd></dl> <p>Definition at line <a class="el" href="model_8cpp_source.html#l00317">317</a> of file <a class="el" href="model_8cpp_source.html">model.cpp</a>.</p> </div> </div> <a class="anchor" id="ad906dedb3b17fa501544c39fa0395e38"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classSyndication_1_1RDF_1_1Model.html">Model</a> & Syndication::RDF::Model::operator= </td> <td>(</td> <td class="paramtype">const <a class="el" href="classSyndication_1_1RDF_1_1Model.html">Model</a> & </td> <td class="paramname"><em>other</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>assigns another model. </p> <p>Both models will share the same set of statements, so adding/removing statements from one model also modifies the other!</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">other</td><td>another model </td></tr> </table> </dd> </dl> <p>Definition at line <a class="el" href="model_8cpp_source.html#l00044">44</a> of file <a class="el" href="model_8cpp_source.html">model.cpp</a>.</p> </div> </div> <a class="anchor" id="ae89c1123159aa2afacf7be24f03550ad"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool Syndication::RDF::Model::operator== </td> <td>(</td> <td class="paramtype">const <a class="el" href="classSyndication_1_1RDF_1_1Model.html">Model</a> & </td> <td class="paramname"><em>other</em></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc"> <p>Returns whether two models objects represent the same model (i.e. </p> <p>share the same underlying statement set). Currently this method does <em>not</em> compare the statement list. Two indepently created models containing the same statements are not equal!</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">other</td><td>the model to compare to </td></tr> </table> </dd> </dl> <p>Definition at line <a class="el" href="model_8cpp_source.html#l00050">50</a> of file <a class="el" href="model_8cpp_source.html">model.cpp</a>.</p> </div> </div> <a class="anchor" id="a6a0966bf9ee6060c016d8f20829418de"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">PropertyPtr Syndication::RDF::Model::propertyByID </td> <td>(</td> <td class="paramtype">uint </td> <td class="paramname"><em>id</em></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>searches the model for a property by ID. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">id</td><td>the ID to search for </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>the property with the given ID, or a null property if the model doesn't contain a property with this ID </dd></dl> <p>Definition at line <a class="el" href="model_8cpp_source.html#l00355">355</a> of file <a class="el" href="model_8cpp_source.html">model.cpp</a>.</p> </div> </div> <a class="anchor" id="a201a9efc9d01c4bbc6f77a474a82a103"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">void Syndication::RDF::Model::removeStatement </td> <td>(</td> <td class="paramtype">ResourcePtr </td> <td class="paramname"><em>subject</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">PropertyPtr </td> <td class="paramname"><em>predicate</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">NodePtr </td> <td class="paramname"><em>object</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>removes a statement from the model. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">subject</td><td>subject of the statement </td></tr> <tr><td class="paramname">predicate</td><td>predicate of the statement </td></tr> <tr><td class="paramname">object</td><td>object of the statement </td></tr> </table> </dd> </dl> <p>Definition at line <a class="el" href="model_8cpp_source.html#l00137">137</a> of file <a class="el" href="model_8cpp_source.html">model.cpp</a>.</p> </div> </div> <a class="anchor" id="a3b2b61732170a521373b3bfc93ad1930"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">void Syndication::RDF::Model::removeStatement </td> <td>(</td> <td class="paramtype">StatementPtr </td> <td class="paramname"><em>statement</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>removes a statement from the model. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">statement</td><td>the statement to remove </td></tr> </table> </dd> </dl> <p>Definition at line <a class="el" href="model_8cpp_source.html#l00132">132</a> of file <a class="el" href="model_8cpp_source.html">model.cpp</a>.</p> </div> </div> <a class="anchor" id="a7346a72453afe9185af1c6d2ee1bba50"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">ResourcePtr Syndication::RDF::Model::resourceByID </td> <td>(</td> <td class="paramtype">uint </td> <td class="paramname"><em>id</em></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>searches the model for a resource by ID. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">id</td><td>the ID to search for </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>the resource with the given ID, or a null resource if the model doesn't contain a resource with this ID </dd></dl> <p>Definition at line <a class="el" href="model_8cpp_source.html#l00334">334</a> of file <a class="el" href="model_8cpp_source.html">model.cpp</a>.</p> </div> </div> <a class="anchor" id="a62a3f4049ba3dd61264da494542c218a"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">QList< ResourcePtr > Syndication::RDF::Model::resourcesWithType </td> <td>(</td> <td class="paramtype">ResourcePtr </td> <td class="paramname"><em>type</em></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>returns all resources of a given type. </p> <p>subClassOf semantics are ignored.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">type</td><td>a resource representing an RDFS class </td></tr> </table> </dd> </dl> <p>Definition at line <a class="el" href="model_8cpp_source.html#l00300">300</a> of file <a class="el" href="model_8cpp_source.html">model.cpp</a>.</p> </div> </div> <a class="anchor" id="aa4317aa9b3a467720c43eab0f2a54d94"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">QList< StatementPtr > Syndication::RDF::Model::statements </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>returns a list of the statements in this model. </p> <p>Definition at line <a class="el" href="model_8cpp_source.html#l00269">269</a> of file <a class="el" href="model_8cpp_source.html">model.cpp</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="model_8h_source.html">model.h</a></li> <li><a class="el" href="model_8cpp_source.html">model.cpp</a></li> </ul> </div><!-- contents --> <div class="copyrights"> This file is part of the KDE documentation.<br/> Documentation copyright © 1996-2013 The KDE developers.<br/> Generated on Fri Jul 12 2013 16:48:34 by <a href="http://www.doxygen.org/index.html">doxygen</a> 1.8.3.1 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>, © 1997-2006 <p> KDE's <a href="http://techbase.kde.org/Policies/Library_Documentation_Policy">Doxygen guidelines</a> are available online. </p> </div> </div> </div> </div> <div id="left"> <div class="menu_box"> <a name="cp-menu" /><div class="menutitle"><div> <h2 id="cp-menu-project">syndication/rdf</h2> <a href="#cp-skip-project" class="cp-doNotDisplay">Skip menu "syndication/rdf"</a> </div></div> <ul><li><a href="index.html">Main Page</a></li><li><a href="namespaces.html">Namespace List</a></li><li><a href="classes.html">Alphabetical List</a></li><li><a href="annotated.html">Class List</a></li><li><a href="hierarchy.html">Class Hierarchy</a></li><li><a href="functions.html">Class Members</a></li><li><a href="files.html">File List</a></li></ul> <!-- <h2>Class Picker</h2> <div style="text-align: center;"> <form name="guideform"> <select name="guidelinks" style="width:100%;" onChange="window.location=document.guideform.guidelinks.options[document.guideform.guidelinks.selectedIndex].value"> <option value="annotated.html">-- Choose --</option> <option value="classSyndication_1_1RDF_1_1ContentVocab.html">syndication::rdf::contentvocab</option>, <option value="classSyndication_1_1RDF_1_1Document.html">syndication::rdf::document</option>, <option value="classSyndication_1_1RDF_1_1DublinCore.html">syndication::rdf::dublincore</option>, <option value="classSyndication_1_1RDF_1_1DublinCoreVocab.html">syndication::rdf::dublincorevocab</option>, <option value="classSyndication_1_1RDF_1_1Image.html">syndication::rdf::image</option>, <option value="classSyndication_1_1RDF_1_1Item.html">syndication::rdf::item</option>, <option value="classSyndication_1_1RDF_1_1Literal.html">syndication::rdf::literal</option>, <option value="classSyndication_1_1RDF_1_1Model.html">syndication::rdf::model</option>, <option value="classSyndication_1_1RDF_1_1ModelMaker.html">syndication::rdf::modelmaker</option>, <option value="classSyndication_1_1RDF_1_1Node.html">syndication::rdf::node</option>, <option value="classSyndication_1_1RDF_1_1NodeVisitor.html">syndication::rdf::nodevisitor</option>, <option value="classSyndication_1_1RDF_1_1Parser.html">syndication::rdf::parser</option>, <option value="classSyndication_1_1RDF_1_1Property.html">syndication::rdf::property</option>, <option value="classSyndication_1_1RDF_1_1RDFVocab.html">syndication::rdf::rdfvocab</option>, <option value="classSyndication_1_1RDF_1_1Resource.html">syndication::rdf::resource</option>, <option value="classSyndication_1_1RDF_1_1ResourceWrapper.html">syndication::rdf::resourcewrapper</option>, <option value="classSyndication_1_1RDF_1_1RSS09Vocab.html">syndication::rdf::rss09vocab</option>, <option value="classSyndication_1_1RDF_1_1RSSVocab.html">syndication::rdf::rssvocab</option>, <option value="classSyndication_1_1RDF_1_1Sequence.html">syndication::rdf::sequence</option>, <option value="classSyndication_1_1RDF_1_1Statement.html">syndication::rdf::statement</option>, <option value="classSyndication_1_1RDF_1_1SyndicationInfo.html">syndication::rdf::syndicationinfo</option>, <option value="classSyndication_1_1RDF_1_1SyndicationVocab.html">syndication::rdf::syndicationvocab</option>, <option value="classSyndication_1_1RDF_1_1TextInput.html">syndication::rdf::textinput</option>, </select> </form> </div> --> <div class="menu_box"> <a name="cp-menu" /><div class="menutitle"><div> <h2 id="cp-menu-project">kdepimlibs-4.10.5 API Reference</h2> <a href="#cp-skip-project" class="cp-doNotDisplay">Skip menu "kdepimlibs-4.10.5 API Reference"</a> </div></div> <div class="nav_list"> <ul> <li><a href="../../../akonadi/html/index.html">akonadi</a></li><li> <a href="../../../akonadi/contact/html/index.html">contact</a></li><li> <a href="../../../akonadi/kmime/html/index.html">kmime</a></li><li> <a href="../../../akonadi/socialutils/html/index.html">socialutils</a></li><li><a href="../../../kabc/html/index.html">kabc</a></li><li><a href="../../../kalarmcal/html/index.html">kalarmcal</a></li><li><a href="../../../kblog/html/index.html">kblog</a></li><li><a href="../../../kcal/html/index.html">kcal</a></li><li><a href="../../../kcalcore/html/index.html">kcalcore</a></li><li><a href="../../../kcalutils/html/index.html">kcalutils</a></li><li><a href="../../../kholidays/html/index.html">kholidays</a></li><li><a href="../../../kimap/html/index.html">kimap</a></li><li><a href="../../../kioslave/html/index.html">kioslave</a></li><li> <a href="../../../kioslave/imap4/html/index.html">imap4</a></li><li> <a href="../../../kioslave/mbox/html/index.html">mbox</a></li><li> <a href="../../../kioslave/nntp/html/index.html">nntp</a></li><li><a href="../../../kldap/html/index.html">kldap</a></li><li><a href="../../../kmbox/html/index.html">kmbox</a></li><li><a href="../../../kmime/html/index.html">kmime</a></li><li><a href="../../../kontactinterface/html/index.html">kontactinterface</a></li><li><a href="../../../kpimidentities/html/index.html">kpimidentities</a></li><li><a href="../../../kpimtextedit/html/index.html">kpimtextedit</a></li><li><a href="../../../kpimutils/html/index.html">kpimutils</a></li><li><a href="../../../kresources/html/index.html">kresources</a></li><li><a href="../../../ktnef/html/index.html">ktnef</a></li><li><a href="../../../kxmlrpcclient/html/index.html">kxmlrpcclient</a></li><li><a href="../../../mailtransport/html/index.html">mailtransport</a></li><li><a href="../../../microblog/html/index.html">microblog</a></li><li><a href="../../../qgpgme/html/index.html">qgpgme</a></li><li><a href="../../../syndication/html/index.html">syndication</a></li><li> <a href="../../../syndication/atom/html/index.html">atom</a></li><li> <a href="../../../syndication/rdf/html/index.html">rdf</a></li><li> <a href="../../../syndication/rss2/html/index.html">rss2</a></li> </ul></div></div> <!-- api_searchbox --> </div> </div> <div class="clearer"></div> </div> <div class="clearer"></div> </div> <div id="end_body"></div> <div id="footer"><div id="footer_text"> Report problems with this website to <a href="https://bugs.kde.org/enter_sysadmin_request.cgi?component=api.kde.org">our bug tracking system</a>.<br> Contact the specific authors with questions and comments about the page contents.<p> KDE<sup>®</sup> and <a href="/media/images/kde_gear_black.png">the K Desktop Environment<sup>®</sup> logo</a> are registered trademarks of <a href="http://ev.kde.org/" title="Homepage of the KDE non-profit Organization">KDE e.V.</a> | <a href="http://www.kde.org/contact/impressum.php">Legal</a></p> </div></div> </div> <!-- WARNING: DO NOT SEND MAIL TO THE FOLLOWING EMAIL ADDRESS! YOU WILL BE BLOCKED INSTANTLY AND PERMANENTLY! <a href="mailto:aaaatrap-45abe0e0c3bebc77@kde.org">Block me</a> WARNING END --> </body> </html>