Debian Codegraph @

Source/Reasoner/Query/CComplexAnsweringQuery.h

raw
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
21 #ifndef KONCLUDE_REASONER_QUERY_CCOMPLEXANSWERINGQUERY_H
22 #define KONCLUDE_REASONER_QUERY_CCOMPLEXANSWERINGQUERY_H
23
24 // Libraries includes
25
26
27 // Namespace includes
28 #include "CQuery.h"
29 #include "CVariableBindingOrdering.h"
30 #include "CVariableBindingFiltering.h"
31
32
33 // Other includes
34 #include "Reasoner/Ontology/CConcreteOntology.h"
35
36 #include "Config/CConfigurationBase.h"
37
38 // Logger includes
39 #include "Logger/CLogger.h"
40
41
42
43 namespace Konclude {
44
45 using namespace Config;
46
47 namespace Reasoner {
48
49 using namespace Ontology;
50
51 namespace Query {
52
53 /*!
54 *
55 * \class CComplexAnsweringQuery
56 * \author Andreas Steigmiller
57 * \version 0.1
58 * \brief TODO
59 *
60 */
61 class CComplexAnsweringQuery : public CQuery {
62 // public methods
63 public:
64 //! Constructor
65 CComplexAnsweringQuery(CConcreteOntology* baseOntology, CConcreteOntology* expressionOntology, CConfigurationBase* configuration, const QString& queryName);
66
67 //! Destructor
68 virtual ~CComplexAnsweringQuery();
69
70
71 virtual QString getQueryName();
72 virtual QString getQueryString();
73 virtual QString getAnswerString();
74 virtual bool hasAnswer();
75
76
77 CConcreteOntology* getBaseOntology();
78 CConcreteOntology* getExrpessionOntology();
79
80 CComplexAnsweringQuery* setQueryResult(CQueryResult* queryResult);
81 CQueryResult* getQueryResult();
82
83 CConfigurationBase* getConfiguration();
84
85 CComplexAnsweringQuery* setQueryStatistics(CQueryStatistics* stats);
86 CQueryStatistics* getQueryStatistics();
87
88 // protected methods
89 protected:
90
91 // protected variables
92 protected:
93 CConcreteOntology* mOntology;
94 CConcreteOntology* mExpressionsOntology;
95
96 CConfigurationBase* mConfig;
97 CQueryStatistics* mQueryStats;
98
99 QString mQueryName;
100
101 CQueryResult* mQueryResult;
102
103
104
105 // private methods
106 private:
107
108 // private variables
109 private:
110
111 };
112
113 }; // end namespace Query
114
115 }; // end namespace Reasoner
116
117 }; // end namespace Konclude
118
119 #endif // KONCLUDE_REASONER_QUERY_CCOMPLEXANSWERINGQUERY_H