Debian Codegraph @

Source/Parser/CSPARQLRedlandRasqalQueryParser.h

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
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 #ifdef KONCLUDE_REDLAND_INTEGRATION
22
23
24 #ifndef KONCLUDE_PARSER_CSPARQLREDLANDRASQALQUERYPARSER_H
25 #define KONCLUDE_PARSER_CSPARQLREDLANDRASQALQUERYPARSER_H
26
27 // Libraries includes
28 #include <Redland.h>
29
30
31 // Namespace includes
32 #include "CQueryParser.h"
33 #include "COntologyParser.h"
34 #include "CSPARQLQueryBuilder.h"
35 #include "COntologyBuilder.h"
36 #include "CSPARQLSimpleBuildingParser.h"
37 #include "CSPARQLQueryParser.h"
38
39
40 // Other includes
41 #include "Reasoner/Query/CRedlandRasqalBGPsCompositionQuery.h"
42
43 // Logger includes
44 #include "Logger/CLogger.h"
45
46 using namespace Konclude::Logger;
47
48
49 namespace Konclude {
50
51 using namespace Reasoner::Query;
52
53 namespace Parser {
54
55
56 /*!
57 *
58 * \class CSPARQLRedlandRasqalQueryParser
59 * \author Andreas Steigmiller
60 * \version 0.1
61 * \brief TODO
62 *
63 */
64 class CSPARQLRedlandRasqalQueryParser : public CSPARQLQueryParser {
65 // public methods
66 public:
67 //! Constructor
68 CSPARQLRedlandRasqalQueryParser(CConcreteOntology* baseOntology, CConcreteOntology* ontology, CConfigurationBase* config);
69
70 //! Destructor
71 virtual ~CSPARQLRedlandRasqalQueryParser();
72
73 virtual bool parseQueryFile(const QString& filename);
74 virtual bool parseQueryText(const QString& filetext);
75 virtual bool parseQueryTextList(const QStringList& queryTextList);
76 virtual bool parseQueryTextList(const QStringList& queryTextList, const QString& queryName);
77
78 CQuery* getQuery();
79
80 // protected methods
81 protected:
82 bool processQueryText(const QString& queryText, const QString& queryName = "Unknown-Rasqal-Query");
83
84 // protected variables
85 protected:
86 CConcreteOntology* mBaseOntology;
87 CConcreteOntology* mOntology;
88 CConfigurationBase* mConfig;
89
90 CRedlandRasqalBGPsCompositionQuery* mQuery;
91
92 // private methods
93 private:
94
95
96 // private variables
97 private:
98
99
100
101 };
102
103 }; // end namespace Parser
104
105 }; // end namespace Konclude
106
107 #endif // KONCLUDE_PARSER_CSPARQLREDLANDRASQALQUERYPARSER_H
108
109 #endif // KONCLUDE_REDLAND_INTEGRATION