Sophie

Sophie

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

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: RDF Storage</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 class="current"><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><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="index.html">Soprano (aka QRDF) - A modular RDF storage framework</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">RDF Storage </div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><p>The central class in <a class="el" href="namespaceSoprano.html">Soprano</a> is <a class="el" href="classSoprano_1_1Model.html" title="A Model is the central class in Soprano. It is a queryable collection of RDF quadruples, i.e statements.">Soprano::Model</a> which represents an RDF repository. Model provides methods to add, remove, and list statements and to query the repository.</p>
<p>The actual work is done by storage plugins (<a class="el" href="classSoprano_1_1Backend.html" title="Soprano::Backend defines the interface for a Soprano backend plugin.">Soprano::Backend</a>).</p>
<p>Model instances are mostly created by the plugin implementations through the <a class="el" href="classSoprano_1_1Backend.html#abe4347c68662b53fc2f709b4536febb2">Soprano::Backend::createModel()</a> methods. In the most simple case one does not need to bother with <a class="el" href="classSoprano_1_1Backend.html" title="Soprano::Backend defines the interface for a Soprano backend plugin.">Soprano::Backend</a> though, as the basic methods are duplicated in the <a class="el" href="namespaceSoprano.html">Soprano</a> namespace. Thus, to create a simple memory model using the default Soprano backend:</p>
<div class="fragment"><div class="line"><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.">Soprano::Model</a> m = <a class="code" href="namespaceSoprano.html#a66f765cf9fd9aae07f874fdb8867dd1c">Soprano::createModel</a>();</div>
</div><!-- fragment --><p>Finer grained control can be achieved by using the Backend directly:</p>
<div class="fragment"><div class="line"><a class="code" href="classSoprano_1_1Backend.html" title="Soprano::Backend defines the interface for a Soprano backend plugin.">Soprano::Backend</a>* backend = <a class="code" href="namespaceSoprano.html#aeed48e726dae9828430ed9b397310481">Soprano::discoverBackendByName</a>( <span class="stringliteral">&quot;redland&quot;</span> );</div>
<div class="line"><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.">Soprano::Model</a>* model = backend-&gt;<a class="code" href="classSoprano_1_1Backend.html#abe4347c68662b53fc2f709b4536febb2">createModel</a>();</div>
</div><!-- fragment --><p>Soprano makes use of contexts, i.e. named graphs. Thus, statements as represented by <a class="el" href="classSoprano_1_1Statement.html" title="A Statement instance represents one RDF quadruple.">Soprano::Statement</a> are actually RDF quadruples.</p>
<p>For further details on <a class="el" href="classSoprano_1_1Model.html" title="A Model is the central class in Soprano. It is a queryable collection of RDF quadruples, i.e statements.">Soprano::Model</a> usage see the class and method documentation.</p>
<p>For details on existing backends see: </p>
<ul>
<li><a class="el" href="soprano_backends.html">Soprano Backends</a> </li>
</ul>
</div></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>