# class DummyModel

###

Module | soprano
Namespace | Soprano::Util
Class | DummyModel
Inherits | Soprano::Model

\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

- DummyModel ( )

  returns ctor

  Create a new dummy model.

- addStatement (statement)

  returns Soprano.Error.ErrorCode

  Argument | Type | Default
  --- | --- | ---
  statement | Soprano.Statement |

- addStatement (subject, predicate, object, context)

  returns Soprano.Error.ErrorCode

  Argument | Type | Default
  --- | --- | ---
  subject | Soprano.Node |
  predicate | Soprano.Node |
  object | Soprano.Node |
  context | Soprano.Node | Soprano.Node()

- addStatements (statements)

  returns Soprano.Error.ErrorCode

  Argument | Type | Default
  --- | --- | ---
  statements | QList<Soprano::Statement> |

- containsAnyStatement (statement)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  statement | Soprano.Statement |

- containsAnyStatement (subject, predicate, object, context)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  subject | Soprano.Node |
  predicate | Soprano.Node |
  object | Soprano.Node |
  context | Soprano.Node | Soprano.Node()

- containsContext (context)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  context | Soprano.Node |

- containsStatement (statement)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  statement | Soprano.Statement |

- containsStatement (subject, predicate, object, context)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  subject | Soprano.Node |
  predicate | Soprano.Node |
  object | Soprano.Node |
  context | Soprano.Node | Soprano.Node()

- createBlankNode ( )

  returns Soprano.Node

- executeQuery (query, language, userQueryLanguage)

  returns Soprano.QueryResultIterator

  Argument | Type | Default
  --- | --- | ---
  query | QString |
  language | Soprano.Query.QueryLanguage |
  userQueryLanguage | QString | QString()

- isEmpty ( )

  returns bool

- listContexts ( )

  returns Soprano.NodeIterator

- listStatements (partial)

  returns Soprano.StatementIterator

  Argument | Type | Default
  --- | --- | ---
  partial | Soprano.Statement |

- listStatements (subject, predicate, object, context)

  returns Soprano.StatementIterator

  Argument | Type | Default
  --- | --- | ---
  subject | Soprano.Node |
  predicate | Soprano.Node |
  object | Soprano.Node |
  context | Soprano.Node | Soprano.Node()

- listStatements ( )

  returns Soprano.StatementIterator

- listStatementsInContext (context)

  returns Soprano.StatementIterator

  Argument | Type | Default
  --- | --- | ---
  context | Soprano.Node |

- removeAllStatements (statement)

  returns Soprano.Error.ErrorCode

  Argument | Type | Default
  --- | --- | ---
  statement | Soprano.Statement |

- removeAllStatements ( )

  returns Soprano.Error.ErrorCode

- removeContext (a0)

  returns Soprano.Error.ErrorCode

  Argument | Type | Default
  --- | --- | ---
  a0 | Soprano.Node |

- removeStatement (statement)

  returns Soprano.Error.ErrorCode

  Argument | Type | Default
  --- | --- | ---
  statement | Soprano.Statement |

- removeStatement (subject, predicate, object, context)

  returns Soprano.Error.ErrorCode

  Argument | Type | Default
  --- | --- | ---
  subject | Soprano.Node |
  predicate | Soprano.Node |
  object | Soprano.Node |
  context | Soprano.Node | Soprano.Node()

- removeStatements (statements)

  returns Soprano.Error.ErrorCode

  Argument | Type | Default
  --- | --- | ---
  statements | QList<Soprano::Statement> |

- statementCount ( )

  returns int

- write (os)

  returns Soprano.Error.ErrorCode

  Argument | Type | Default
  --- | --- | ---
  os | QTextStream |