Sophie

Sophie

distrib > Fedora > 18 > x86_64 > by-pkgid > 56137fc01613c3216d40d3968a193ec8 > files > 187

soprano-apidocs-2.9.4-2.fc18.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"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.3.1"/>
<title>Soprano: Soprano::Parser Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Soprano
   &#160;<span id="projectnumber">2.9.4</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.3.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#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 class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceSoprano.html">Soprano</a></li><li class="navelem"><a class="el" href="classSoprano_1_1Parser.html">Parser</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="classSoprano_1_1Parser-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Soprano::Parser Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="classSoprano_1_1Parser.html" title="Soprano::Parser defines the interface for a Soprano RDF parser plugin.">Soprano::Parser</a> defines the interface for a <a class="el" href="namespaceSoprano.html">Soprano</a> RDF parser plugin.  
 <a href="classSoprano_1_1Parser.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="parser_8h_source.html">Soprano/Parser</a>&gt;</code></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for Soprano::Parser:</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_1Parser__inherit__graph.png" border="0" usemap="#Soprano_1_1Parser_inherit__map" alt="Inheritance graph"/></div>
<map name="Soprano_1_1Parser_inherit__map" id="Soprano_1_1Parser_inherit__map">
<area shape="rect" id="node2" href="classSoprano_1_1Plugin.html" title="Base class for all plugins in Soprano." alt="" coords="5,5,120,32"/><area shape="rect" id="node4" href="classSoprano_1_1Error_1_1ErrorCache.html" title="Core class of Soprano&#39;s exception system." alt="" coords="145,5,324,32"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<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:a9527ed9cc8ed1d8394b1db6759599dd8"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Parser.html#a9527ed9cc8ed1d8394b1db6759599dd8">~Parser</a> ()</td></tr>
<tr class="separator:a9527ed9cc8ed1d8394b1db6759599dd8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af405712d025ac44dc84a8ebb08ce12e1"><td class="memItemLeft" align="right" valign="top">virtual RdfSerializations&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Parser.html#af405712d025ac44dc84a8ebb08ce12e1">supportedSerializations</a> () const =0</td></tr>
<tr class="separator:af405712d025ac44dc84a8ebb08ce12e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a959905068e326d67a8acafc2b6bec6bf"><td class="memItemLeft" align="right" valign="top">virtual <a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qstringlist.html">QStringList</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Parser.html#a959905068e326d67a8acafc2b6bec6bf">supportedUserSerializations</a> () const </td></tr>
<tr class="separator:a959905068e326d67a8acafc2b6bec6bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3234187d202ace572674591d1eae6640"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Parser.html#a3234187d202ace572674591d1eae6640">supportsSerialization</a> (<a class="el" href="namespaceSoprano.html#a870b14710c2cc2b825b4b287f01a35e0">RdfSerialization</a> s, const <a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qstring.html">QString</a> &amp;userSerialization=<a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qstring.html">QString</a>()) const </td></tr>
<tr class="separator:a3234187d202ace572674591d1eae6640"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b40d4ccac0f5c65761fb3bc6686c11c"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classSoprano_1_1StatementIterator.html">StatementIterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Parser.html#a9b40d4ccac0f5c65761fb3bc6686c11c">parseFile</a> (const <a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qstring.html">QString</a> &amp;filename, const <a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qurl.html">QUrl</a> &amp;baseUri, <a class="el" href="namespaceSoprano.html#a870b14710c2cc2b825b4b287f01a35e0">RdfSerialization</a> serialization, const <a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qstring.html">QString</a> &amp;userSerialization=<a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qstring.html">QString</a>()) const </td></tr>
<tr class="separator:a9b40d4ccac0f5c65761fb3bc6686c11c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8a93e8e6ca7f5d0e6aa9ebcb668ba5d4"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classSoprano_1_1StatementIterator.html">StatementIterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Parser.html#a8a93e8e6ca7f5d0e6aa9ebcb668ba5d4">parseString</a> (const <a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qstring.html">QString</a> &amp;data, const <a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qurl.html">QUrl</a> &amp;baseUri, <a class="el" href="namespaceSoprano.html#a870b14710c2cc2b825b4b287f01a35e0">RdfSerialization</a> serialization, const <a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qstring.html">QString</a> &amp;userSerialization=<a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qstring.html">QString</a>()) const </td></tr>
<tr class="separator:a8a93e8e6ca7f5d0e6aa9ebcb668ba5d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae4365f6672482131b513e31f1e9362a0"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classSoprano_1_1StatementIterator.html">StatementIterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Parser.html#ae4365f6672482131b513e31f1e9362a0">parseStream</a> (<a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qtextstream.html">QTextStream</a> &amp;stream, const <a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qurl.html">QUrl</a> &amp;baseUri, <a class="el" href="namespaceSoprano.html#a870b14710c2cc2b825b4b287f01a35e0">RdfSerialization</a> serialization, const <a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qstring.html">QString</a> &amp;userSerialization=<a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qstring.html">QString</a>()) const =0</td></tr>
<tr class="separator:ae4365f6672482131b513e31f1e9362a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classSoprano_1_1Plugin"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classSoprano_1_1Plugin')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classSoprano_1_1Plugin.html">Soprano::Plugin</a></td></tr>
<tr class="memitem:aad89b8ea49ab54480aeb9e3d2da65899 inherit pub_methods_classSoprano_1_1Plugin"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Plugin.html#aad89b8ea49ab54480aeb9e3d2da65899">~Plugin</a> ()</td></tr>
<tr class="separator:aad89b8ea49ab54480aeb9e3d2da65899 inherit pub_methods_classSoprano_1_1Plugin"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af4b122812c4f0cbbb386673db5425532 inherit pub_methods_classSoprano_1_1Plugin"><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Plugin.html#af4b122812c4f0cbbb386673db5425532">pluginName</a> () const </td></tr>
<tr class="separator:af4b122812c4f0cbbb386673db5425532 inherit pub_methods_classSoprano_1_1Plugin"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8079e2eadef0f3d6f51648e2411c3c18 inherit pub_methods_classSoprano_1_1Plugin"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Plugin.html#a8079e2eadef0f3d6f51648e2411c3c18">isAvailable</a> () const </td></tr>
<tr class="separator:a8079e2eadef0f3d6f51648e2411c3c18 inherit pub_methods_classSoprano_1_1Plugin"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classSoprano_1_1Error_1_1ErrorCache"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classSoprano_1_1Error_1_1ErrorCache')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classSoprano_1_1Error_1_1ErrorCache.html">Soprano::Error::ErrorCache</a></td></tr>
<tr class="memitem:a221c4f14e558a840eafef24969f9257b inherit pub_methods_classSoprano_1_1Error_1_1ErrorCache"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Error_1_1ErrorCache.html#a221c4f14e558a840eafef24969f9257b">~ErrorCache</a> ()</td></tr>
<tr class="separator:a221c4f14e558a840eafef24969f9257b inherit pub_methods_classSoprano_1_1Error_1_1ErrorCache"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3251b8052cdf932d59a523ca215d21c9 inherit pub_methods_classSoprano_1_1Error_1_1ErrorCache"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classSoprano_1_1Error_1_1Error.html">Error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Error_1_1ErrorCache.html#a3251b8052cdf932d59a523ca215d21c9">lastError</a> () const </td></tr>
<tr class="separator:a3251b8052cdf932d59a523ca215d21c9 inherit pub_methods_classSoprano_1_1Error_1_1ErrorCache"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a3f13bf63b7168a7a7ca805bfc903080e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Parser.html#a3f13bf63b7168a7a7ca805bfc903080e">Parser</a> (const <a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qstring.html">QString</a> &amp;name)</td></tr>
<tr class="separator:a3f13bf63b7168a7a7ca805bfc903080e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_methods_classSoprano_1_1Plugin"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classSoprano_1_1Plugin')"><img src="closed.png" alt="-"/>&#160;Protected Member Functions inherited from <a class="el" href="classSoprano_1_1Plugin.html">Soprano::Plugin</a></td></tr>
<tr class="memitem:a98c9ab9f4a762252a3fc821567a05041 inherit pro_methods_classSoprano_1_1Plugin"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Plugin.html#a98c9ab9f4a762252a3fc821567a05041">Plugin</a> (const <a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qstring.html">QString</a> &amp;name)</td></tr>
<tr class="separator:a98c9ab9f4a762252a3fc821567a05041 inherit pro_methods_classSoprano_1_1Plugin"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_methods_classSoprano_1_1Error_1_1ErrorCache"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classSoprano_1_1Error_1_1ErrorCache')"><img src="closed.png" alt="-"/>&#160;Protected Member Functions inherited from <a class="el" href="classSoprano_1_1Error_1_1ErrorCache.html">Soprano::Error::ErrorCache</a></td></tr>
<tr class="memitem:aecfcbdbb2c85b37bf6f401d0a2003273 inherit pro_methods_classSoprano_1_1Error_1_1ErrorCache"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Error_1_1ErrorCache.html#aecfcbdbb2c85b37bf6f401d0a2003273">ErrorCache</a> ()</td></tr>
<tr class="separator:aecfcbdbb2c85b37bf6f401d0a2003273 inherit pro_methods_classSoprano_1_1Error_1_1ErrorCache"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a65f952db676de0a6a186ea872fca18b8 inherit pro_methods_classSoprano_1_1Error_1_1ErrorCache"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Error_1_1ErrorCache.html#a65f952db676de0a6a186ea872fca18b8">clearError</a> () const </td></tr>
<tr class="separator:a65f952db676de0a6a186ea872fca18b8 inherit pro_methods_classSoprano_1_1Error_1_1ErrorCache"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afd1a1eccaa2af733601eab1f019a8553 inherit pro_methods_classSoprano_1_1Error_1_1ErrorCache"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Error_1_1ErrorCache.html#afd1a1eccaa2af733601eab1f019a8553">setError</a> (const <a class="el" href="classSoprano_1_1Error_1_1Error.html">Error</a> &amp;) const </td></tr>
<tr class="separator:afd1a1eccaa2af733601eab1f019a8553 inherit pro_methods_classSoprano_1_1Error_1_1ErrorCache"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a131a337c9dbfa3a734f48cb589c4b761 inherit pro_methods_classSoprano_1_1Error_1_1ErrorCache"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Error_1_1ErrorCache.html#a131a337c9dbfa3a734f48cb589c4b761">setError</a> (const <a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qstring.html">QString</a> &amp;<a class="el" href="namespaceSoprano_1_1Error.html#a1033e633e36396e92f1ceaedc939e502">errorMessage</a>, int code=<a class="el" href="namespaceSoprano_1_1Error.html#aef1bd25c5b6705951735e0fb5c5ff525a2ca96b602ece4de291a083e2c1958227">ErrorUnknown</a>) const </td></tr>
<tr class="separator:a131a337c9dbfa3a734f48cb589c4b761 inherit pro_methods_classSoprano_1_1Error_1_1ErrorCache"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="classSoprano_1_1Parser.html" title="Soprano::Parser defines the interface for a Soprano RDF parser plugin.">Soprano::Parser</a> defines the interface for a <a class="el" href="namespaceSoprano.html">Soprano</a> RDF parser plugin. </p>
<p>Each parser plugin may support multiple RDF serializations (<a class="el" href="classSoprano_1_1Parser.html#af405712d025ac44dc84a8ebb08ce12e1">supportedSerializations()</a>).</p>
<h1><a class="anchor" id="Usage"></a>
Usage</h1>
<p>Using a <a class="el" href="classSoprano_1_1Parser.html" title="Soprano::Parser defines the interface for a Soprano RDF parser plugin.">Parser</a> is straightforward. One starts by getting a plugin that supports the requested RDF data serialization:</p>
<div class="fragment"><div class="line"><span class="keyword">const</span> <a class="code" href="classSoprano_1_1Parser.html" title="Soprano::Parser defines the interface for a Soprano RDF parser plugin.">Soprano::Parser</a>* p = <a class="code" href="classSoprano_1_1PluginManager.html#a922c00336d39542a289e9b82a39e25b2">Soprano::PluginManager::instance</a>()-&gt;<a class="code" href="classSoprano_1_1PluginManager.html#a79779172e78d0f208c3dad45d463c7fd">discoverParserForSerialization</a>( <a class="code" href="namespaceSoprano.html#a870b14710c2cc2b825b4b287f01a35e0a1e1568be674d28e0e0712e8a36dca70f">Soprano::SerializationRdfXml</a> );</div>
</div><!-- fragment --><p>Then parsing RDF data is done in a single method call resulting in a <a class="el" href="classSoprano_1_1StatementIterator.html" title="An iterator that provides a stream of Statements.">StatementIterator</a> over the resulting graph (since parsers may support multiple serializations one always needs to provide the serialization type unless a parser plugin support autodetection).</p>
<div class="fragment"><div class="line"><a class="code" href="classSoprano_1_1StatementIterator.html" title="An iterator that provides a stream of Statements.">Soprano::StatementIterator</a> it = p-&gt;<a class="code" href="classSoprano_1_1Parser.html#a9b40d4ccac0f5c65761fb3bc6686c11c">parseFile</a>( <span class="stringliteral">&quot;myrdffile.rdf&quot;</span>, <a class="code" href="namespaceSoprano.html#a870b14710c2cc2b825b4b287f01a35e0a1e1568be674d28e0e0712e8a36dca70f">Soprano::SerializationRdfXml</a> );</div>
</div><!-- fragment --><dl class="section see"><dt>See Also</dt><dd><a class="el" href="soprano_writing_plugins.html">Writing Soprano Plugins</a></dd></dl>
<dl class="section author"><dt>Author</dt><dd>Daniele Galdi <a href="#" onclick="location.href='mai'+'lto:'+'dan'+'ie'+'le.'+'ga'+'ldi'+'@g'+'mai'+'l.'+'com'; return false;">danie<span style="display: none;">.nosp@m.</span>le.g<span style="display: none;">.nosp@m.</span>aldi@<span style="display: none;">.nosp@m.</span>gmai<span style="display: none;">.nosp@m.</span>l.com</a><br/>
Sebastian Trueg <a href="#" onclick="location.href='mai'+'lto:'+'tru'+'eg'+'@kd'+'e.'+'org'; return false;">trueg<span style="display: none;">.nosp@m.</span>@kde<span style="display: none;">.nosp@m.</span>.org</a> </dd></dl>

<p>Definition at line <a class="el" href="parser_8h_source.html#l00069">69</a> of file <a class="el" href="parser_8h_source.html">parser.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a9527ed9cc8ed1d8394b1db6759599dd8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual Soprano::Parser::~Parser </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">

</div>
</div>
<a class="anchor" id="a3f13bf63b7168a7a7ca805bfc903080e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Soprano::Parser::Parser </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="af405712d025ac44dc84a8ebb08ce12e1"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual RdfSerializations Soprano::Parser::supportedSerializations </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">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>The serialiazation types supported by this parser. </p>
<dl class="section return"><dt>Returns</dt><dd>A combination of <a class="el" href="namespaceSoprano.html#a870b14710c2cc2b825b4b287f01a35e0">Soprano::RdfSerialization</a> types. If the list contains <a class="el" href="namespaceSoprano.html#a870b14710c2cc2b825b4b287f01a35e0a45b9210a9b125009dfee9ac20af126d3">Soprano::SerializationUser</a> the parser supports additional RDF serializations not officially supported by Soprano. </dd></dl>

</div>
</div>
<a class="anchor" id="a959905068e326d67a8acafc2b6bec6bf"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qstringlist.html">QStringList</a> Soprano::Parser::supportedUserSerializations </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 parser can support additional RDF serializations that are not defined in <a class="el" href="namespaceSoprano.html#a870b14710c2cc2b825b4b287f01a35e0">Soprano::RdfSerialization</a>. In that case <a class="el" href="classSoprano_1_1Parser.html#af405712d025ac44dc84a8ebb08ce12e1">supportedSerializations()</a> has to include <a class="el" href="namespaceSoprano.html#a870b14710c2cc2b825b4b287f01a35e0a45b9210a9b125009dfee9ac20af126d3">Soprano::SerializationUser</a>.</p>
<p>The default implementation returns an empty list.</p>
<dl class="section return"><dt>Returns</dt><dd>A list of supported user RDF serializations. </dd></dl>

</div>
</div>
<a class="anchor" id="a3234187d202ace572674591d1eae6640"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Soprano::Parser::supportsSerialization </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceSoprano.html#a870b14710c2cc2b825b4b287f01a35e0">RdfSerialization</a>&#160;</td>
          <td class="paramname"><em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>userSerialization</em> = <code><a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qstring.html">QString</a>()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Check if a plugin supports a specific serialization.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">s</td><td>The requested serialization. </td></tr>
    <tr><td class="paramname">userSerialization</td><td>If serialization is set to <a class="el" href="namespaceSoprano.html#a870b14710c2cc2b825b4b287f01a35e0a45b9210a9b125009dfee9ac20af126d3">Soprano::SerializationUser</a> this parameter specifies the requested serialization. It allows the extension of the Soprano <a class="el" href="classSoprano_1_1Parser.html" title="Soprano::Parser defines the interface for a Soprano RDF parser plugin.">Parser</a> interface with new RDF serializations that are not officially supported by Soprano.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if the parser is able to parse RDF data encoded in serialization s, <code>false</code> otherwise. </dd></dl>

</div>
</div>
<a class="anchor" id="a9b40d4ccac0f5c65761fb3bc6686c11c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classSoprano_1_1StatementIterator.html">StatementIterator</a> Soprano::Parser::parseFile </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>filename</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qurl.html">QUrl</a> &amp;&#160;</td>
          <td class="paramname"><em>baseUri</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceSoprano.html#a870b14710c2cc2b825b4b287f01a35e0">RdfSerialization</a>&#160;</td>
          <td class="paramname"><em>serialization</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>userSerialization</em> = <code><a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qstring.html">QString</a>()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</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>Parse an RDF model which has been serialized in a file, using the supplied baseURI to resolve any relative URI references.</p>
<p>The default implementation simply calls <a class="el" href="classSoprano_1_1Parser.html#ae4365f6672482131b513e31f1e9362a0">parseStream()</a> on an opened <a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qfile.html">QFile</a> instance.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">filename</td><td>The name (path) of the file to parse </td></tr>
    <tr><td class="paramname">baseUri</td><td>The base URI to be used for relative references. </td></tr>
    <tr><td class="paramname">serialization</td><td>The serialization used in the file. </td></tr>
    <tr><td class="paramname">userSerialization</td><td>If serialization is set to <a class="el" href="namespaceSoprano.html#a870b14710c2cc2b825b4b287f01a35e0a45b9210a9b125009dfee9ac20af126d3">Soprano::SerializationUser</a> this parameter specifies the serialization to use. It allows the extension of the Soprano <a class="el" href="classSoprano_1_1Parser.html" title="Soprano::Parser defines the interface for a Soprano RDF parser plugin.">Parser</a> interface with new RDF serializations that are not officially supported by Soprano.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>An iterator that iterates over the result statements. </dd></dl>

</div>
</div>
<a class="anchor" id="a8a93e8e6ca7f5d0e6aa9ebcb668ba5d4"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classSoprano_1_1StatementIterator.html">StatementIterator</a> Soprano::Parser::parseString </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qurl.html">QUrl</a> &amp;&#160;</td>
          <td class="paramname"><em>baseUri</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceSoprano.html#a870b14710c2cc2b825b4b287f01a35e0">RdfSerialization</a>&#160;</td>
          <td class="paramname"><em>serialization</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>userSerialization</em> = <code><a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qstring.html">QString</a>()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</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>Parse an RDF model which has been serialized into a string, using the supplied baseURI to resolve any relative URI references.</p>
<p>The default implementation simply calls <a class="el" href="classSoprano_1_1Parser.html#ae4365f6672482131b513e31f1e9362a0">parseStream()</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">data</td><td>The serialized RDF string. </td></tr>
    <tr><td class="paramname">baseUri</td><td>The base URI to be used for relative references. </td></tr>
    <tr><td class="paramname">serialization</td><td>The serialization used for the string data. </td></tr>
    <tr><td class="paramname">userSerialization</td><td>If serialization is set to <a class="el" href="namespaceSoprano.html#a870b14710c2cc2b825b4b287f01a35e0a45b9210a9b125009dfee9ac20af126d3">Soprano::SerializationUser</a> this parameter specifies the serialization to use. It allows the extension of the Soprano <a class="el" href="classSoprano_1_1Parser.html" title="Soprano::Parser defines the interface for a Soprano RDF parser plugin.">Parser</a> interface with new RDF serializations that are not officially supported by Soprano.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>An iterator that iterates over the result statements. </dd></dl>

</div>
</div>
<a class="anchor" id="ae4365f6672482131b513e31f1e9362a0"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classSoprano_1_1StatementIterator.html">StatementIterator</a> Soprano::Parser::parseStream </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qtextstream.html">QTextStream</a> &amp;&#160;</td>
          <td class="paramname"><em>stream</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qurl.html">QUrl</a> &amp;&#160;</td>
          <td class="paramname"><em>baseUri</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceSoprano.html#a870b14710c2cc2b825b4b287f01a35e0">RdfSerialization</a>&#160;</td>
          <td class="paramname"><em>serialization</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>userSerialization</em> = <code><a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qstring.html">QString</a>()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Read a serialized RDF model from a test stream, using the supplied baseURI to resolve any relative URI references.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">stream</td><td>The text stream to read the serialized RDF data from. </td></tr>
    <tr><td class="paramname">baseUri</td><td>The base URI to be used for relative references. </td></tr>
    <tr><td class="paramname">serialization</td><td>The serialization used for the string data from the stream. </td></tr>
    <tr><td class="paramname">userSerialization</td><td>If serialization is set to <a class="el" href="namespaceSoprano.html#a870b14710c2cc2b825b4b287f01a35e0a45b9210a9b125009dfee9ac20af126d3">Soprano::SerializationUser</a> this parameter specifies the serialization to use. It allows the extension of the Soprano <a class="el" href="classSoprano_1_1Parser.html" title="Soprano::Parser defines the interface for a Soprano RDF parser plugin.">Parser</a> interface with new RDF serializations that are not officially supported by Soprano.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>An iterator that iterates over the result statements. </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>/builddir/build/BUILD/soprano-2.9.4/soprano/<a class="el" href="parser_8h_source.html">parser.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.3.1
</small></address>
</body>
</html>