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

NepomukDaemons

Nepomuk::MainModel

Nepomuk::MainModel Class Reference

#include <nepomukmainmodel.h>

Inheritance diagram for Nepomuk::MainModel:

Inheritance graph
[legend]

List of all members.


Detailed Description

The main Nepomuk data storage model.

All user data is stored in the Nepomuk main model. This is a wrapper model which communicates all commands to the Nepomuk server.

Author:
Sebastian Trueg <trueg@kde.org>

Definition at line 48 of file nepomukmainmodel.h.


Public Member Functions

Soprano::Error::ErrorCode addStatement (const Soprano::Statement &statement)
bool containsAnyStatement (const Soprano::Statement &statement) const
bool containsStatement (const Soprano::Statement &statement) const
Soprano::Node createBlankNode ()
Soprano::QueryResultIterator executeQuery (const QString &query, Soprano::Query::QueryLanguage language, const QString &userQueryLanguage=QString()) const
bool isEmpty () const
bool isValid () const
Soprano::NodeIterator listContexts () const
Soprano::StatementIterator listStatements (const Soprano::Statement &partial) const
 MainModel (QObject *parent=0)
Soprano::Error::ErrorCode removeAllStatements (const Soprano::Statement &statement)
Soprano::Error::ErrorCode removeStatement (const Soprano::Statement &statement)
int statementCount () const
 ~MainModel ()

Constructor & Destructor Documentation

Nepomuk::MainModel::MainModel ( QObject *  parent = 0  ) 

Create a new main model.

Definition at line 56 of file nepomukmainmodel.cpp.

Nepomuk::MainModel::~MainModel (  ) 

Destructor.

Definition at line 69 of file nepomukmainmodel.cpp.


Member Function Documentation

Soprano::Error::ErrorCode Nepomuk::MainModel::addStatement ( const Soprano::Statement &  statement  ) 

bool Nepomuk::MainModel::containsAnyStatement ( const Soprano::Statement &  statement  )  const

bool Nepomuk::MainModel::containsStatement ( const Soprano::Statement &  statement  )  const

Soprano::Node Nepomuk::MainModel::createBlankNode (  ) 

Definition at line 214 of file nepomukmainmodel.cpp.

Soprano::QueryResultIterator Nepomuk::MainModel::executeQuery ( const QString &  query,
Soprano::Query::QueryLanguage  language,
const QString &  userQueryLanguage = QString() 
) const

Definition at line 148 of file nepomukmainmodel.cpp.

bool Nepomuk::MainModel::isEmpty (  )  const

Definition at line 174 of file nepomukmainmodel.cpp.

bool Nepomuk::MainModel::isValid (  )  const

Check the connection to the Nepomuk server.

Returns:
true if the connection is valid and commands can be issued, false otherwise.

Definition at line 126 of file nepomukmainmodel.cpp.

Soprano::NodeIterator Nepomuk::MainModel::listContexts (  )  const

Definition at line 140 of file nepomukmainmodel.cpp.

Soprano::StatementIterator Nepomuk::MainModel::listStatements ( const Soprano::Statement &  partial  )  const

Soprano::Error::ErrorCode Nepomuk::MainModel::removeAllStatements ( const Soprano::Statement &  statement  ) 

Soprano::Error::ErrorCode Nepomuk::MainModel::removeStatement ( const Soprano::Statement &  statement  ) 

int Nepomuk::MainModel::statementCount (  )  const

Definition at line 182 of file nepomukmainmodel.cpp.


The documentation for this class was generated from the following files:
  • nepomukmainmodel.h
  • nepomukmainmodel.cpp

NepomukDaemons

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

API Reference

Skip menu "API Reference"
  • KCMShell
  • KNotify
  • KStyles
  • Nepomuk Daemons
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