• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

soprano

RDF Storage

The central class in Soprano is Soprano::Model which represents an RDF repository.

Model provides methods to add, remove, and list statements and to query the repository.

The actual work is done by storage plugins (Soprano::Backend).

Model instances are mostly created by the plugin implementations through the Soprano::Backend::createModel() methods. In the most simple case one does not need to bother with Soprano::Backend though as the basic methods are duplicated in the Soprano namespace. Thus, to create a simple memory model using the default Soprano backend:

 Soprano::Model m = Soprano::createModel();

Finer grained control can be achieved by using the Backend directly:

 Soprano::Backend* backend = Soprano::discoverBackendByName( "redland" );
 Soprano::Model* model = backend->createModel();

Soprano makes use of contexts, i.e. named graphs. Thus, statements as represented by Soprano::Statement are actually RDF quadruples.

For further details on Soprano::Model usage see the class and method documentation.

soprano

Skip menu "soprano"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • akonadi
  • Decibel
  • eigen
  • Eigen2
  • kdewin32
  • Phonon
  •     Backend
  • qca
  • qimageblitz
  • soprano
  • strigi
  •     searchclient
  •     streamanalyzer
  •     streams
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal