Debian Codegraph @

Source/Control/Command/Instructions/CParseSPARQLQueryCommand.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_CONTROL_COMMAND_CPARSESPARQLQUERYCOMMAND_H
22 #define KONCLUDE_CONTROL_COMMAND_CPARSESPARQLQUERYCOMMAND_H
23
24 // Libraries includes
25 #include <QString>
26 #include <QDomElement>
27
28 // Namespace includes
29 #include "CParseOntologyCommand.h"
30 #include "CKnowledgeBaseRevisionCommandProvider.h"
31 #include "CQueriesCommandProvider.h"
32
33 // Other includes
34 #include "Control/Command/CommandSettings.h"
35 #include "Control/Command/CCommand.h"
36 #include "Control/Command/CPreconditionCommand.h"
37 #include "Control/Command/CCommandProcessedPrecondition.h"
38
39 #include "Reasoner/Query/CQuery.h"
40
41
42 // Logger includes
43 #include "Logger/CLogger.h"
44
45 using namespace Konclude::Logger;
46
47
48 namespace Konclude {
49
50 using namespace Reasoner::Query;
51
52 namespace Control {
53
54 namespace Command {
55
56 namespace Instructions {
57
58 /*!
59 *
60 * \class CParseSPARQLQueryCommand
61 * \author Andreas Steigmiller
62 * \version 0.1
63 * \brief TODO
64 *
65 */
66 class CParseSPARQLQueryCommand : public CParseOntologyCommand, public CKnowledgeBaseRevisionCommandProvider, public CQueriesCommandProvider {
67 // public methods
68 public:
69 //! Constructor
70 CParseSPARQLQueryCommand(const QStringList& queryTextList, CKnowledgeBaseRevisionCommandProvider *ontologyRevisionProviderCommand, CCommand *parentSuperCommand = 0);
71
72 //! Destructor
73 virtual ~CParseSPARQLQueryCommand();
74
75 virtual qint64 getCommandTag();
76
77 CParseSPARQLQueryCommand* addQueryText(const QStringList& queryTextList);
78
79 virtual QString getBriefCommandDescription();
80
81 virtual QStringList getSPARQLQueryTextList();
82
83 virtual COntologyRevision *getOntologyRevision();
84 virtual CCommand *getCommand();
85
86
87 virtual QList<CQuery*> getQueryList();
88
89 virtual CParseSPARQLQueryCommand* setQueryList(const QList<CQuery*>& queryList);
90
91
92 // protected methods
93 protected:
94
95 // protected variables
96 protected:
97 CKnowledgeBaseRevisionCommandProvider *revProvider;
98 QStringList mQueryTextList;
99 QList<CQuery*> mQueryList;
100
101 // private methods
102 private:
103
104 // private variables
105 private:
106
107 };
108
109 }; // end namespace Instructions
110
111 }; // end namespace Command
112
113 }; // end namespace Control
114
115 }; // end namespace Konclude
116
117 #endif // KONCLUDE_CONTROL_COMMAND_CPARSESPARQLQUERYCOMMAND_H