Debian Codegraph @

Source/Reasoner/Generator/CConcreteOntologyQuerySimpleBuilder.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_GENERATOR_CCONCRETEONTOLOGYQUERYSIMPLEBUILDER_H
22 #define KONCLUDE_REASONER_GENERATOR_CCONCRETEONTOLOGYQUERYSIMPLEBUILDER_H
23
24 // Libraries includes
25
26
27 // Namespace includes
28 #include "CConcreteOntologyQueryBasicBuilder.h"
29 #include "CConcreteOntologyUpdateBuilder.h"
30 #include "CSatisfiableCalculationJobGenerator.h"
31
32
33 // Other includes
34 #include "Reasoner/Query/CIsClassSatisfiableQuery.h"
35 #include "Reasoner/Query/CAreClassesEquivalentQuery.h"
36 #include "Reasoner/Query/CIsClassSubsumedByQuery.h"
37 #include "Reasoner/Query/CAreClassesDisjointQuery.h"
38 #include "Reasoner/Query/CIsClassSubsumedByQuery.h"
39 #include "Reasoner/Query/CIsInstanceOfQuery.h"
40 #include "Reasoner/Query/CQueryStatisticsCollectionStrings.h"
41 #include "Reasoner/Query/CFlattenedTypesQuery.h"
42 #include "Reasoner/Query/CFlattenedInstancesQuery.h"
43
44 #include "Reasoner/Ontology/CConceptTextFormater.h"
45 #include "Reasoner/Ontology/CIRIName.h"
46
47 #include "Config/CConfigurationBase.h"
48
49 // Logger includes
50 #include "Logger/CLogger.h"
51
52
53
54 namespace Konclude {
55
56 using namespace Parser;
57 using namespace Config;
58
59 namespace Reasoner {
60
61 using namespace Query;
62 using namespace Ontology;
63
64 namespace Generator {
65
66 /*!
67 *
68 * \class CConcreteOntologyQuerySimpleBuilder
69 * \author Andreas Steigmiller
70 * \version 0.1
71 * \brief TODO
72 *
73 */
74 class CConcreteOntologyQuerySimpleBuilder : public CConcreteOntologyQueryBasicBuilder {
75 // public methods
76 public:
77 //! Constructor
78 CConcreteOntologyQuerySimpleBuilder(CConcreteOntology* ontology, CConfigurationBase *configuration);
79
80 //! Destructor
81 virtual ~CConcreteOntologyQuerySimpleBuilder();
82
83 virtual QList<CQuery*> generateQuerys();
84
85
86 virtual CQueryAreClassesEquivalentExpression* getAreClassesEquivalenceQuery(const CEXPRESSIONLIST<CClassTermExpression*>& testClassExpressions, const QString& queryName);
87 virtual CQueryAreClassesDisjointExpression* getAreClassesDisjointQuery(const CEXPRESSIONLIST<CClassTermExpression*>& testClassExpressions, const QString& queryName);
88 virtual CQueryIsClassSubsumedByExpression* getIsClassSubsumedByQuery(CClassTermExpression* subsumerClassExpression, CClassTermExpression* subsumedClassExpression, const QString& queryName);
89 virtual CQueryIsEntailedExpression* getIsEntailedQuery(const CEXPRESSIONLIST<CAxiomExpression*>& axiomExpressions, const QString& queryName);
90
91
92 virtual bool requiresPreprocessedOntology();
93
94
95 // protected methods
96 protected:
97
98 // protected variables
99 protected:
100
101
102 // private methods
103 private:
104
105 // private variables
106 private:
107
108
109 };
110
111 }; // end namespace Generator
112
113 }; // end namespace Reasoner
114
115 }; // end namespace Konclude
116
117 #endif // KONCLUDE_REASONER_GENERATOR_CCONCRETEONTOLOGYQUERYSIMPLEBUILDER_H