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,
const
QHash<QString, QString>
& _sources);
29
~SPARQLAlgebraToPostgresSQL
();
30
knowCore::ReturnValue<SQLDeleteInsertQuery> buildDeleteInsertQuery()
const
;
31
knowCore::ReturnValue<SQLSelectQuery> buildSelectQuery()
const
;
32
knowCore::ReturnValue<SQLConstructQuery> buildConstructQuery()
const
;
33
private
:
34
struct
Private
;
35
Private
*
const
d;
36
};
37
}
QHash
Definition
Forward.h:10
QList
Definition
Revision.h:9
kDB::Repository::Connection
Definition
Connection.h:25
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:45
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