| 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_CABOXAXIOMBUILDER_H |
| 22 |
#define KONCLUDE_PARSER_CABOXAXIOMBUILDER_H |
| 23 |
|
| 24 |
// Libraries includes |
| 25 |
|
| 26 |
|
| 27 |
// Namespace includes |
| 28 |
|
| 29 |
|
| 30 |
// Other includes |
| 31 |
#include "Parser/Expressions/CNamedIndividualExpression.h" |
| 32 |
#include "Parser/Expressions/CAnonymousIndividualExpression.h" |
| 33 |
#include "Parser/Expressions/CClassAssertionExpression.h" |
| 34 |
#include "Parser/Expressions/CObjectPropertyAssertionExpression.h" |
| 35 |
#include "Parser/Expressions/CNegativeObjectPropertyAssertionExpression.h" |
| 36 |
#include "Parser/Expressions/CSameIndividualExpression.h" |
| 37 |
#include "Parser/Expressions/CDifferentIndividualsExpression.h" |
| 38 |
#include "Parser/Expressions/CDataPropertyAssertionExpression.h" |
| 39 |
#include "Parser/Expressions/CNegativeDataPropertyAssertionExpression.h" |
| 40 |
#include "Parser/Expressions/CIndividualVariableExpression.h" |
| 41 |
#include "Parser/Expressions/CDataValueVariableExpression.h" |
| 42 |
#include "Parser/Expressions/CDataLiteralVariableExpression.h" |
| 43 |
|
| 44 |
|
| 45 |
// Logger includes |
| 46 |
#include "Logger/CLogger.h" |
| 47 |
|
| 48 |
using namespace Konclude::Logger; |
| 49 |
|
| 50 |
namespace Konclude { |
| 51 |
|
| 52 |
namespace Parser { |
| 53 |
|
| 54 |
using namespace Expression; |
| 55 |
|
| 56 |
|
| 57 |
/*! |
| 58 |
* |
| 59 |
* \class CABoxAxiomBuilder |
| 60 |
* \author Andreas Steigmiller |
| 61 |
* \version 0.1 |
| 62 |
* \brief TODO |
| 63 |
* |
| 64 |
*/ |
| 65 |
class CABoxAxiomBuilder { |
| 66 |
// public methods |
| 67 |
public: |
| 68 |
//! Constructor |
| 69 |
CABoxAxiomBuilder(); |
| 70 |
|
| 71 |
//! Destructor |
| 72 |
virtual ~CABoxAxiomBuilder(); |
| 73 |
|
| 74 |
virtual CNamedIndividualExpression* getNamedIndividual(const QString& individualName) = 0; |
| 75 |
virtual CNamedIndividualExpression* getNamedIndividual(const QStringRef& individualName) = 0; |
| 76 |
virtual CAnonymousIndividualExpression* getAnonymousIndividual(const QString& ontologyName, const QString& individualName) = 0; |
| 77 |
virtual CAnonymousIndividualExpression* getAnonymousIndividual(const QStringRef& ontologyName, const QStringRef& individualName) = 0; |
| 78 |
|
| 79 |
virtual CIndividualVariableExpression* getIndividualVariable(const QStringRef &individualVariableName, bool anonymousVariable) = 0; |
| 80 |
virtual CIndividualVariableExpression* getIndividualVariable(const QString &individualVariableName, bool anonymousVariable) = 0; |
| 81 |
|
| 82 |
|
| 83 |
virtual CDataValueVariableExpression* getDataValueVariable(const QStringRef &dataValueVariableName) = 0; |
| 84 |
virtual CDataValueVariableExpression* getDataValueVariable(const QString &dataValueVariableName) = 0; |
| 85 |
virtual CDataLiteralVariableExpression* getDataLiteralVariable(const QStringRef &dataLiteralVariableName) = 0; |
| 86 |
virtual CDataLiteralVariableExpression* getDataLiteralVariable(const QString &dataLiteralVariableName) = 0; |
| 87 |
|
| 88 |
|
| 89 |
virtual CClassAssertionExpression* getClassAssertion(const CEXPRESSIONLIST<CBuildExpression*>& expressions) = 0; |
| 90 |
virtual CClassAssertionExpression* getClassAssertion(CBuildExpression* expression1, CBuildExpression* expression2) = 0; |
| 91 |
virtual CObjectPropertyAssertionExpression* getObjectPropertyAssertion(const CEXPRESSIONLIST<CBuildExpression*>& expressions) = 0; |
| 92 |
virtual CObjectPropertyAssertionExpression* getObjectPropertyAssertion(CBuildExpression* expression1, CBuildExpression* expression2, CBuildExpression* expression3) = 0; |
| 93 |
virtual CNegativeObjectPropertyAssertionExpression* getNegativeObjectPropertyAssertion(const CEXPRESSIONLIST<CBuildExpression*>& expressions) = 0; |
| 94 |
virtual CNegativeObjectPropertyAssertionExpression* getNegativeObjectPropertyAssertion(CBuildExpression* expression1, CBuildExpression* expression2, CBuildExpression* expression3) = 0; |
| 95 |
virtual CSameIndividualExpression* getSameIndividual(const CEXPRESSIONLIST<CBuildExpression*>& expressions) = 0; |
| 96 |
virtual CDifferentIndividualsExpression* getDifferentIndividuals(const CEXPRESSIONLIST<CBuildExpression*>& expressions) = 0; |
| 97 |
virtual CDataPropertyAssertionExpression* getDataPropertyAssertion(const CEXPRESSIONLIST<CBuildExpression*>& expressions) = 0; |
| 98 |
virtual CDataPropertyAssertionExpression* getDataPropertyAssertion(CBuildExpression* expression1, CBuildExpression* expression2, CBuildExpression* expression3) = 0; |
| 99 |
virtual CNegativeDataPropertyAssertionExpression* getNegativeDataPropertyAssertion(const CEXPRESSIONLIST<CBuildExpression*>& expressions) = 0; |
| 100 |
virtual CNegativeDataPropertyAssertionExpression* getNegativeDataPropertyAssertion(CBuildExpression* expression1, CBuildExpression* expression2, CBuildExpression* expression3) = 0; |
| 101 |
|
| 102 |
|
| 103 |
virtual CClassAssertionExpression* getClassAssertion(CIndividualTermExpression* expression1, CClassTermExpression* expression2) = 0; |
| 104 |
virtual CObjectPropertyAssertionExpression* getObjectPropertyAssertion(CIndividualTermExpression* expression1, CIndividualTermExpression* expression2, CObjectPropertyTermExpression* expression3) = 0; |
| 105 |
virtual CNegativeObjectPropertyAssertionExpression* getNegativeObjectPropertyAssertion(CIndividualTermExpression* expression1, CIndividualTermExpression* expression2, CObjectPropertyTermExpression* expression3) = 0; |
| 106 |
virtual CSameIndividualExpression* getSameIndividual(const CEXPRESSIONLIST<CIndividualTermExpression*>& expressions) = 0; |
| 107 |
virtual CDifferentIndividualsExpression* getDifferentIndividuals(const CEXPRESSIONLIST<CIndividualTermExpression*>& expressions) = 0; |
| 108 |
virtual CDataPropertyAssertionExpression* getDataPropertyAssertion(CIndividualTermExpression* expression1, CDataLiteralTermExpression* expression2, CDataPropertyTermExpression* expression3) = 0; |
| 109 |
virtual CNegativeDataPropertyAssertionExpression* getNegativeDataPropertyAssertion(CIndividualTermExpression* expression1, CDataLiteralTermExpression* expression2, CDataPropertyTermExpression* expression3) = 0; |
| 110 |
|
| 111 |
|
| 112 |
virtual QString getOntologyAnonymousIdentifier(const QString& ontologyName); |
| 113 |
|
| 114 |
// protected methods |
| 115 |
protected: |
| 116 |
|
| 117 |
// protected variables |
| 118 |
protected: |
| 119 |
|
| 120 |
// private methods |
| 121 |
private: |
| 122 |
|
| 123 |
// private variables |
| 124 |
private: |
| 125 |
|
| 126 |
}; |
| 127 |
|
| 128 |
}; // end namespace Parser |
| 129 |
|
| 130 |
}; // end namespace Konclude |
| 131 |
|
| 132 |
#endif // KONCLUDE_PARSER_CABOXAXIOMBUILDER_H |