Debian Codegraph @

Source/Reasoner/Query/CComplexConceptAnsweringQuery.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_CCOMPLEXCONCEPTANSWERINGQUERY_H
22 #define KONCLUDE_REASONER_QUERY_CCOMPLEXCONCEPTANSWERINGQUERY_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 CComplexConceptAnsweringQuery
54 * \author Andreas Steigmiller
55 * \version 0.1
56 * \brief TODO
57 *
58 */
59 class CComplexConceptAnsweringQuery : public CComplexAnsweringExpressionQuery {
60 // public methods
61 public:
62 //! Constructor
63 CComplexConceptAnsweringQuery(CConcreteOntology* baseOntology, CConcreteOntology* expressionOntology, CConfigurationBase* configuration, const QString& queryName);
64
65 //! Destructor
66 virtual ~CComplexConceptAnsweringQuery();
67
68
69
70 CBuildExpression* getExpressionOfInterest();
71
72 bool isSuperClassNodesComputationRequired();
73 bool isSubClassNodesComputationRequired();
74 bool isEquivalentClassNodesComputationRequired();
75 bool isInstancesComputationRequired();
76 bool isSatisfiableComputationRequired();
77
78 bool isDirect();
79 bool isFlattened();
80
81 CComplexConceptAnsweringQuery* setDirect(bool direct);
82 CComplexConceptAnsweringQuery* setFlattened(bool flattened);
83
84
85 // protected methods
86 protected:
87
88 // protected variables
89 protected:
90 CBuildExpression* mExpressionOfInterest;
91
92 bool mSuperClassNodesRequired;
93 bool mSubClassNodesRequired;
94 bool mEquivalentClassNodesRequired;
95 bool mInstancesRequired;
96 bool mSatisfiableRequired;
97
98 bool mDirect;
99 bool mFlattened;
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_CCOMPLEXCONCEPTANSWERINGQUERY_H