DummyModel Class Reference
from PyKDE4.soprano import *
Inherits: Soprano.Model → QObject
Namespace: Soprano::Util
Detailed Description
\class DummyModel dummymodel.h Soprano/Util/DummyModel
A dummy model. All its methods do nothing and always
fail with a default error.
A dummy model might be useful in situations where a null pointer
could lead to crashes if creating a real model fails.
- Author:
- Sebastian Trueg <trueg@kde.org>
Methods |
| __init__ (self) |
Soprano.Error.ErrorCode | addStatement (self, Soprano.Statement statement) |
Soprano.Error.ErrorCode | addStatement (self, Soprano.Node subject, Soprano.Node predicate, Soprano.Node object, Soprano.Node context=Soprano.Node()) |
Soprano.Error.ErrorCode | addStatements (self, [Soprano.Statement] statements) |
bool | containsAnyStatement (self, Soprano.Statement statement) |
bool | containsAnyStatement (self, Soprano.Node subject, Soprano.Node predicate, Soprano.Node object, Soprano.Node context=Soprano.Node()) |
bool | containsContext (self, Soprano.Node context) |
bool | containsStatement (self, Soprano.Statement statement) |
bool | containsStatement (self, Soprano.Node subject, Soprano.Node predicate, Soprano.Node object, Soprano.Node context=Soprano.Node()) |
Soprano.Node | createBlankNode (self) |
Soprano.QueryResultIterator | executeQuery (self, QString query, Soprano.Query.QueryLanguage language, QString userQueryLanguage=QString()) |
bool | isEmpty (self) |
Soprano.NodeIterator | listContexts (self) |
Soprano.StatementIterator | listStatements (self, Soprano.Statement partial) |
Soprano.StatementIterator | listStatements (self, Soprano.Node subject, Soprano.Node predicate, Soprano.Node object, Soprano.Node context=Soprano.Node()) |
Soprano.StatementIterator | listStatements (self) |
Soprano.StatementIterator | listStatementsInContext (self, Soprano.Node context) |
Soprano.Error.ErrorCode | removeAllStatements (self, Soprano.Statement statement) |
Soprano.Error.ErrorCode | removeAllStatements (self) |
Soprano.Error.ErrorCode | removeContext (self, Soprano.Node a0) |
Soprano.Error.ErrorCode | removeStatement (self, Soprano.Statement statement) |
Soprano.Error.ErrorCode | removeStatement (self, Soprano.Node subject, Soprano.Node predicate, Soprano.Node object, Soprano.Node context=Soprano.Node()) |
Soprano.Error.ErrorCode | removeStatements (self, [Soprano.Statement] statements) |
int | statementCount (self) |
Soprano.Error.ErrorCode | write (self, QTextStream os) |
Method Documentation
Create a new dummy model.
Soprano.Error.ErrorCode removeAllStatements |
( |
|
self ) |
|
Soprano.Error.ErrorCode removeContext |
( |
self, |
|
|
|
Soprano.Node |
a0 |
|
) |
|
|
|
int statementCount |
( |
|
self ) |
|