Debian Codegraph @

Source/Reasoner/Query/CComplexVariablesAnsweringQuery.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_CCOMPLEXVARIABLESANSWERINGQUERY_H
22 #define KONCLUDE_REASONER_QUERY_CCOMPLEXVARIABLESANSWERINGQUERY_H
23
24 // Libraries includes
25
26
27 // Namespace includes
28 #include "CComplexAnsweringExpressionQuery.h"
29
30
31 // Other includes
32 #include "Reasoner/Ontology/CConcreteOntology.h"
33
34 #include "Config/CConfigurationBase.h"
35
36 // Logger includes
37 #include "Logger/CLogger.h"
38
39
40
41 namespace Konclude {
42
43 using namespace Config;
44
45 namespace Reasoner {
46
47 using namespace Ontology;
48
49 namespace Query {
50
51 /*!
52 *
53 * \class CComplexVariablesAnsweringQuery
54 * \author Andreas Steigmiller
55 * \version 0.1
56 * \brief TODO
57 *
58 */
59 class CComplexVariablesAnsweringQuery : public CComplexAnsweringExpressionQuery {
60 // public methods
61 public:
62 //! Constructor
63 CComplexVariablesAnsweringQuery(CConcreteOntology* baseOntology, CConcreteOntology* expressionOntology, const QList<CAxiomExpression*>& axiomExpressions, const QList<CExpressionVariable*>& disVariables, CConfigurationBase* configuration, const QString& queryName);
64
65 //! Destructor
66 virtual ~CComplexVariablesAnsweringQuery();
67
68
69 QList<CAxiomExpression*>* getAxiomExpressions();
70 QList<CExpressionVariable*>* getDistinguishedVariableExpressions();
71
72 bool isDistinctRequired();
73 CComplexVariablesAnsweringQuery* setDistinctRequired(bool distinctRequired);
74
75 bool isBooleanEntailmentResultRequired();
76 CComplexVariablesAnsweringQuery* setBooleanEntailmentResultRequired(bool booleanEntailmentResultRequired);
77
78 cint64 getResultLimit();
79 CComplexVariablesAnsweringQuery* setResultLimit(cint64 resultLimit);
80
81 cint64 getResultOffset();
82 CComplexVariablesAnsweringQuery* setResultOffset(cint64 resultOffset);
83
84 cint64 getResultLimitIncludingOffset();
85
86
87 // protected methods
88 protected:
89
90 // protected variables
91 protected:
92 QList<CAxiomExpression*> mAxiomExpressions;
93 QList<CExpressionVariable*> mDisVariables;
94
95 bool mDistinct;
96 bool mBooleanEntailmentResult;
97
98 cint64 mResultLimit;
99 cint64 mResultOffset;
100
101
102 // private methods
103 private:
104
105 // private variables
106 private:
107
108 };
109
110 }; // end namespace Query
111
112 }; // end namespace Reasoner
113
114 }; // end namespace Konclude
115
116 #endif // KONCLUDE_REASONER_QUERY_CCOMPLEXVARIABLESANSWERINGQUERY_H