Debian Codegraph @

Source/Parser/CSPARQLSimpleManagementParser.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_CSPARQLSIMPLEMANAGEMENTPARSER_H
22 #define KONCLUDE_PARSER_CSPARQLSIMPLEMANAGEMENTPARSER_H
23
24 // Libraries includes
25
26
27 // Namespace includes
28 #include "CQueryParser.h"
29 #include "COntologyParser.h"
30 #include "CSPARQLSimpleParser.h"
31
32 // Other includes
33
34 #include "Control/Command/CCommandDelegater.h"
35 #include "Control/Command/CCommandProcessedPrecondition.h"
36
37 #include "Control/Command/Instructions/CCreateKnowledgeBaseRevisionUpdateCommand.h"
38 #include "Control/Command/Instructions/CLoadKnowledgeBaseOWLAutoOntologyCommand.h"
39 #include "Control/Command/Instructions/CCreateKnowledgeBaseCommand.h"
40 #include "Control/Command/Instructions/CReleaseKnowledgeBaseCommand.h"
41 #include "Control/Command/Instructions/CRealizeQueryCommand.h"
42 #include "Control/Command/Instructions/CClassifyQueryCommand.h"
43 #include "Control/Command/Instructions/CPrepareKnowledgeBaseCommand.h"
44 #include "Control/Command/Instructions/CGetCurrentKnowledgeBaseRevisionCommand.h"
45 #include "Control/Command/Instructions/CConnectKnowledgeBaseExternalTriplesDSNCommand.h"
46
47 // Logger includes
48 #include "Logger/CLogger.h"
49
50 using namespace Konclude::Logger;
51
52
53 namespace Konclude {
54
55 namespace Parser {
56
57 using namespace Control::Command;
58 using namespace Control::Command::Instructions;
59
60
61 /*!
62 *
63 * \class CSPARQLSimpleManagementParser
64 * \author Andreas Steigmiller
65 * \version 0.1
66 * \brief TODO
67 *
68 */
69 class CSPARQLSimpleManagementParser : public CSPARQLSimpleParser {
70 // public methods
71 public:
72 //! Constructor
73 CSPARQLSimpleManagementParser(CCommandDelegater *commandDelegater, const QString& kbName, CCommand* command);
74
75 //! Destructor
76 virtual ~CSPARQLSimpleManagementParser();
77
78 virtual bool parseUpdateFile(const QString& filename);
79 virtual bool parseUpdateText(const QString& filetext);
80 virtual bool parseUpdateTextList(const QStringList& queryTextList);
81
82 // protected methods
83 protected:
84 bool processParts(QStringList& parsedParts);
85
86 QString getGraphName(const QString& currentPartString, QStringList& parsedParts, bool directGraphReference);
87
88 // protected variables
89 protected:
90 CCommandDelegater *mCommandDelegater;
91 CCommand* mCommand;
92 QString mKBName;
93
94
95 // private methods
96 private:
97
98
99 // private variables
100 private:
101
102
103
104 };
105
106 }; // end namespace Parser
107
108 }; // end namespace Konclude
109
110 #endif // KONCLUDE_PARSER_CSPARQLSIMPLEMANAGEMENTPARSER_H