/* * Copyright (C) 2013-2015, 2019 by the Konclude Developer Team. * * This file is part of the reasoning system Konclude. * For details and support, see . * * Konclude is free software: you can redistribute it and/or modify * it under the terms of version 3 of the GNU Lesser General Public * License (LGPLv3) as published by the Free Software Foundation. * * Konclude is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU (Lesser) General Public License for more details. * * You should have received a copy of the GNU (Lesser) General Public * License along with Konclude. If not, see . * */ #ifndef KONCLUDE_PARSER_CQUERYBUILDER_H #define KONCLUDE_PARSER_CQUERYBUILDER_H // Libraries includes #include #include #include // Namespace includes #include "Expressions/CBuildExpression.h" #include "Expressions/CClassExpression.h" // Other includes #include "Expressions/CQueryIsClassSatisfiableExpression.h" #include "Expressions/CQueryAreClassesEquivalentExpression.h" #include "Expressions/CQueryAreClassesDisjointExpression.h" #include "Expressions/CQueryIsClassSubsumedByExpression.h" #include "Expressions/CQueryIsInstanceOfExpression.h" #include "Expressions/CQueryGetFlattenedTypesExpression.h" #include "Expressions/CQueryGetFlattenedInstancesExpression.h" #include "Expressions/CQueryGetTypesExpression.h" #include "Expressions/CQueryGetInstancesExpression.h" #include "Expressions/CQueryGetSuperClassesExpression.h" #include "Expressions/CQueryGetSubClassesExpression.h" #include "Expressions/CQueryGetEquivalentClassesExpression.h" #include "Expressions/CQueryIsEntailedExpression.h" #include "Expressions/CQueryGetObjectPropertyTargetsExpression.h" #include "Expressions/CQueryGetFlattenedObjectPropertyTargetsExpression.h" #include "Expressions/CQueryGetDeterministicIndividualsExpression.h" #include "Expressions/CQueryGetNondeterministicIndividualsExpression.h" #include "Expressions/CQueryGetDeterministicClassAssertionsExpression.h" #include "Expressions/CQueryGetNondeterministicClassAssertionsExpression.h" #include "Expressions/CQueryGetSameIndividualsExpression.h" #include "Expressions/CQueryGetSubObjectPropertiesExpression.h" #include "Expressions/CQueryGetSuperObjectPropertiesExpression.h" #include "Expressions/CQueryGetEquivalentObjectPropertiesExpression.h" #include "Expressions/CQueryGetSubDataPropertiesExpression.h" #include "Expressions/CQueryGetSuperDataPropertiesExpression.h" #include "Expressions/CQueryGetEquivalentDataPropertiesExpression.h" #include "Expressions/CQueryGetSubObjectPropertyHierarchyExpression.h" #include "Expressions/CQueryGetSubDataPropertyHierarchyExpression.h" #include "Expressions/CQueryIsObjectPropertySatisfiableExpression.h" #include "Expressions/CQueryIsDataPropertySatisfiableExpression.h" #include "Expressions/CQueryGetObjectPropertiesBetweenExpression.h" #include "Expressions/CQueryGetObjectPropertiesOfTargetExpression.h" #include "Expressions/CQueryGetObjectPropertiesOfSourceExpression.h" #include "Expressions/CQueryGetFlattenedObjectPropertySourcesExpression.h" #include "Expressions/CQueryGetObjectPropertySourcesExpression.h" #include "Expressions/CQueryingTemporaryNamedIndividualExpression.h" #include "Expressions/CQueryingTemporaryInverseObjectPropertyOfExpression.h" // Logger includes #include "Logger/CLogger.h" using namespace Konclude::Logger; namespace Konclude { namespace Parser { using namespace Expression; /*! * * \class CQueryBuilder * \author Andreas Steigmiller * \version 0.1 * \brief TODO * */ class CQueryBuilder { // public methods public: //! Constructor CQueryBuilder(); //! Destructor virtual ~CQueryBuilder(); virtual CQueryingTemporaryNamedIndividualExpression* getQueryingTemporaryNamedIndividual(const QString& indiName) = 0; virtual CQueryingTemporaryInverseObjectPropertyOfExpression* getQueryingTemporaryInverseObjectProperty(CObjectPropertyTermExpression* expression) = 0; virtual CQueryIsClassSatisfiableExpression* getIsClassSatisfiableQuery(const CEXPRESSIONLIST& testClassExpressions, const QString& queryName) = 0; virtual CQueryAreClassesEquivalentExpression* getAreClassesEquivalenceQuery(const CEXPRESSIONLIST& testClassExpressions, const QString& queryName) = 0; virtual CQueryAreClassesDisjointExpression* getAreClassesDisjointQuery(const CEXPRESSIONLIST& testClassExpressions, const QString& queryName) = 0; virtual CQueryIsClassSubsumedByExpression* getIsClassSubsumedByQuery(const CEXPRESSIONLIST& testClassExpressions, const QString& queryName) = 0; virtual CQueryIsInstanceOfExpression* getIsInstanceOfQuery(const CEXPRESSIONLIST& testClassExpressions, const QString& queryName) = 0; virtual CQueryGetFlattenedTypesExpression* getGetFlattenedTypesQuery(const CEXPRESSIONLIST& testClassExpressions, bool direct, const QString& queryName) = 0; virtual CQueryGetFlattenedInstancesExpression* getGetFlattenedInstancesQuery(const CEXPRESSIONLIST& testClassExpressions, bool direct, const QString& queryName) = 0; virtual CQueryGetTypesExpression* getGetTypesQuery(const CEXPRESSIONLIST& testClassExpressions, bool direct, const QString& queryName) = 0; virtual CQueryGetSameIndividualsExpression* getGetSameIndividualsQuery(const CEXPRESSIONLIST& testClassExpressions, const QString& queryName) = 0; virtual CQueryGetInstancesExpression* getGetInstancesQuery(const CEXPRESSIONLIST& testClassExpressions, bool direct, const QString& queryName) = 0; virtual CQueryGetSubClassesExpression* getGetSubClassesQuery(const CEXPRESSIONLIST& testClassExpressions, bool direct, const QString& queryName) = 0; virtual CQueryGetSuperClassesExpression* getGetSuperClassesQuery(const CEXPRESSIONLIST& testClassExpressions, bool direct, const QString& queryName) = 0; virtual CQueryGetEquivalentClassesExpression* getGetEquivalentClassesQuery(const CEXPRESSIONLIST& testClassExpressions, const QString& queryName) = 0; virtual CQueryIsEntailedExpression* getIsEntailedQuery(const CEXPRESSIONLIST& testClassExpressions, const QString& queryName) = 0; virtual CQueryGetObjectPropertyTargetsExpression* getGetObjectPropertyTargetsQuery(const CEXPRESSIONLIST& expressions, const QString& queryName) = 0; virtual CQueryGetFlattenedObjectPropertyTargetsExpression* getGetFlattenedObjectPropertyTargetsQuery(const CEXPRESSIONLIST& expressions, const QString& queryName) = 0; virtual CQueryGetObjectPropertySourcesExpression* getGetObjectPropertySourcesQuery(const CEXPRESSIONLIST& expressions, const QString& queryName) = 0; virtual CQueryGetFlattenedObjectPropertySourcesExpression* getGetFlattenedObjectPropertySourcesQuery(const CEXPRESSIONLIST& expressions, const QString& queryName) = 0; virtual CQueryGetObjectPropertiesOfSourceExpression* getGetObjectPropertiesOfSourceQuery(const CEXPRESSIONLIST& expressions, const QString& queryName) = 0; virtual CQueryGetObjectPropertiesOfTargetExpression* getGetObjectPropertiesOfTargetQuery(const CEXPRESSIONLIST& expressions, const QString& queryName) = 0; virtual CQueryGetObjectPropertiesBetweenExpression* getGetObjectPropertiesBetweenQuery(const CEXPRESSIONLIST& expressions, const QString& queryName) = 0; virtual CQueryGetSubObjectPropertiesExpression* getGetSubObjectPropertiesQuery(const CEXPRESSIONLIST& testObjectPropertiesExpressions, bool direct, const QString& queryName) = 0; virtual CQueryGetSuperObjectPropertiesExpression* getGetSuperObjectPropertiesQuery(const CEXPRESSIONLIST& testObjectPropertiesExpressions, bool direct, const QString& queryName) = 0; virtual CQueryGetEquivalentObjectPropertiesExpression* getGetEquivalentObjectPropertiesQuery(const CEXPRESSIONLIST& testObjectPropertiesExpressions, const QString& queryName) = 0; virtual CQueryGetSubObjectPropertyHierarchyExpression* getGetSubObjectPropertyHierarchyQuery(const CEXPRESSIONLIST& testObjectPropertiesExpressions, const QString& queryName) = 0; virtual CQueryIsObjectPropertySatisfiableExpression* getIsObjectPropertySatisfiableQuery(const CEXPRESSIONLIST& testObjectPropertyExpressions, const QString& queryName) = 0; virtual CQueryGetSubDataPropertiesExpression* getGetSubDataPropertiesQuery(const CEXPRESSIONLIST& testDataPropertiesExpressions, bool direct, const QString& queryName) = 0; virtual CQueryGetSuperDataPropertiesExpression* getGetSuperDataPropertiesQuery(const CEXPRESSIONLIST& testDataPropertiesExpressions, bool direct, const QString& queryName) = 0; virtual CQueryGetEquivalentDataPropertiesExpression* getGetEquivalentDataPropertiesQuery(const CEXPRESSIONLIST& testDataPropertiesExpressions, const QString& queryName) = 0; virtual CQueryGetSubDataPropertyHierarchyExpression* getGetSubDataPropertyHierarchyQuery(const CEXPRESSIONLIST& testDataPropertiesExpressions, const QString& queryName) = 0; virtual CQueryIsDataPropertySatisfiableExpression* getIsDataPropertySatisfiableQuery(const CEXPRESSIONLIST& testDataPropertiesExpressions, const QString& queryName) = 0; virtual CQueryGetDeterministicIndividualsExpression* getGetDeterministicIndividualsQuery(const CEXPRESSIONLIST& expressions, const QString& queryName) = 0; virtual CQueryGetNondeterministicIndividualsExpression* getGetNondeterministicIndividualsQuery(const CEXPRESSIONLIST& expressions, const QString& queryName) = 0; virtual CQueryGetDeterministicClassAssertionsExpression* getGetDeterministicClassAssertionsQuery(const CEXPRESSIONLIST& expressions, const QString& queryName) = 0; virtual CQueryGetNondeterministicClassAssertionsExpression* getGetNondeterministicClassAssertionsQuery(const CEXPRESSIONLIST& expressions, const QString& queryName) = 0; // protected methods protected: // protected variables protected: // private methods private: // private variables private: }; }; // end namespace Parser }; // end namespace Konclude #endif // KONCLUDE_PARSER_CQUERYBUILDER_H