NepomukDaemons
Nepomuk::MainModel Class Reference
#include <nepomukmainmodel.h>
Inheritance diagram for Nepomuk::MainModel:

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.
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 |
) |
Nepomuk::MainModel::~MainModel | ( | ) |
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: