Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 5b6c31d6428e1f6ea754ea6f7b1aed6e > files > 814

soprano-apidocs-2.6.0-2.fc14.noarch.rpm

<!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: /builddir/build/BUILD/soprano-2.6.0/client/sparql/sparqlmodel.h Source File</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.3 -->
<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 id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Soprano&#160;<span id="projectnumber">2.6.0</span></div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<h1>/builddir/build/BUILD/soprano-2.6.0/client/sparql/sparqlmodel.h</h1>  </div>
</div>
<div class="contents">
<a href="sparqlmodel_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment"> * This file is part of Soprano Project.</span>
<a name="l00003"></a>00003 <span class="comment"> *</span>
<a name="l00004"></a>00004 <span class="comment"> * Copyright (C) 2007 Rajeev J Sebastian &lt;rajeev.sebastian@gmail.com&gt;</span>
<a name="l00005"></a>00005 <span class="comment"> * Copyright (C) 2008-2009 Sebastian Trueg &lt;trueg@kde.org&gt;</span>
<a name="l00006"></a>00006 <span class="comment"> *</span>
<a name="l00007"></a>00007 <span class="comment"> * This library is free software; you can redistribute it and/or</span>
<a name="l00008"></a>00008 <span class="comment"> * modify it under the terms of the GNU Library General Public</span>
<a name="l00009"></a>00009 <span class="comment"> * License as published by the Free Software Foundation; either</span>
<a name="l00010"></a>00010 <span class="comment"> * version 2 of the License, or (at your option) any later version.</span>
<a name="l00011"></a>00011 <span class="comment"> *</span>
<a name="l00012"></a>00012 <span class="comment"> * This library is distributed in the hope that it will be useful,</span>
<a name="l00013"></a>00013 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>
<a name="l00015"></a>00015 <span class="comment"> * Library General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment"> *</span>
<a name="l00017"></a>00017 <span class="comment"> * You should have received a copy of the GNU Library General Public License</span>
<a name="l00018"></a>00018 <span class="comment"> * along with this library; see the file COPYING.LIB.  If not, write to</span>
<a name="l00019"></a>00019 <span class="comment"> * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
<a name="l00020"></a>00020 <span class="comment"> * Boston, MA 02110-1301, USA.</span>
<a name="l00021"></a>00021 <span class="comment"> */</span>
<a name="l00022"></a>00022 
<a name="l00023"></a>00023 <span class="preprocessor">#ifndef _SOPRANO_SPARQL_MODEL_H_</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span><span class="preprocessor">#define _SOPRANO_SPARQL_MODEL_H_</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &quot;model.h&quot;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &quot;soprano_export.h&quot;</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &quot;asyncresult.h&quot;</span>
<a name="l00029"></a>00029 
<a name="l00030"></a>00030 
<a name="l00031"></a>00031 <span class="keyword">namespace </span>Soprano {
<a name="l00032"></a>00032     <span class="keyword">namespace </span>Client {
<a name="l00050"></a><a class="code" href="classSoprano_1_1Client_1_1SparqlModel.html">00050</a>         <span class="keyword">class </span><a class="code" href="soprano__export_8h.html#a03d454c106b8245f2252d64968748138">SOPRANO_CLIENT_EXPORT</a> <a class="code" href="classSoprano_1_1Client_1_1SparqlModel.html" title="Remote client Model for Http SPARQL end points.">SparqlModel</a> : <span class="keyword">public</span> Soprano::<a class="code" 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>
<a name="l00051"></a>00051         {
<a name="l00052"></a>00052             Q_OBJECT
<a name="l00053"></a>00053 
<a name="l00054"></a>00054         <span class="keyword">public</span>:
<a name="l00066"></a>00066             <a class="code" href="classSoprano_1_1Client_1_1SparqlModel.html" title="Remote client Model for Http SPARQL end points.">SparqlModel</a>( <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>&amp; host = <a class="codeRef" href="qstring.html">QString</a>(),
<a name="l00067"></a>00067                          quint16 port = 80,
<a name="l00068"></a>00068                          <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>&amp; user = <a class="codeRef" href="qstring.html">QString</a>(),
<a name="l00069"></a>00069                          <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>&amp; password = <a class="codeRef" href="qstring.html">QString</a>() );
<a name="l00070"></a>00070 
<a name="l00074"></a>00074             ~<a class="code" href="classSoprano_1_1Client_1_1SparqlModel.html" title="Remote client Model for Http SPARQL end points.">SparqlModel</a>();
<a name="l00075"></a>00075 
<a name="l00077"></a>00077 
<a name="l00084"></a>00084             <span class="keywordtype">void</span> setHost( <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>&amp; host, quint16 port = 80 );
<a name="l00085"></a>00085 
<a name="l00093"></a>00093             <span class="keywordtype">void</span> setUser( <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>&amp; user, <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>&amp; password = <a class="codeRef" href="qstring.html">QString</a>() );
<a name="l00094"></a>00094 
<a name="l00102"></a>00102             <span class="keywordtype">void</span> setPath( <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>&amp; path );
<a name="l00104"></a>00104 
<a name="l00106"></a>00106 
<a name="l00117"></a>00117             <a class="code" href="namespaceSoprano_1_1Error.html#aef1bd25c5b6705951735e0fb5c5ff525">Error::ErrorCode</a> addStatement( <span class="keyword">const</span> <a class="code" href="classSoprano_1_1Statement.html" title="A Statement instance represents one RDF quadruple.">Statement</a>&amp; statement );
<a name="l00118"></a>00118 
<a name="l00130"></a>00130             <a class="code" href="namespaceSoprano_1_1Error.html#aef1bd25c5b6705951735e0fb5c5ff525">Error::ErrorCode</a> removeStatement( <span class="keyword">const</span> <a class="code" href="classSoprano_1_1Statement.html" title="A Statement instance represents one RDF quadruple.">Statement</a>&amp; statement );
<a name="l00131"></a>00131 
<a name="l00145"></a>00145             <a class="code" href="namespaceSoprano_1_1Error.html#aef1bd25c5b6705951735e0fb5c5ff525">Error::ErrorCode</a> removeAllStatements( <span class="keyword">const</span> <a class="code" href="classSoprano_1_1Statement.html" title="A Statement instance represents one RDF quadruple.">Statement</a>&amp; statement );
<a name="l00147"></a>00147 
<a name="l00149"></a>00149 
<a name="l00152"></a>00152             <a class="code" href="classSoprano_1_1StatementIterator.html" title="An iterator that provides a stream of Statements.">Soprano::StatementIterator</a> listStatements( <span class="keyword">const</span> <a class="code" href="classSoprano_1_1Statement.html" title="A Statement instance represents one RDF quadruple.">Statement</a>&amp; partial ) <span class="keyword">const</span>;
<a name="l00153"></a>00153 
<a name="l00164"></a>00164             <a class="code" href="classSoprano_1_1Util_1_1AsyncResult.html" title="A delayed result as returned by AsyncModel.">Soprano::Util::AsyncResult</a>* listStatementsAsync( <span class="keyword">const</span> <a class="code" href="classSoprano_1_1Statement.html" title="A Statement instance represents one RDF quadruple.">Statement</a>&amp; statement ) <span class="keyword">const</span>;
<a name="l00165"></a>00165 
<a name="l00177"></a>00177             <a class="code" href="classSoprano_1_1QueryResultIterator.html" title="An iterator for query results.">Soprano::QueryResultIterator</a> executeQuery( <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>&amp; query,
<a name="l00178"></a>00178                                                        <a class="code" href="namespaceSoprano_1_1Query.html#ab568869993a9d6c452c8e5a34d5ac26c">Query::QueryLanguage</a> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1Xesam.html#a24eb968dfba3510cc343904910f0059d">language</a> = <a class="code" href="namespaceSoprano_1_1Query.html#ab568869993a9d6c452c8e5a34d5ac26ca619ecf57d183bffe04ebf81089031334">Query::QueryLanguageSparql</a>,
<a name="l00179"></a>00179                                                        <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>&amp; userQueryLanguage = <a class="codeRef" href="qstring.html">QString</a>() ) <span class="keyword">const</span>;
<a name="l00180"></a>00180 
<a name="l00181"></a>00181 
<a name="l00182"></a>00182 
<a name="l00196"></a>00196             <a class="code" href="classSoprano_1_1Util_1_1AsyncResult.html" title="A delayed result as returned by AsyncModel.">Soprano::Util::AsyncResult</a>* executeQueryAsync( <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>&amp; query,
<a name="l00197"></a>00197                                                            <a class="code" href="namespaceSoprano_1_1Query.html#ab568869993a9d6c452c8e5a34d5ac26c">Query::QueryLanguage</a> <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1Xesam.html#a24eb968dfba3510cc343904910f0059d">language</a> = <a class="code" href="namespaceSoprano_1_1Query.html#ab568869993a9d6c452c8e5a34d5ac26ca619ecf57d183bffe04ebf81089031334">Query::QueryLanguageSparql</a>,
<a name="l00198"></a>00198                                                            <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>&amp; userQueryLanguage = <a class="codeRef" href="qstring.html">QString</a>() ) <span class="keyword">const</span>;
<a name="l00199"></a>00199 
<a name="l00203"></a>00203             <a class="code" href="classSoprano_1_1NodeIterator.html" title="An iterator that provides a stream of Nodes.">NodeIterator</a> listContexts() <span class="keyword">const</span>;
<a name="l00204"></a>00204 
<a name="l00215"></a>00215             <a class="code" href="classSoprano_1_1Util_1_1AsyncResult.html" title="A delayed result as returned by AsyncModel.">Soprano::Util::AsyncResult</a>* listContextsAsync() <span class="keyword">const</span>;
<a name="l00216"></a>00216 
<a name="l00220"></a>00220             <span class="keywordtype">bool</span> containsStatement( <span class="keyword">const</span> <a class="code" href="classSoprano_1_1Statement.html" title="A Statement instance represents one RDF quadruple.">Statement</a>&amp; statement ) <span class="keyword">const</span>;
<a name="l00221"></a>00221 
<a name="l00225"></a>00225             <span class="keywordtype">bool</span> containsAnyStatement( <span class="keyword">const</span> <a class="code" href="classSoprano_1_1Statement.html" title="A Statement instance represents one RDF quadruple.">Statement</a>&amp; statement ) <span class="keyword">const</span>;
<a name="l00227"></a>00227 
<a name="l00229"></a>00229 
<a name="l00234"></a>00234             <span class="keywordtype">int</span> statementCount() <span class="keyword">const</span>;
<a name="l00235"></a>00235 
<a name="l00241"></a>00241             <span class="keywordtype">bool</span> isEmpty() <span class="keyword">const</span>;
<a name="l00243"></a>00243 
<a name="l00249"></a>00249             <a class="code" href="classSoprano_1_1Node.html" title="A Node represents one RDF resource.">Node</a> createBlankNode();
<a name="l00250"></a>00250 
<a name="l00251"></a>00251             <span class="keyword">using</span> <a class="code" href="classSoprano_1_1Model.html#aed5b923235288fbac997850cca8f6053">Model::addStatement</a>;
<a name="l00252"></a>00252             <span class="keyword">using</span> <a class="code" href="classSoprano_1_1Model.html#ad5952940a5e589bd70fc794d434e0f63">Model::removeStatement</a>;
<a name="l00253"></a>00253             <span class="keyword">using</span> <a class="code" href="classSoprano_1_1Model.html#ad24bce8972e94eeaa15d811131204394">Model::removeAllStatements</a>;
<a name="l00254"></a>00254             <span class="keyword">using</span> <a class="code" href="classSoprano_1_1Model.html#a3731d8cd907919b237d0ba2f93d9b572">Model::listStatements</a>;
<a name="l00255"></a>00255             <span class="keyword">using</span> <a class="code" href="classSoprano_1_1Model.html#a0194c85c892ab3661d1932fca610310e">Model::containsStatement</a>;
<a name="l00256"></a>00256             <span class="keyword">using</span> <a class="code" href="classSoprano_1_1Model.html#ab27c0414afb36a63e7bac1948293789f">Model::containsAnyStatement</a>;
<a name="l00257"></a>00257 
<a name="l00258"></a>00258         <span class="keyword">private</span> Q_SLOTS:
<a name="l00259"></a>00259             <span class="keywordtype">void</span> slotRequestFinished( <span class="keywordtype">int</span> <span class="keywordtype">id</span>, <span class="keywordtype">bool</span> error, <span class="keyword">const</span> <a class="codeRef" href="qbytearray.html">QByteArray</a>&amp; data );
<a name="l00260"></a>00260 
<a name="l00261"></a>00261         <span class="keyword">private</span>:
<a name="l00262"></a>00262             <span class="keyword">class </span>Private;
<a name="l00263"></a>00263             Private* <span class="keyword">const</span> d;
<a name="l00264"></a>00264         };
<a name="l00265"></a>00265     }
<a name="l00266"></a>00266 }
<a name="l00267"></a>00267 
<a name="l00268"></a>00268 <span class="preprocessor">#endif</span>
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Fri Mar 11 2011 for Soprano by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>
</body>
</html>