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()) |
bool | containsAnyStatement (self, Soprano.Statement statement) |
bool | containsAnyStatement (self, Soprano.Node subject, Soprano.Node predicate, Soprano.Node object, Soprano.Node context=Soprano.Node()) |
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.Error.ErrorCode | removeAllStatements (self, Soprano.Statement statement) |
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()) |
int | statementCount (self) |
Soprano.Error.ErrorCode | write (self, QTextStream os) |
Method Documentation
Create a new dummy model.
int statementCount |
( |
|
self ) |
|