| 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_CRBOXAXIOMBUILDER_H |
| 22 |
#define KONCLUDE_PARSER_CRBOXAXIOMBUILDER_H |
| 23 |
|
| 24 |
|
| 25 |
// Libraries includes |
| 26 |
#include <QHash> |
| 27 |
#include <QList> |
| 28 |
|
| 29 |
|
| 30 |
// Namespace includes |
| 31 |
#include "Parser/Expressions/CBuildExpression.h" |
| 32 |
|
| 33 |
#include "Parser/Expressions/CObjectPropertyExpression.h" |
| 34 |
#include "Parser/Expressions/CDataPropertyExpression.h" |
| 35 |
#include "Parser/Expressions/CSubObjectPropertyOfExpression.h" |
| 36 |
#include "Parser/Expressions/CInverseObjectPropertyOfExpression.h" |
| 37 |
#include "Parser/Expressions/CDisjointObjectPropertiesExpression.h" |
| 38 |
#include "Parser/Expressions/CEquivalentObjectPropertiesExpression.h" |
| 39 |
|
| 40 |
#include "Parser/Expressions/CObjectPropertyChainExpression.h" |
| 41 |
|
| 42 |
#include "Parser/Expressions/CObjectPropertyDomainExpression.h" |
| 43 |
#include "Parser/Expressions/CObjectPropertyRangeExpression.h" |
| 44 |
|
| 45 |
#include "Parser/Expressions/CInverseObjectPropertiesExpression.h" |
| 46 |
#include "Parser/Expressions/CTransetiveObjectPropertyExpression.h" |
| 47 |
#include "Parser/Expressions/CFunctionalObjectPropertyExpression.h" |
| 48 |
#include "Parser/Expressions/CSymmetricObjectPropertyExpression.h" |
| 49 |
#include "Parser/Expressions/CAsymmetricObjectPropertyExpression.h" |
| 50 |
#include "Parser/Expressions/CReflexiveObjectPropertyExpression.h" |
| 51 |
#include "Parser/Expressions/CIrreflexiveObjectPropertyExpression.h" |
| 52 |
#include "Parser/Expressions/CInverseFunctionalObjectPropertyExpression.h" |
| 53 |
|
| 54 |
#include "Parser/Expressions/CSubDataPropertyOfExpression.h" |
| 55 |
#include "Parser/Expressions/CFunctionalDataPropertyExpression.h" |
| 56 |
#include "Parser/Expressions/CDisjointDataPropertiesExpression.h" |
| 57 |
#include "Parser/Expressions/CEquivalentDataPropertiesExpression.h" |
| 58 |
#include "Parser/Expressions/CDataPropertyDomainExpression.h" |
| 59 |
#include "Parser/Expressions/CDataPropertyRangeExpression.h" |
| 60 |
|
| 61 |
#include "Parser/Expressions/CObjectPropertyVariableExpression.h" |
| 62 |
#include "Parser/Expressions/CDataPropertyVariableExpression.h" |
| 63 |
|
| 64 |
// Other includes |
| 65 |
|
| 66 |
|
| 67 |
// Logger includes |
| 68 |
#include "Logger/CLogger.h" |
| 69 |
|
| 70 |
using namespace Konclude::Logger; |
| 71 |
|
| 72 |
namespace Konclude { |
| 73 |
|
| 74 |
namespace Parser { |
| 75 |
|
| 76 |
using namespace Expression; |
| 77 |
|
| 78 |
|
| 79 |
/*! |
| 80 |
* \class CRBoxAxiomBuilder |
| 81 |
* \author Andreas Steigmiller |
| 82 |
* \version 0.1 |
| 83 |
* \brief TODO |
| 84 |
*/ |
| 85 |
class CRBoxAxiomBuilder { |
| 86 |
// public methods |
| 87 |
public: |
| 88 |
//! Constructor |
| 89 |
CRBoxAxiomBuilder(); |
| 90 |
|
| 91 |
//! Destructor |
| 92 |
virtual ~CRBoxAxiomBuilder(); |
| 93 |
|
| 94 |
|
| 95 |
virtual CObjectPropertyExpression* getObjectProberty(const QString& probertyName) = 0; |
| 96 |
virtual CObjectPropertyExpression* getObjectProberty(const QStringRef& probertyName) = 0; |
| 97 |
virtual CObjectPropertyTermExpression* getTopObjectProberty() = 0; |
| 98 |
virtual CObjectPropertyTermExpression* getBottomObjectProberty() = 0; |
| 99 |
|
| 100 |
|
| 101 |
virtual CDataPropertyExpression* getDataProberty(const QString& dataPropertyName) = 0; |
| 102 |
virtual CDataPropertyExpression* getDataProberty(const QStringRef& dataPropertyName) = 0; |
| 103 |
|
| 104 |
|
| 105 |
virtual CObjectPropertyVariableExpression* getObjectPropertyVariable(const QStringRef &objectPropertyVariableName) = 0; |
| 106 |
virtual CObjectPropertyVariableExpression* getObjectPropertyVariable(const QString &objectPropertyVariableName) = 0; |
| 107 |
|
| 108 |
virtual CDataPropertyVariableExpression* getDataPropertyVariable(const QStringRef &dataPropertyVariableName) = 0; |
| 109 |
virtual CDataPropertyVariableExpression* getDataPropertyVariable(const QString &dataPropertyVariableName) = 0; |
| 110 |
|
| 111 |
|
| 112 |
|
| 113 |
virtual CSubDataPropertyOfExpression* getSubDataPropertyOf(const CEXPRESSIONLIST<CBuildExpression*>& expressions) = 0; |
| 114 |
virtual CSubDataPropertyOfExpression* getSubDataPropertyOf(CBuildExpression* expression1, CBuildExpression* expression2) = 0; |
| 115 |
|
| 116 |
virtual CEquivalentDataPropertiesExpression* getEquivalentDataProperties(const CEXPRESSIONLIST<CBuildExpression*>& expressions) = 0; |
| 117 |
virtual CEquivalentDataPropertiesExpression* getEquivalentDataProperties(CBuildExpression* expression1, CBuildExpression* expression2) = 0; |
| 118 |
virtual CDisjointDataPropertiesExpression* getDisjointDataProperties(const CEXPRESSIONLIST<CBuildExpression*>& expressions) = 0; |
| 119 |
virtual CDisjointDataPropertiesExpression* getDisjointDataProperties(CBuildExpression* expression1, CBuildExpression* expression2) = 0; |
| 120 |
|
| 121 |
virtual CDataPropertyDomainExpression* getDataPropertyDomainExpression(CBuildExpression* expression1, CBuildExpression* expression2) = 0; |
| 122 |
virtual CDataPropertyDomainExpression* getDataPropertyDomainExpression(const CEXPRESSIONLIST<CBuildExpression*>& expressions) = 0; |
| 123 |
virtual CDataPropertyRangeExpression* getDataPropertyRangeExpression(CBuildExpression* expression1, CBuildExpression* expression2) = 0; |
| 124 |
virtual CDataPropertyRangeExpression* getDataPropertyRangeExpression(const CEXPRESSIONLIST<CBuildExpression*>& expressions) = 0; |
| 125 |
|
| 126 |
virtual CFunctionalDataPropertyExpression* getFunctionalDataProperty(const CEXPRESSIONLIST<CBuildExpression*>& expressions) = 0; |
| 127 |
virtual CFunctionalDataPropertyExpression* getFunctionalDataProperty(CBuildExpression* expression) = 0; |
| 128 |
|
| 129 |
|
| 130 |
|
| 131 |
virtual CSubDataPropertyOfExpression* getSubDataPropertyOf(CDataPropertyTermExpression* expression1, CDataPropertyTermExpression* expression2) = 0; |
| 132 |
|
| 133 |
virtual CEquivalentDataPropertiesExpression* getEquivalentDataProperties(const CEXPRESSIONLIST<CDataPropertyTermExpression*>& expressions) = 0; |
| 134 |
virtual CDisjointDataPropertiesExpression* getDisjointDataProperties(const CEXPRESSIONLIST<CDataPropertyTermExpression*>& expressions) = 0; |
| 135 |
|
| 136 |
|
| 137 |
virtual CDataPropertyDomainExpression* getDataPropertyDomainExpression(CDataPropertyTermExpression* expression1, CClassTermExpression* expression2) = 0; |
| 138 |
virtual CDataPropertyRangeExpression* getDataPropertyRangeExpression(CDataPropertyTermExpression* expression1, CDataRangeTermExpression* expression2) = 0; |
| 139 |
virtual CFunctionalDataPropertyExpression* getFunctionalDataProperty(CDataPropertyTermExpression* expression) = 0; |
| 140 |
|
| 141 |
|
| 142 |
|
| 143 |
|
| 144 |
|
| 145 |
|
| 146 |
virtual CSubObjectPropertyOfExpression* getSubObjectPropertyOf(const CEXPRESSIONLIST<CBuildExpression*>& expressions) = 0; |
| 147 |
virtual CSubObjectPropertyOfExpression* getSubObjectPropertyOf(CBuildExpression* expression1, CBuildExpression* expression2) = 0; |
| 148 |
|
| 149 |
virtual CObjectPropertyChainExpression* getObjectPropertyChain(const CEXPRESSIONLIST<CBuildExpression*>& expressions) = 0; |
| 150 |
virtual CObjectPropertyChainExpression* getObjectPropertyChain(CBuildExpression* expression1, CBuildExpression* expression2) = 0; |
| 151 |
|
| 152 |
virtual CEquivalentObjectPropertiesExpression* getEquivalentObjectProperties(const CEXPRESSIONLIST<CBuildExpression*>& expressions) = 0; |
| 153 |
virtual CEquivalentObjectPropertiesExpression* getEquivalentObjectProperties(CBuildExpression* expression1, CBuildExpression* expression2) = 0; |
| 154 |
virtual CDisjointObjectPropertiesExpression* getDisjointObjectProperties(const CEXPRESSIONLIST<CBuildExpression*>& expressions) = 0; |
| 155 |
virtual CDisjointObjectPropertiesExpression* getDisjointObjectProperties(CBuildExpression* expression1, CBuildExpression* expression2) = 0; |
| 156 |
virtual CInverseObjectPropertiesExpression* getInverseObjectProperties(const CEXPRESSIONLIST<CBuildExpression*>& expressions) = 0; |
| 157 |
virtual CInverseObjectPropertiesExpression* getInverseObjectProperties(CBuildExpression* expression1, CBuildExpression* expression2) = 0; |
| 158 |
|
| 159 |
virtual CObjectPropertyDomainExpression* getObjectPropertyDomainExpression(CBuildExpression* expression1, CBuildExpression* expression2) = 0; |
| 160 |
virtual CObjectPropertyDomainExpression* getObjectPropertyDomainExpression(const CEXPRESSIONLIST<CBuildExpression*>& expressions) = 0; |
| 161 |
virtual CObjectPropertyRangeExpression* getObjectPropertyRangeExpression(CBuildExpression* expression1, CBuildExpression* expression2) = 0; |
| 162 |
virtual CObjectPropertyRangeExpression* getObjectPropertyRangeExpression(const CEXPRESSIONLIST<CBuildExpression*>& expressions) = 0; |
| 163 |
|
| 164 |
|
| 165 |
virtual CTransetiveObjectPropertyExpression* getTransetiveObjectProperty(const CEXPRESSIONLIST<CBuildExpression*>& expressions) = 0; |
| 166 |
virtual CTransetiveObjectPropertyExpression* getTransetiveObjectProperty(CBuildExpression* expression) = 0; |
| 167 |
|
| 168 |
virtual CFunctionalObjectPropertyExpression* getFunctionalObjectProperty(const CEXPRESSIONLIST<CBuildExpression*>& expressions) = 0; |
| 169 |
virtual CFunctionalObjectPropertyExpression* getFunctionalObjectProperty(CBuildExpression* expression) = 0; |
| 170 |
virtual CInverseFunctionalObjectPropertyExpression* getInverseFunctionalObjectProperty(const CEXPRESSIONLIST<CBuildExpression*>& expressions) = 0; |
| 171 |
virtual CInverseFunctionalObjectPropertyExpression* getInverseFunctionalObjectProperty(CBuildExpression* expression) = 0; |
| 172 |
virtual CSymmetricObjectPropertyExpression* getSymmetricObjectProperty(const CEXPRESSIONLIST<CBuildExpression*>& expressions) = 0; |
| 173 |
virtual CSymmetricObjectPropertyExpression* getSymmetricObjectProperty(CBuildExpression* expression) = 0; |
| 174 |
virtual CAsymmetricObjectPropertyExpression* getAsymmetricObjectProperty(const CEXPRESSIONLIST<CBuildExpression*>& expressions) = 0; |
| 175 |
virtual CAsymmetricObjectPropertyExpression* getAsymmetricObjectProperty(CBuildExpression* expression) = 0; |
| 176 |
virtual CReflexiveObjectPropertyExpression* getReflexiveObjectProperty(const CEXPRESSIONLIST<CBuildExpression*>& expressions) = 0; |
| 177 |
virtual CReflexiveObjectPropertyExpression* getReflexiveObjectProperty(CBuildExpression* expression) = 0; |
| 178 |
virtual CIrreflexiveObjectPropertyExpression* getIrreflexiveObjectProperty(const CEXPRESSIONLIST<CBuildExpression*>& expressions) = 0; |
| 179 |
virtual CIrreflexiveObjectPropertyExpression* getIrreflexiveObjectProperty(CBuildExpression* expression) = 0; |
| 180 |
|
| 181 |
virtual CInverseObjectPropertyOfExpression* getInverseObjectPropertyOf(const CEXPRESSIONLIST<CBuildExpression*>& expressions) = 0; |
| 182 |
virtual CInverseObjectPropertyOfExpression* getInverseObjectPropertyOf(CBuildExpression* expression) = 0; |
| 183 |
|
| 184 |
|
| 185 |
|
| 186 |
virtual CSubObjectPropertyOfExpression* getSubObjectPropertyOf(const CEXPRESSIONLIST<CObjectPropertyTermExpression*>& expressions, CObjectPropertyTermExpression* expression) = 0; |
| 187 |
virtual CSubObjectPropertyOfExpression* getSubObjectPropertyOf(CObjectPropertyChainExpression* expressions, CObjectPropertyTermExpression* expression) = 0; |
| 188 |
virtual CObjectPropertyChainExpression* getObjectPropertyChain(const CEXPRESSIONLIST<CObjectPropertyTermExpression*>& expressions) = 0; |
| 189 |
|
| 190 |
virtual CEquivalentObjectPropertiesExpression* getEquivalentObjectProperties(const CEXPRESSIONLIST<CObjectPropertyTermExpression*>& expressions) = 0; |
| 191 |
virtual CDisjointObjectPropertiesExpression* getDisjointObjectProperties(const CEXPRESSIONLIST<CObjectPropertyTermExpression*>& expressions) = 0; |
| 192 |
virtual CInverseObjectPropertiesExpression* getInverseObjectProperties(CObjectPropertyTermExpression* expression1, CObjectPropertyTermExpression* expression2) = 0; |
| 193 |
|
| 194 |
virtual CInverseObjectPropertyOfExpression* getInverseObjectPropertyOf(CObjectPropertyTermExpression* expression) = 0; |
| 195 |
|
| 196 |
virtual CObjectPropertyDomainExpression* getObjectPropertyDomainExpression(CObjectPropertyTermExpression* expression1, CClassTermExpression* expression2) = 0; |
| 197 |
virtual CObjectPropertyRangeExpression* getObjectPropertyRangeExpression(CObjectPropertyTermExpression* expression1, CClassTermExpression* expression2) = 0; |
| 198 |
virtual CTransetiveObjectPropertyExpression* getTransetiveObjectProperty(CObjectPropertyTermExpression* expression) = 0; |
| 199 |
virtual CFunctionalObjectPropertyExpression* getFunctionalObjectProperty(CObjectPropertyTermExpression* expression) = 0; |
| 200 |
virtual CInverseFunctionalObjectPropertyExpression* getInverseFunctionalObjectProperty(CObjectPropertyTermExpression* expression) = 0; |
| 201 |
virtual CSymmetricObjectPropertyExpression* getSymmetricObjectProperty(CObjectPropertyTermExpression* expression) = 0; |
| 202 |
virtual CAsymmetricObjectPropertyExpression* getAsymmetricObjectProperty(CObjectPropertyTermExpression* expression) = 0; |
| 203 |
virtual CReflexiveObjectPropertyExpression* getReflexiveObjectProperty(CObjectPropertyTermExpression* expression) = 0; |
| 204 |
virtual CIrreflexiveObjectPropertyExpression* getIrreflexiveObjectProperty(CObjectPropertyTermExpression* expression) = 0; |
| 205 |
|
| 206 |
|
| 207 |
// protected methods |
| 208 |
protected: |
| 209 |
|
| 210 |
// protected variables |
| 211 |
protected: |
| 212 |
|
| 213 |
// private methods |
| 214 |
private: |
| 215 |
|
| 216 |
// private variables |
| 217 |
private: |
| 218 |
|
| 219 |
}; |
| 220 |
|
| 221 |
}; // end namespace Parser |
| 222 |
|
| 223 |
}; // end namespace Konclude |
| 224 |
|
| 225 |
#endif // KONCLUDE_PARSER_CRBOXAXIOMBUILDER_H |