Debian Codegraph @

Source/Reasoner/Query/CRedlandRasqalBGPsCompositionQuery.h

raw ◀ ▶
1 Debian patch touch this file
1 /*
2 * Copyright (C) 2013-2015, 2019 by the Konclude Developer Team.
3 *
4 * This file is part of the reasoning system Konclude.
5 * For details and support, see <http://konclude.com/>.
6 *
7 * Konclude is free software: you can redistribute it and/or modify
8 * it under the terms of version 3 of the GNU Lesser General Public
9 * License (LGPLv3) as published by the Free Software Foundation.
10 *
11 * Konclude 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
14 * GNU (Lesser) General Public License for more details.
15 *
16 * You should have received a copy of the GNU (Lesser) General Public
17 * License along with Konclude. If not, see <http://www.gnu.org/licenses/>.
18 *
19 */
20 #ifdef KONCLUDE_REDLAND_INTEGRATION
21
22 #ifndef KONCLUDE_REASONER_QUERY_CREDLANDRASQALBGPSCOMPOSITIONQUERY_H
23 #define KONCLUDE_REASONER_QUERY_CREDLANDRASQALBGPSCOMPOSITIONQUERY_H
24
25 // Libraries includes
•26 #include <librdf.h>
27
28 // Namespace includes
29 #include "CComplexAnsweringCompositionQuery.h"
30
31
32 // Other includes
33 #include "Reasoner/Ontology/CConcreteOntology.h"
34
35 #include "Config/CConfigurationBase.h"
36
37 // Logger includes
38 #include "Logger/CLogger.h"
39
40
41
42 namespace Konclude {
43
44 using namespace Config;
45
46 namespace Reasoner {
47
48 using namespace Ontology;
49
50 namespace Query {
51
52 typedef QPair<CConcreteOntology*, CConcreteOntology*> TDependentOntologyPair;
53
54 /*!
55 *
56 * \class CRedlandRasqalBGPsCompositionQuery
57 * \author Andreas Steigmiller
58 * \version 0.1
59 * \brief TODO
60 *
61 */
62 class CRedlandRasqalBGPsCompositionQuery : public CComplexAnsweringCompositionQuery {
63 // public methods
64 public:
65 //! Constructor
66 CRedlandRasqalBGPsCompositionQuery(CConcreteOntology* baseOntology, CConcreteOntology* expressionOntology, const QSet<QString>& dependentKBNames, const QString& queryText, librdf_world* redlandWorld, librdf_query* redlandQuery, rasqal_query* rasqalQuery, CConfigurationBase* configuration, const QString& queryName = "Unknown-Rasqal-Query");
67
68 //! Destructor
69 virtual ~CRedlandRasqalBGPsCompositionQuery();
70
71
72 QSet<QString>* getDependentKnowledgeBaseNames();
73
74 librdf_world* getRedlandWorld();
75 librdf_query* getRedlandQuery();
76 rasqal_query* getRasqalQuery();
77
78 QString getQueryText();
79
80
81 QHash<QString, TDependentOntologyPair>* getDependentKnowledgeBaseRevisionHash();
82 CRedlandRasqalBGPsCompositionQuery* setDependentKnowledgeBaseRevision(const QString& kbName, TDependentOntologyPair depOntPair);
83 CRedlandRasqalBGPsCompositionQuery* setDependentKnowledgeBaseRevision(const QString& kbName, CConcreteOntology* baseOntology, CConcreteOntology* expressionOntology);
84
85
86 CConcreteOntology* getDependentBaseKnowledgeBaseRevision(const QString& kbName);
87 CConcreteOntology* getDependentExpressionKnowledgeBaseRevisionBase(const QString& kbName);
88
89
90 // protected methods
91 protected:
92
93 // protected variables
94 protected:
95 QHash<QString, TDependentOntologyPair> mDependentKnowledgeBaseRevisionHash;
96 QSet<QString> mDependentKBNames;
97
98 librdf_world* mRedlandWorld;
99 librdf_query* mRedlandQuery;
100 rasqal_query* mRasqalQuery;
101
102
103 QString mQueryText;
104
105
106 // private methods
107 private:
108
109 // private variables
110 private:
111
112 };
113
114 }; // end namespace Query
115
116 }; // end namespace Reasoner
117
118 }; // end namespace Konclude
119
120 #endif // KONCLUDE_REASONER_QUERY_CREDLANDRASQALBGPSCOMPOSITIONQUERY_H
121
122 #endif // KONCLUDE_REDLAND_INTEGRATION