<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>Soprano: Soprano::RdfSchemaModel Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.7.1 --> <script type="text/javascript"> function hasClass(ele,cls) { return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)')); } function addClass(ele,cls) { if (!this.hasClass(ele,cls)) ele.className += " "+cls; } function removeClass(ele,cls) { if (hasClass(ele,cls)) { var reg = new RegExp('(\\s|^)'+cls+'(\\s|$)'); ele.className=ele.className.replace(reg,' '); } } function toggleVisibility(linkObj) { var base = linkObj.getAttribute('id'); var summary = document.getElementById(base + '-summary'); var content = document.getElementById(base + '-content'); var trigger = document.getElementById(base + '-trigger'); if ( hasClass(linkObj,'closed') ) { summary.style.display = 'none'; content.style.display = 'block'; trigger.src = 'open.png'; removeClass(linkObj,'closed'); addClass(linkObj,'opened'); } else if ( hasClass(linkObj,'opened') ) { summary.style.display = 'block'; content.style.display = 'none'; trigger.src = 'closed.png'; removeClass(linkObj,'opened'); addClass(linkObj,'closed'); } return false; } </script> <div class="navigation" id="top"> <div class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div class="navpath"> <ul> <li><a class="el" href="namespaceSoprano.html">Soprano</a> </li> <li><a class="el" href="classSoprano_1_1RdfSchemaModel.html">Soprano::RdfSchemaModel</a> </li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> </div> <div class="headertitle"> <h1>Soprano::RdfSchemaModel Class Reference</h1> </div> </div> <div class="contents"> <!-- doxytag: class="Soprano::RdfSchemaModel" --><!-- doxytag: inherits="Soprano::FilterModel" --> <p>Provides convenience methods to handle RDFS data. <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="rdfschemamodel_8h_source.html">Soprano/RdfSchemaModel</a>></code></p> <div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;"> <img id="dynsection-0-trigger" src="closed.png"/> Inheritance diagram for Soprano::RdfSchemaModel:</div> <div id="dynsection-0-summary" class="dynsummary" style="display:block;"> </div> <div id="dynsection-0-content" class="dyncontent" style="display:none;"> <div class="center"><img src="classSoprano_1_1RdfSchemaModel__inherit__graph.png" border="0" usemap="#Soprano_1_1RdfSchemaModel_inherit__map" alt="Inheritance graph"/></div> <map name="Soprano_1_1RdfSchemaModel_inherit__map" id="Soprano_1_1RdfSchemaModel_inherit__map"> <area shape="rect" id="node2" href="classSoprano_1_1FilterModel.html" title="A FilterModel is a virtual model that wraps another Model." alt="" coords="43,160,184,189"/><area shape="rect" id="node4" href="classSoprano_1_1Model.html" title="A Model is the central class in Soprano. It is a queryable collection of RDF quadruples, i.e statements." alt="" coords="57,83,169,112"/><area shape="rect" id="node6" href="qobject.html" title="QObject" alt="" coords="5,5,75,35"/><area shape="rect" id="node8" href="classSoprano_1_1Error_1_1ErrorCache.html" title="Core class of Soprano's exception system." alt="" coords="99,5,277,35"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <p><a href="classSoprano_1_1RdfSchemaModel-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1RdfSchemaModel.html#a5892d599e692b1a3ce7f232e1ad0f53a">RdfSchemaModel</a> (<a class="el" href="classSoprano_1_1Model.html">Model</a> *parentModel=0)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1RdfSchemaModel.html#a5d0f11a890cd9a478f2378197fe198ed">~RdfSchemaModel</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1StatementIterator.html">StatementIterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1RdfSchemaModel.html#aea6cd73245cce7b105a9ce49b3aa1fe2">classes</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1StatementIterator.html">StatementIterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1RdfSchemaModel.html#a190b10335982d412251dd5991141b90f">directSubClassOf</a> (const <a class="el" href="classSoprano_1_1Node.html">Node</a> &subClass, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &superClass=<a class="el" href="classSoprano_1_1Node.html">Node</a>()) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1StatementIterator.html">StatementIterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1RdfSchemaModel.html#abd4aa4e4e0d4057fecb023302563bd55">directSubPropertyOf</a> (const <a class="el" href="classSoprano_1_1Node.html">Node</a> &subProperty, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &superProperty=<a class="el" href="classSoprano_1_1Node.html">Node</a>()) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1StatementIterator.html">StatementIterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1RdfSchemaModel.html#a2d17aead9bb12224c3686469bb6b439d">directType</a> (const <a class="el" href="classSoprano_1_1Node.html">Node</a> &someClass, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &someType) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1StatementIterator.html">StatementIterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1RdfSchemaModel.html#ab33e35f047216b51e78a0fdb710ccd45">domain</a> (const <a class="el" href="classSoprano_1_1Node.html">Node</a> &prop, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &domain) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1StatementIterator.html">StatementIterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1RdfSchemaModel.html#a90acaae8d00d37dc8af40fcd52766b7c">properties</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1StatementIterator.html">StatementIterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1RdfSchemaModel.html#ab112a268139d89d8b58bba6a74cc68f7">range</a> (const <a class="el" href="classSoprano_1_1Node.html">Node</a> &prop, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &range) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1StatementIterator.html">StatementIterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1RdfSchemaModel.html#afdd24dbff28fd815b362fc129f4d5c00">subClassOf</a> (const <a class="el" href="classSoprano_1_1Node.html">Node</a> &subClass, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &superClass=<a class="el" href="classSoprano_1_1Node.html">Node</a>()) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1StatementIterator.html">StatementIterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1RdfSchemaModel.html#a7bb9b6b1b02b11bd73f58594658f3cc5">subPropertyOf</a> (const <a class="el" href="classSoprano_1_1Node.html">Node</a> &subProperty, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &superProperty=<a class="el" href="classSoprano_1_1Node.html">Node</a>()) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1StatementIterator.html">StatementIterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1RdfSchemaModel.html#aee9317d0aaed9c442ede2f5647ddd338">type</a> (const <a class="el" href="classSoprano_1_1Node.html">Node</a> &someClass, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &someType) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1RdfSchemaModel.html#ae892cadf3cef3dd99fdaf6850c0e1a3a">isClass</a> (const <a class="el" href="classSoprano_1_1Node.html">Node</a> &resource) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1RdfSchemaModel.html#a52c847a592737dc41b05fb4e5fcb3e07">isProperty</a> (const <a class="el" href="classSoprano_1_1Node.html">Node</a> &resource) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1RdfSchemaModel.html#aa79ff66600d8f52fa8507561a36b04a6">isDirectSubClassOf</a> (const <a class="el" href="classSoprano_1_1Node.html">Node</a> &subClass, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &superClass) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1RdfSchemaModel.html#a7d757e8ef74e2de893d364679ea9e288">isDirectSubPropertyOf</a> (const <a class="el" href="classSoprano_1_1Node.html">Node</a> &subProperty, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &superProperty) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1RdfSchemaModel.html#ab4b41cb5501548dd9b29bf7df8f3785c">isDirectType</a> (const <a class="el" href="classSoprano_1_1Node.html">Node</a> &someClass, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &someType) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1RdfSchemaModel.html#a3436b7ed2a5fc207f06c88a35f698c0d">isSubClassOf</a> (const <a class="el" href="classSoprano_1_1Node.html">Node</a> &subClass, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &superClass) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1RdfSchemaModel.html#acf4a7a89fbfe56d6f8c4ac5ab24e2d36">isSubPropertyOf</a> (const <a class="el" href="classSoprano_1_1Node.html">Node</a> &subProperty, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &superProperty) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1RdfSchemaModel.html#a784890d65f6da67ff04cc09e392bb3c5">isType</a> (const <a class="el" href="classSoprano_1_1Node.html">Node</a> &someClass, const <a class="el" href="classSoprano_1_1Node.html">Node</a> &someType) const </td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>Provides convenience methods to handle RDFS data. </p> <p>Interface based on Sesame's RdfSchemaSource. (Copyright (C) 2002-2006 Aduna BV, GNU LGPL License applies.)</p> <dl class="warning"><dt><b>Warning:</b></dt><dd>Backward inferencing has not been implemented yet. Thus, methods like <a class="el" href="classSoprano_1_1RdfSchemaModel.html#afdd24dbff28fd815b362fc129f4d5c00">subClassOf()</a> return the same as <a class="el" href="classSoprano_1_1RdfSchemaModel.html#a190b10335982d412251dd5991141b90f">directSubClassOf()</a>.</dd></dl> <dl class="author"><dt><b>Author:</b></dt><dd>Sebastian Trueg <<a href="mailto:trueg@kde.org">trueg@kde.org</a>> </dd></dl> <p>Definition at line <a class="el" href="rdfschemamodel_8h_source.html#l00046">46</a> of file <a class="el" href="rdfschemamodel_8h_source.html">rdfschemamodel.h</a>.</p> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a5892d599e692b1a3ce7f232e1ad0f53a"></a><!-- doxytag: member="Soprano::RdfSchemaModel::RdfSchemaModel" ref="a5892d599e692b1a3ce7f232e1ad0f53a" args="(Model *parentModel=0)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Soprano::RdfSchemaModel::RdfSchemaModel </td> <td>(</td> <td class="paramtype"><a class="el" href="classSoprano_1_1Model.html">Model</a> * </td> <td class="paramname"> <em>parentModel</em> = <code>0</code></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Create a new RDF Schema wrapper model that performs actions on <code>model</code> </p> </div> </div> <a class="anchor" id="a5d0f11a890cd9a478f2378197fe198ed"></a><!-- doxytag: member="Soprano::RdfSchemaModel::~RdfSchemaModel" ref="a5d0f11a890cd9a478f2378197fe198ed" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Soprano::RdfSchemaModel::~RdfSchemaModel </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Destructor. </p> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="aea6cd73245cce7b105a9ce49b3aa1fe2"></a><!-- doxytag: member="Soprano::RdfSchemaModel::classes" ref="aea6cd73245cce7b105a9ce49b3aa1fe2" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classSoprano_1_1StatementIterator.html">StatementIterator</a> Soprano::RdfSchemaModel::classes </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Get all defined RDF/S classes. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>a <a class="el" href="classSoprano_1_1StatementIterator.html" title="An iterator that provides a stream of Statements.">StatementIterator</a> that iterates over all statements in the model defining an RDF/S class. </dd></dl> </div> </div> <a class="anchor" id="a190b10335982d412251dd5991141b90f"></a><!-- doxytag: member="Soprano::RdfSchemaModel::directSubClassOf" ref="a190b10335982d412251dd5991141b90f" args="(const Node &subClass, const Node &superClass=Node()) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classSoprano_1_1StatementIterator.html">StatementIterator</a> Soprano::RdfSchemaModel::directSubClassOf </td> <td>(</td> <td class="paramtype">const <a class="el" href="classSoprano_1_1Node.html">Node</a> & </td> <td class="paramname"> <em>subClass</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>superClass</em> = <code><a class="el" href="classSoprano_1_1Node.html">Node</a>()</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Gets all direct subClassOf relations with a specific sub- and/or superclass. A class A is a direct subclass of class B if there is no class C such that A is a subclass of C and C is a subclass of B.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>subClass</em> </td><td>The subclass of the relations that should be returned, or an empty node if relations with any subclass should be returned. </td></tr> <tr><td valign="top"></td><td valign="top"><em>superClass</em> </td><td>The superclass of the relations that should be returned, or an empty node if relations with any superclass should be returned.</td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>A <a class="el" href="classSoprano_1_1StatementIterator.html" title="An iterator that provides a stream of Statements.">StatementIterator</a> containing statements of the form (subClass, rdfs:subClassOf, superClass). </dd></dl> </div> </div> <a class="anchor" id="abd4aa4e4e0d4057fecb023302563bd55"></a><!-- doxytag: member="Soprano::RdfSchemaModel::directSubPropertyOf" ref="abd4aa4e4e0d4057fecb023302563bd55" args="(const Node &subProperty, const Node &superProperty=Node()) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classSoprano_1_1StatementIterator.html">StatementIterator</a> Soprano::RdfSchemaModel::directSubPropertyOf </td> <td>(</td> <td class="paramtype">const <a class="el" href="classSoprano_1_1Node.html">Node</a> & </td> <td class="paramname"> <em>subProperty</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>superProperty</em> = <code><a class="el" href="classSoprano_1_1Node.html">Node</a>()</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Gets all direct subPropertyOf relations with a specific sub- and/or superproperty. A property A is a direct subproperty of property B if there is no property C such that A is a subproperty of C and C is a subproperty of B.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>subProperty</em> </td><td>The subproperty of the relations that should be returned, or an empty node if relations with any subproperty should be returned. </td></tr> <tr><td valign="top"></td><td valign="top"><em>superProperty</em> </td><td>The superproperty of the relations that should be returned, or an empty node if relations with any superproperty should be returned.</td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>A <a class="el" href="classSoprano_1_1StatementIterator.html" title="An iterator that provides a stream of Statements.">StatementIterator</a> containing statements of the form (subProperty, rdfs:subPropertyOf, superProperty). </dd></dl> </div> </div> <a class="anchor" id="a2d17aead9bb12224c3686469bb6b439d"></a><!-- doxytag: member="Soprano::RdfSchemaModel::directType" ref="a2d17aead9bb12224c3686469bb6b439d" args="(const Node &someClass, const Node &someType) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classSoprano_1_1StatementIterator.html">StatementIterator</a> Soprano::RdfSchemaModel::directType </td> <td>(</td> <td class="paramtype">const <a class="el" href="classSoprano_1_1Node.html">Node</a> & </td> <td class="paramname"> <em>someClass</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>someType</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Gets all direct type relations with a specific instance and/or class.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>someClass</em> </td><td>The instance of the relations that should be returned, or an empty node if relations with any instance should be returned. </td></tr> <tr><td valign="top"></td><td valign="top"><em>someType</em> </td><td>The class of the relations that should be returned, or an empty node if relations with any class should be returned.</td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>A <a class="el" href="classSoprano_1_1StatementIterator.html" title="An iterator that provides a stream of Statements.">StatementIterator</a> containing statements of the form (someClass, rdf:type, someType). </dd></dl> </div> </div> <a class="anchor" id="ab33e35f047216b51e78a0fdb710ccd45"></a><!-- doxytag: member="Soprano::RdfSchemaModel::domain" ref="ab33e35f047216b51e78a0fdb710ccd45" args="(const Node &prop, const Node &domain) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classSoprano_1_1StatementIterator.html">StatementIterator</a> Soprano::RdfSchemaModel::domain </td> <td>(</td> <td class="paramtype">const <a class="el" href="classSoprano_1_1Node.html">Node</a> & </td> <td class="paramname"> <em>prop</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>domain</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Gets all domain relations with a specific property and/or domain class.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>prop</em> </td><td>The property of the relations that should be returned, or an empty node if relations with any property should be returned. </td></tr> <tr><td valign="top"></td><td valign="top"><em>domain</em> </td><td>The domain of the relations that should be returned, or an empty node if relations with any domain should be returned.</td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>A <a class="el" href="classSoprano_1_1StatementIterator.html" title="An iterator that provides a stream of Statements.">StatementIterator</a> containing statements of the form (prop, rdfs:domain, domain). </dd></dl> </div> </div> <a class="anchor" id="a90acaae8d00d37dc8af40fcd52766b7c"></a><!-- doxytag: member="Soprano::RdfSchemaModel::properties" ref="a90acaae8d00d37dc8af40fcd52766b7c" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classSoprano_1_1StatementIterator.html">StatementIterator</a> Soprano::RdfSchemaModel::properties </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Gets all defined properties.</p> <dl class="return"><dt><b>Returns:</b></dt><dd>A <a class="el" href="classSoprano_1_1StatementIterator.html" title="An iterator that provides a stream of Statements.">StatementIterator</a> containing statements of the form (someProperty, rdf:type, rdf:Property). </dd></dl> </div> </div> <a class="anchor" id="ab112a268139d89d8b58bba6a74cc68f7"></a><!-- doxytag: member="Soprano::RdfSchemaModel::range" ref="ab112a268139d89d8b58bba6a74cc68f7" args="(const Node &prop, const Node &range) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classSoprano_1_1StatementIterator.html">StatementIterator</a> Soprano::RdfSchemaModel::range </td> <td>(</td> <td class="paramtype">const <a class="el" href="classSoprano_1_1Node.html">Node</a> & </td> <td class="paramname"> <em>prop</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>range</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Gets all range relations with a specific property and/or range class.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>prop</em> </td><td>The property of the relations that should be returned, or an empty node if relations with any property should be returned. </td></tr> <tr><td valign="top"></td><td valign="top"><em>range</em> </td><td>The range of the relations that should be returned, or an empty node if relations with any range should be returned.</td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>A <a class="el" href="classSoprano_1_1StatementIterator.html" title="An iterator that provides a stream of Statements.">StatementIterator</a> containing statements of the form (prop, rdfs:range, range). </dd></dl> </div> </div> <a class="anchor" id="afdd24dbff28fd815b362fc129f4d5c00"></a><!-- doxytag: member="Soprano::RdfSchemaModel::subClassOf" ref="afdd24dbff28fd815b362fc129f4d5c00" args="(const Node &subClass, const Node &superClass=Node()) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classSoprano_1_1StatementIterator.html">StatementIterator</a> Soprano::RdfSchemaModel::subClassOf </td> <td>(</td> <td class="paramtype">const <a class="el" href="classSoprano_1_1Node.html">Node</a> & </td> <td class="paramname"> <em>subClass</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>superClass</em> = <code><a class="el" href="classSoprano_1_1Node.html">Node</a>()</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Gets all subClassOf relations with a specific sub- and/or superclass. Note that the subClassOf relation is reflexive: a class is implicitly always a subclass of itself.</p> <p>Do not use this method if the <a class="el" href="namespaceSoprano.html">Soprano</a> backend supports inferencing. Use directSubClassOf instead which is much faster.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>subClass</em> </td><td>The subclass of the relations that should be returned, or an empty node if relations with any subclass should be returned. </td></tr> <tr><td valign="top"></td><td valign="top"><em>superClass</em> </td><td>The superclass of the relations that should be returned, or an emtpy node if relations with any superclass should be returned.</td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>A <a class="el" href="classSoprano_1_1StatementIterator.html" title="An iterator that provides a stream of Statements.">StatementIterator</a> containing all valid statements of the form (subClass, rdfs:subClassOf, superClass) including those calculated through direct inferencing. </dd></dl> </div> </div> <a class="anchor" id="a7bb9b6b1b02b11bd73f58594658f3cc5"></a><!-- doxytag: member="Soprano::RdfSchemaModel::subPropertyOf" ref="a7bb9b6b1b02b11bd73f58594658f3cc5" args="(const Node &subProperty, const Node &superProperty=Node()) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classSoprano_1_1StatementIterator.html">StatementIterator</a> Soprano::RdfSchemaModel::subPropertyOf </td> <td>(</td> <td class="paramtype">const <a class="el" href="classSoprano_1_1Node.html">Node</a> & </td> <td class="paramname"> <em>subProperty</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>superProperty</em> = <code><a class="el" href="classSoprano_1_1Node.html">Node</a>()</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Gets all subPropertyOf relations with a specific sub- and/or superproperty. Note that the subPropertyOf relation is reflexive: a property is implicitly always a subproperty of itself.</p> <p>Do not use this method if the <a class="el" href="namespaceSoprano.html">Soprano</a> backend supports inferencing. Use directSubPropertyOf instead which is much faster.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>subProperty</em> </td><td>The subproperty of the relations that should be returned, or an empty node if relations with any subproperty should be returned. </td></tr> <tr><td valign="top"></td><td valign="top"><em>superProperty</em> </td><td>The superproperty of the relations that should be returned, or an empty node if relations with any superproperty should be returned.</td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>A <a class="el" href="classSoprano_1_1StatementIterator.html" title="An iterator that provides a stream of Statements.">StatementIterator</a> containing all valid statements of the form (subProperty, rdfs:subPropertyOf, superProperty) including those calculated through direct inferencing. </dd></dl> </div> </div> <a class="anchor" id="aee9317d0aaed9c442ede2f5647ddd338"></a><!-- doxytag: member="Soprano::RdfSchemaModel::type" ref="aee9317d0aaed9c442ede2f5647ddd338" args="(const Node &someClass, const Node &someType) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classSoprano_1_1StatementIterator.html">StatementIterator</a> Soprano::RdfSchemaModel::type </td> <td>(</td> <td class="paramtype">const <a class="el" href="classSoprano_1_1Node.html">Node</a> & </td> <td class="paramname"> <em>someClass</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>someType</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Gets all type relations with a specific instance and/or class.</p> <p>Do not use this method if the <a class="el" href="namespaceSoprano.html">Soprano</a> backend supports inferencing. Use directType instead which is much faster.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>someClass</em> </td><td>The instance of the relations that should be returned, or an empty node if relations with any instance should be returned. </td></tr> <tr><td valign="top"></td><td valign="top"><em>someType</em> </td><td>The class of the relations that should be returned, or an empty node if relations with any class should be returned.</td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>A <a class="el" href="classSoprano_1_1StatementIterator.html" title="An iterator that provides a stream of Statements.">StatementIterator</a> containing all valid statements of the form (someClass, rdf:type, someType) including those calculated through direct inferencing. </dd></dl> </div> </div> <a class="anchor" id="ae892cadf3cef3dd99fdaf6850c0e1a3a"></a><!-- doxytag: member="Soprano::RdfSchemaModel::isClass" ref="ae892cadf3cef3dd99fdaf6850c0e1a3a" args="(const Node &resource) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool Soprano::RdfSchemaModel::isClass </td> <td>(</td> <td class="paramtype">const <a class="el" href="classSoprano_1_1Node.html">Node</a> & </td> <td class="paramname"> <em>resource</em></td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Checks whether the supplied resource represents a class.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>resource</em> </td><td>The resource to check.</td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>true if resource is a class, false otherwise. </dd></dl> </div> </div> <a class="anchor" id="a52c847a592737dc41b05fb4e5fcb3e07"></a><!-- doxytag: member="Soprano::RdfSchemaModel::isProperty" ref="a52c847a592737dc41b05fb4e5fcb3e07" args="(const Node &resource) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool Soprano::RdfSchemaModel::isProperty </td> <td>(</td> <td class="paramtype">const <a class="el" href="classSoprano_1_1Node.html">Node</a> & </td> <td class="paramname"> <em>resource</em></td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Checks whether the supplied resource represents a property.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>resource</em> </td><td>The resource to check.</td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>true if resource is a property, false otherwise. </dd></dl> </div> </div> <a class="anchor" id="aa79ff66600d8f52fa8507561a36b04a6"></a><!-- doxytag: member="Soprano::RdfSchemaModel::isDirectSubClassOf" ref="aa79ff66600d8f52fa8507561a36b04a6" args="(const Node &subClass, const Node &superClass) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool Soprano::RdfSchemaModel::isDirectSubClassOf </td> <td>(</td> <td class="paramtype">const <a class="el" href="classSoprano_1_1Node.html">Node</a> & </td> <td class="paramname"> <em>subClass</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>superClass</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Checks whether one resource is a direct subclass of another.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>subClass</em> </td><td>A class. </td></tr> <tr><td valign="top"></td><td valign="top"><em>superClass</em> </td><td>A class.</td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>true if subClass is a direct subclass of superClass, false otherwise. </dd></dl> </div> </div> <a class="anchor" id="a7d757e8ef74e2de893d364679ea9e288"></a><!-- doxytag: member="Soprano::RdfSchemaModel::isDirectSubPropertyOf" ref="a7d757e8ef74e2de893d364679ea9e288" args="(const Node &subProperty, const Node &superProperty) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool Soprano::RdfSchemaModel::isDirectSubPropertyOf </td> <td>(</td> <td class="paramtype">const <a class="el" href="classSoprano_1_1Node.html">Node</a> & </td> <td class="paramname"> <em>subProperty</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>superProperty</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Checks whether one resource is a direct subproperty of another.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>subProperty</em> </td><td>A property. </td></tr> <tr><td valign="top"></td><td valign="top"><em>superProperty</em> </td><td>A property.</td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>true if subProperty is a direct subproperty of superProperty, false otherwise. </dd></dl> </div> </div> <a class="anchor" id="ab4b41cb5501548dd9b29bf7df8f3785c"></a><!-- doxytag: member="Soprano::RdfSchemaModel::isDirectType" ref="ab4b41cb5501548dd9b29bf7df8f3785c" args="(const Node &someClass, const Node &someType) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool Soprano::RdfSchemaModel::isDirectType </td> <td>(</td> <td class="paramtype">const <a class="el" href="classSoprano_1_1Node.html">Node</a> & </td> <td class="paramname"> <em>someClass</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>someType</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Checks whether one resource is a direct instance of another.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>someClass</em> </td><td>An instance. </td></tr> <tr><td valign="top"></td><td valign="top"><em>someType</em> </td><td>A class.</td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>true if someClass is a direct instance of someType, false otherwise. </dd></dl> </div> </div> <a class="anchor" id="a3436b7ed2a5fc207f06c88a35f698c0d"></a><!-- doxytag: member="Soprano::RdfSchemaModel::isSubClassOf" ref="a3436b7ed2a5fc207f06c88a35f698c0d" args="(const Node &subClass, const Node &superClass) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool Soprano::RdfSchemaModel::isSubClassOf </td> <td>(</td> <td class="paramtype">const <a class="el" href="classSoprano_1_1Node.html">Node</a> & </td> <td class="paramname"> <em>subClass</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>superClass</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Checks whether one resource is a subclass of another.</p> <p>Do not use this method if the <a class="el" href="namespaceSoprano.html">Soprano</a> backend supports inferencing. Use isDirectSubClassOf instead which is much faster.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>subClass</em> </td><td>A class. </td></tr> <tr><td valign="top"></td><td valign="top"><em>superClass</em> </td><td>A class.</td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>true if subClass is a subclass of superClass, false otherwise. </dd></dl> </div> </div> <a class="anchor" id="acf4a7a89fbfe56d6f8c4ac5ab24e2d36"></a><!-- doxytag: member="Soprano::RdfSchemaModel::isSubPropertyOf" ref="acf4a7a89fbfe56d6f8c4ac5ab24e2d36" args="(const Node &subProperty, const Node &superProperty) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool Soprano::RdfSchemaModel::isSubPropertyOf </td> <td>(</td> <td class="paramtype">const <a class="el" href="classSoprano_1_1Node.html">Node</a> & </td> <td class="paramname"> <em>subProperty</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>superProperty</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Checks whether one resource is a subproperty of another.</p> <p>Do not use this method if the <a class="el" href="namespaceSoprano.html">Soprano</a> backend supports inferencing. Use isDirectSubPropertyOf instead which is much faster.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>subProperty</em> </td><td>A property. </td></tr> <tr><td valign="top"></td><td valign="top"><em>superProperty</em> </td><td>A property.</td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>true if subProperty is a subproperty of superProperty, false otherwise. </dd></dl> </div> </div> <a class="anchor" id="a784890d65f6da67ff04cc09e392bb3c5"></a><!-- doxytag: member="Soprano::RdfSchemaModel::isType" ref="a784890d65f6da67ff04cc09e392bb3c5" args="(const Node &someClass, const Node &someType) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool Soprano::RdfSchemaModel::isType </td> <td>(</td> <td class="paramtype">const <a class="el" href="classSoprano_1_1Node.html">Node</a> & </td> <td class="paramname"> <em>someClass</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>someType</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Checks whether one resource is a instance of another.</p> <p>Do not use this method if the <a class="el" href="namespaceSoprano.html">Soprano</a> backend supports inferencing. Use isDirectType instead which is much faster.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>someClass</em> </td><td>An instance. </td></tr> <tr><td valign="top"></td><td valign="top"><em>someType</em> </td><td>A class.</td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>true if someClass is an instance of someType, false otherwise. </dd></dl> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li>/builddir/build/BUILD/soprano-2.5.2/soprano/<a class="el" href="rdfschemamodel_8h_source.html">rdfschemamodel.h</a></li> </ul> </div> <hr class="footer"/><address class="footer"><small>Generated on Thu Oct 21 2010 for Soprano by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address> </body> </html>