Debian Codegraph @

Source/Parser/Expressions/CQuerySPARQLSelectBasicGraphPatternExpression.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_EXPRESSION_CQUERYSPARQLSELECTBASICGRAPHPATTERNEXPRESSION_H
22 #define KONCLUDE_PARSER_EXPRESSION_CQUERYSPARQLSELECTBASICGRAPHPATTERNEXPRESSION_H
23
24
25 // Libraries includes
26
27
28 // Namespace includes
29 #include "CQueryExpression.h"
30 #include "CAxiomExpression.h"
31 #include "CNameAssociator.h"
32 #include "COrderedListVariableAssociator.h"
33 #include "CListAxiomExpressionAssociator.h"
34 #include "COrderedListOrderingTermExpressionAssociator.h"
35 #include "CListFilteringExpressionAssociator.h"
36 #include "CExpressionVariable.h"
37 #include "CQuerySPARQLBasicGraphPatternExpression.h"
38
39 // Other includes
40
41
42 // Logger includes
43 #include "Logger/CLogger.h"
44
45 using namespace Konclude::Logger;
46
47
48 namespace Konclude {
49
50 namespace Parser {
51
52 namespace Expression {
53
54 /*!
55 * \class CQuerySPARQLSelectBasicGraphPatternExpression
56 * \author Andreas Steigmiller
57 * \version 0.1
58 * \brief TODO
59 */
60 class CQuerySPARQLSelectBasicGraphPatternExpression : public CQuerySPARQLBasicGraphPatternExpression, public COrderedListVariableAssociator, public COrderedListOrderingTermExpressionAssociator {
61 // public methods
62 public:
63 //! Constructor
64 CQuerySPARQLSelectBasicGraphPatternExpression(const QString& name, const QList<CAxiomExpression*>& axiomExpressionList, const QList<CExpressionVariable*>& answerVariables, const CEXPRESSIONLIST<COrderingTermExpression*>& orderingList, const CEXPRESSIONLIST<CFilteringTermExpression*>& filteringList, bool distinct, cint64 limit = -1, cint64 offset = 0);
65 CQuerySPARQLSelectBasicGraphPatternExpression(const QString& name, const QList<CAxiomExpression*>& axiomExpressionList, const QList<CExpressionVariable*>& answerVariables, const QList<CExpressionVariable*>& ignoreCardVariables, bool distinct, cint64 limit = -1, cint64 offset = 0);
66
67 //! Destructor
68 virtual ~CQuerySPARQLSelectBasicGraphPatternExpression();
69
70 virtual ExpressionType getType();
71
72 virtual cint64 getStructuralHashValue();
73 virtual bool compareStructuralEquivalence(CBuildExpression* compareExpression);
74
75 bool isDistinct();
76
77 cint64 getLimit();
78 cint64 getOffset();
79
80 QList<CExpressionVariable*>* getIgnoreCardinalityVariableList();
81
82 virtual bool visitSubExpressions(CSubExpressionVisitor* subExpressionVisitor);
83
84
85 // protected methods
86 protected:
87
88 // protected variables
89 protected:
90 bool mDistinct;
91 cint64 mLimit;
92 cint64 mOffset;
93
94 CListVariableAssociator mIgnoreCardVarList;
95
96 // private methods
97 private:
98
99 // private variables
100 private:
101
102 };
103
104 }; // end namespace Expression
105
106 }; // end namespace Parser
107
108 }; // end namespace Konclude
109
110 #endif // KONCLUDE_PARSER_EXPRESSION_CQUERYSPARQLSELECTBASICGRAPHPATTERNEXPRESSION_H