kDB: Knowledge DataBase
Loading...
Searching...
No Matches
kdb
kDB
Repository
SPARQLExecution
SPARQLAlgebraToPostgresSQL_p.h
1
#include <knowCore/ValueHash.h>
2
3
#include <kDB/SPARQL/Algebra/Nodes.h>
4
5
namespace
kDB::Repository::SPARQLExecution
6
{
7
class
SPARQLAlgebraToPostgresSQL
8
{
9
public
:
10
struct
SQLDeleteInsertQuery
11
{
12
knowCore::ValueHash
valuesmapping;
13
QString whereTableQuery, deletionTemplate, insertionTemplate;
14
};
15
struct
SQLSelectQuery
16
{
17
QHash<QString, QString>
variablesmapping;
18
knowCore::ValueHash
valuesmapping;
19
QList<SPARQL::Algebra::VariableCSP>
variable_list;
20
QString query;
21
};
22
struct
SQLConstructQuery
23
{
24
QString query;
25
knowCore::ValueHash
valuesmapping;
26
};
27
public
:
28
SPARQLAlgebraToPostgresSQL
(
const
SPARQL::Algebra::NodeCSP
& _q,
const
Connection
& _c,
29
const
QHash<QString, QString>
& _sources);
30
~SPARQLAlgebraToPostgresSQL
();
31
cres_qresult<SQLDeleteInsertQuery> buildDeleteInsertQuery()
const
;
32
cres_qresult<SQLSelectQuery> buildSelectQuery()
const
;
33
cres_qresult<SQLConstructQuery> buildConstructQuery()
const
;
34
private
:
35
struct
Private
;
36
Private
*
const
d;
37
};
38
}
// namespace kDB::Repository::SPARQLExecution
QHash
Definition
Forward.h:10
QList
Definition
Revision.h:9
kDB::Repository::Connection
Definition
Connection.h:26
kDB::Repository::SPARQLExecution::SPARQLAlgebraToPostgresSQL
Definition
SPARQLAlgebraToPostgresSQL_p.h:8
knowCore::ConstExplicitlySharedDataPointer< Node >
knowCore::ValueHash
Definition
ValueHash.h:13
kDB::Repository::SPARQLExecution::SPARQLAlgebraToPostgresSQL::Private
Definition
SPARQLAlgebraToPostgresSQL.cpp:55
kDB::Repository::SPARQLExecution::SPARQLAlgebraToPostgresSQL::SQLConstructQuery
Definition
SPARQLAlgebraToPostgresSQL_p.h:23
kDB::Repository::SPARQLExecution::SPARQLAlgebraToPostgresSQL::SQLDeleteInsertQuery
Definition
SPARQLAlgebraToPostgresSQL_p.h:11
kDB::Repository::SPARQLExecution::SPARQLAlgebraToPostgresSQL::SQLSelectQuery
Definition
SPARQLAlgebraToPostgresSQL_p.h:16
Generated by
1.12.0