Soprano  2.9.4
dbusmodel.h
Go to the documentation of this file.
1 /*
2  * This file is part of Soprano Project.
3  *
4  * Copyright (C) 2007 Sebastian Trueg <trueg@kde.org>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public License
17  * along with this library; see the file COPYING.LIB. If not, write to
18  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  * Boston, MA 02110-1301, USA.
20  */
21 
22 #ifndef _SOPRANO_SERVER_DBUS_CLIENT_MODEL_H_
23 #define _SOPRANO_SERVER_DBUS_CLIENT_MODEL_H_
24 
25 #include "storagemodel.h"
26 #include "soprano_export.h"
27 
28 namespace Soprano {
29  namespace Client {
30 
57  {
58  Q_OBJECT
59 
60  public:
68  DBusModel( const QString& serviceName, const QString& dbusObject, const Backend* backend = 0 );
69  ~DBusModel();
70 
90  void setAsyncCalls( bool b );
91 
95  bool asyncCalls() const;
96 
97  Error::ErrorCode addStatement( const Statement &statement );
98  NodeIterator listContexts() const;
99  QueryResultIterator executeQuery( const QString& query, Query::QueryLanguage language, const QString& userQueryLanguage = QString() ) const;
100  StatementIterator listStatements( const Statement &partial ) const;
101  Error::ErrorCode removeStatement( const Statement &statement );
102  Error::ErrorCode removeAllStatements( const Statement &statement );
103  int statementCount() const;
104  bool isEmpty() const;
105  bool containsStatement( const Statement &statement ) const;
106  bool containsAnyStatement( const Statement &statement ) const;
107  Node createBlankNode();
108 
115 
116  private:
117  class Private;
118  Private* const d;
119  };
120  }
121 }
122 
123 #endif
soprano_export.h
Soprano::StorageModel
Base class for all Model implementations that store data (as compared to FilterModel).
Definition: storagemodel.h:44
Soprano::Model::listStatements
StatementIterator listStatements() const
Soprano::Model::addStatement
virtual Error::ErrorCode addStatement(const Statement &statement)=0
Soprano::Query::QueryLanguage
QueryLanguage
Definition: sopranotypes.h:129
Soprano::StorageModel::containsAnyStatement
virtual bool containsAnyStatement(const Statement &statement) const
Soprano::Statement
A Statement instance represents one RDF quadruple.
Definition: statement.h:47
SOPRANO_CLIENT_EXPORT
#define SOPRANO_CLIENT_EXPORT
Definition: soprano_export.h:63
storagemodel.h
Soprano::Model::removeStatement
virtual Error::ErrorCode removeStatement(const Statement &statement)=0
Soprano::QueryResultIterator
An iterator for query results.
Definition: queryresultiterator.h:108
Soprano::Client::DBusModel
Interface to a DBus server model.
Definition: dbusmodel.h:56
Soprano::Model::removeAllStatements
Error::ErrorCode removeAllStatements()
Soprano::StatementIterator
An iterator that provides a stream of Statements.
Definition: statementiterator.h:75
Soprano
Definition: backend.h:35
Soprano::Backend
Soprano::Backend defines the interface for a Soprano backend plugin.
Definition: backend.h:263
Soprano::NodeIterator
An iterator that provides a stream of Nodes.
Definition: nodeiterator.h:72
Soprano::StorageModel::containsStatement
virtual bool containsStatement(const Statement &statement) const
Soprano::Node
A Node represents one RDF resource.
Definition: node.h:53
Soprano::Error::ErrorCode
ErrorCode
Definition: error.h:40
QString
Soprano::Vocabulary::Xesam::language
SOPRANO_EXPORT QUrl language()