Debian Codegraph @

Source/Parser/CQueryBuilder.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_PARSER_CQUERYBUILDER_H
22 #define KONCLUDE_PARSER_CQUERYBUILDER_H
23
24
25 // Libraries includes
26 #include <QHash>
27 #include <QList>
28 #include <QString>
29
30
31 // Namespace includes
32 #include "Expressions/CBuildExpression.h"
33 #include "Expressions/CClassExpression.h"
34
35
36 // Other includes
37 #include "Expressions/CQueryIsClassSatisfiableExpression.h"
38 #include "Expressions/CQueryAreClassesEquivalentExpression.h"
39 #include "Expressions/CQueryAreClassesDisjointExpression.h"
40 #include "Expressions/CQueryIsClassSubsumedByExpression.h"
41 #include "Expressions/CQueryIsInstanceOfExpression.h"
42 #include "Expressions/CQueryGetFlattenedTypesExpression.h"
43 #include "Expressions/CQueryGetFlattenedInstancesExpression.h"
44 #include "Expressions/CQueryGetTypesExpression.h"
45 #include "Expressions/CQueryGetInstancesExpression.h"
46 #include "Expressions/CQueryGetSuperClassesExpression.h"
47 #include "Expressions/CQueryGetSubClassesExpression.h"
48 #include "Expressions/CQueryGetEquivalentClassesExpression.h"
49 #include "Expressions/CQueryIsEntailedExpression.h"
50 #include "Expressions/CQueryGetObjectPropertyTargetsExpression.h"
51 #include "Expressions/CQueryGetFlattenedObjectPropertyTargetsExpression.h"
52 #include "Expressions/CQueryGetDeterministicIndividualsExpression.h"
53 #include "Expressions/CQueryGetNondeterministicIndividualsExpression.h"
54 #include "Expressions/CQueryGetDeterministicClassAssertionsExpression.h"
55 #include "Expressions/CQueryGetNondeterministicClassAssertionsExpression.h"
56 #include "Expressions/CQueryGetSameIndividualsExpression.h"
57 #include "Expressions/CQueryGetSubObjectPropertiesExpression.h"
58 #include "Expressions/CQueryGetSuperObjectPropertiesExpression.h"
59 #include "Expressions/CQueryGetEquivalentObjectPropertiesExpression.h"
60 #include "Expressions/CQueryGetSubDataPropertiesExpression.h"
61 #include "Expressions/CQueryGetSuperDataPropertiesExpression.h"
62 #include "Expressions/CQueryGetEquivalentDataPropertiesExpression.h"
63 #include "Expressions/CQueryGetSubObjectPropertyHierarchyExpression.h"
64 #include "Expressions/CQueryGetSubDataPropertyHierarchyExpression.h"
65 #include "Expressions/CQueryIsObjectPropertySatisfiableExpression.h"
66 #include "Expressions/CQueryIsDataPropertySatisfiableExpression.h"
67 #include "Expressions/CQueryGetObjectPropertiesBetweenExpression.h"
68 #include "Expressions/CQueryGetObjectPropertiesOfTargetExpression.h"
69 #include "Expressions/CQueryGetObjectPropertiesOfSourceExpression.h"
70 #include "Expressions/CQueryGetFlattenedObjectPropertySourcesExpression.h"
71 #include "Expressions/CQueryGetObjectPropertySourcesExpression.h"
72 #include "Expressions/CQueryingTemporaryNamedIndividualExpression.h"
73 #include "Expressions/CQueryingTemporaryInverseObjectPropertyOfExpression.h"
74
75
76 // Logger includes
77 #include "Logger/CLogger.h"
78
79 using namespace Konclude::Logger;
80
81 namespace Konclude {
82
83 namespace Parser {
84
85 using namespace Expression;
86
87
88 /*!
89 *
90 * \class CQueryBuilder
91 * \author Andreas Steigmiller
92 * \version 0.1
93 * \brief TODO
94 *
95 */
96 class CQueryBuilder {
97 // public methods
98 public:
99 //! Constructor
100 CQueryBuilder();
101
102 //! Destructor
103 virtual ~CQueryBuilder();
104
105 virtual CQueryingTemporaryNamedIndividualExpression* getQueryingTemporaryNamedIndividual(const QString& indiName) = 0;
106 virtual CQueryingTemporaryInverseObjectPropertyOfExpression* getQueryingTemporaryInverseObjectProperty(CObjectPropertyTermExpression* expression) = 0;
107
108
109 virtual CQueryIsClassSatisfiableExpression* getIsClassSatisfiableQuery(const CEXPRESSIONLIST<CBuildExpression*>& testClassExpressions, const QString& queryName) = 0;
110 virtual CQueryAreClassesEquivalentExpression* getAreClassesEquivalenceQuery(const CEXPRESSIONLIST<CBuildExpression*>& testClassExpressions, const QString& queryName) = 0;
111 virtual CQueryAreClassesDisjointExpression* getAreClassesDisjointQuery(const CEXPRESSIONLIST<CBuildExpression*>& testClassExpressions, const QString& queryName) = 0;
112 virtual CQueryIsClassSubsumedByExpression* getIsClassSubsumedByQuery(const CEXPRESSIONLIST<CBuildExpression*>& testClassExpressions, const QString& queryName) = 0;
113 virtual CQueryIsInstanceOfExpression* getIsInstanceOfQuery(const CEXPRESSIONLIST<CBuildExpression*>& testClassExpressions, const QString& queryName) = 0;
114 virtual CQueryGetFlattenedTypesExpression* getGetFlattenedTypesQuery(const CEXPRESSIONLIST<CBuildExpression*>& testClassExpressions, bool direct, const QString& queryName) = 0;
115 virtual CQueryGetFlattenedInstancesExpression* getGetFlattenedInstancesQuery(const CEXPRESSIONLIST<CBuildExpression*>& testClassExpressions, bool direct, const QString& queryName) = 0;
116 virtual CQueryGetTypesExpression* getGetTypesQuery(const CEXPRESSIONLIST<CBuildExpression*>& testClassExpressions, bool direct, const QString& queryName) = 0;
117 virtual CQueryGetSameIndividualsExpression* getGetSameIndividualsQuery(const CEXPRESSIONLIST<CBuildExpression*>& testClassExpressions, const QString& queryName) = 0;
118 virtual CQueryGetInstancesExpression* getGetInstancesQuery(const CEXPRESSIONLIST<CBuildExpression*>& testClassExpressions, bool direct, const QString& queryName) = 0;
119 virtual CQueryGetSubClassesExpression* getGetSubClassesQuery(const CEXPRESSIONLIST<CBuildExpression*>& testClassExpressions, bool direct, const QString& queryName) = 0;
120 virtual CQueryGetSuperClassesExpression* getGetSuperClassesQuery(const CEXPRESSIONLIST<CBuildExpression*>& testClassExpressions, bool direct, const QString& queryName) = 0;
121 virtual CQueryGetEquivalentClassesExpression* getGetEquivalentClassesQuery(const CEXPRESSIONLIST<CBuildExpression*>& testClassExpressions, const QString& queryName) = 0;
122 virtual CQueryIsEntailedExpression* getIsEntailedQuery(const CEXPRESSIONLIST<CBuildExpression*>& testClassExpressions, const QString& queryName) = 0;
123 virtual CQueryGetObjectPropertyTargetsExpression* getGetObjectPropertyTargetsQuery(const CEXPRESSIONLIST<CBuildExpression*>& expressions, const QString& queryName) = 0;
124 virtual CQueryGetFlattenedObjectPropertyTargetsExpression* getGetFlattenedObjectPropertyTargetsQuery(const CEXPRESSIONLIST<CBuildExpression*>& expressions, const QString& queryName) = 0;
125 virtual CQueryGetObjectPropertySourcesExpression* getGetObjectPropertySourcesQuery(const CEXPRESSIONLIST<CBuildExpression*>& expressions, const QString& queryName) = 0;
126 virtual CQueryGetFlattenedObjectPropertySourcesExpression* getGetFlattenedObjectPropertySourcesQuery(const CEXPRESSIONLIST<CBuildExpression*>& expressions, const QString& queryName) = 0;
127
128
129 virtual CQueryGetObjectPropertiesOfSourceExpression* getGetObjectPropertiesOfSourceQuery(const CEXPRESSIONLIST<CBuildExpression*>& expressions, const QString& queryName) = 0;
130 virtual CQueryGetObjectPropertiesOfTargetExpression* getGetObjectPropertiesOfTargetQuery(const CEXPRESSIONLIST<CBuildExpression*>& expressions, const QString& queryName) = 0;
131 virtual CQueryGetObjectPropertiesBetweenExpression* getGetObjectPropertiesBetweenQuery(const CEXPRESSIONLIST<CBuildExpression*>& expressions, const QString& queryName) = 0;
132
133
134 virtual CQueryGetSubObjectPropertiesExpression* getGetSubObjectPropertiesQuery(const CEXPRESSIONLIST<CBuildExpression*>& testObjectPropertiesExpressions, bool direct, const QString& queryName) = 0;
135 virtual CQueryGetSuperObjectPropertiesExpression* getGetSuperObjectPropertiesQuery(const CEXPRESSIONLIST<CBuildExpression*>& testObjectPropertiesExpressions, bool direct, const QString& queryName) = 0;
136 virtual CQueryGetEquivalentObjectPropertiesExpression* getGetEquivalentObjectPropertiesQuery(const CEXPRESSIONLIST<CBuildExpression*>& testObjectPropertiesExpressions, const QString& queryName) = 0;
137 virtual CQueryGetSubObjectPropertyHierarchyExpression* getGetSubObjectPropertyHierarchyQuery(const CEXPRESSIONLIST<CBuildExpression*>& testObjectPropertiesExpressions, const QString& queryName) = 0;
138 virtual CQueryIsObjectPropertySatisfiableExpression* getIsObjectPropertySatisfiableQuery(const CEXPRESSIONLIST<CBuildExpression*>& testObjectPropertyExpressions, const QString& queryName) = 0;
139 virtual CQueryGetSubDataPropertiesExpression* getGetSubDataPropertiesQuery(const CEXPRESSIONLIST<CBuildExpression*>& testDataPropertiesExpressions, bool direct, const QString& queryName) = 0;
140 virtual CQueryGetSuperDataPropertiesExpression* getGetSuperDataPropertiesQuery(const CEXPRESSIONLIST<CBuildExpression*>& testDataPropertiesExpressions, bool direct, const QString& queryName) = 0;
141 virtual CQueryGetEquivalentDataPropertiesExpression* getGetEquivalentDataPropertiesQuery(const CEXPRESSIONLIST<CBuildExpression*>& testDataPropertiesExpressions, const QString& queryName) = 0;
142 virtual CQueryGetSubDataPropertyHierarchyExpression* getGetSubDataPropertyHierarchyQuery(const CEXPRESSIONLIST<CBuildExpression*>& testDataPropertiesExpressions, const QString& queryName) = 0;
143 virtual CQueryIsDataPropertySatisfiableExpression* getIsDataPropertySatisfiableQuery(const CEXPRESSIONLIST<CBuildExpression*>& testDataPropertiesExpressions, const QString& queryName) = 0;
144
145
146
147 virtual CQueryGetDeterministicIndividualsExpression* getGetDeterministicIndividualsQuery(const CEXPRESSIONLIST<CBuildExpression*>& expressions, const QString& queryName) = 0;
148 virtual CQueryGetNondeterministicIndividualsExpression* getGetNondeterministicIndividualsQuery(const CEXPRESSIONLIST<CBuildExpression*>& expressions, const QString& queryName) = 0;
149 virtual CQueryGetDeterministicClassAssertionsExpression* getGetDeterministicClassAssertionsQuery(const CEXPRESSIONLIST<CBuildExpression*>& expressions, const QString& queryName) = 0;
150 virtual CQueryGetNondeterministicClassAssertionsExpression* getGetNondeterministicClassAssertionsQuery(const CEXPRESSIONLIST<CBuildExpression*>& expressions, const QString& queryName) = 0;
151
152
153 // protected methods
154 protected:
155
156 // protected variables
157 protected:
158
159
160
161 // private methods
162 private:
163
164 // private variables
165 private:
166
167 };
168
169 }; // end namespace Parser
170
171 }; // end namespace Konclude
172
173 #endif // KONCLUDE_PARSER_CQUERYBUILDER_H