Debian Codegraph @

Source/Parser/CRDFRedlandExternalTriplesDSNConnectingParser.h

raw ◀ ▶
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 #ifdef KONCLUDE_REDLAND_INTEGRATION
21
22 #ifndef KONCLUDE_PARSER_CRDFREDLANDEXTERNALTRIPLESDSNCONNECTINGPARSER_H
23 #define KONCLUDE_PARSER_CRDFREDLANDEXTERNALTRIPLESDSNCONNECTINGPARSER_H
24
25 // Libraries includes
•26 #include <librdf.h>
27 #include <rasqal.h>
28 #include <stdio.h>
29 #include <ios>
30 #include <QIODevice>
31
32 // Namespace includes
33 #include "CParsingUtilities.h"
34 #include "COntologyBuilder.h"
35
36
37 // Other includes
38 #include "Utilities/UtilitiesSettings.h"
39
40 #include "Reasoner/Triples/CRedlandStoredTriplesData.h"
41
42 #include "Reasoner/Ontology/CConcreteOntology.h"
43
44 #include "Config/CConfiguration.h"
45 #include "Config/CConfigDataReader.h"
46
47
48 // Logger includes
49 #include "Logger/CLogger.h"
50 #include "Logger/CLogIdentifier.h"
51
52 using namespace Konclude::Logger;
53
54
55 namespace Konclude {
56
57 using namespace Reasoner::Triples;
58 using namespace Reasoner::Ontology;
59 using namespace std;
60
61 namespace Parser {
62
63
64
65
66 /*!
67 *
68 * \class CRDFRedlandExternalTriplesDSNConnectingParser
69 * \author Andreas Steigmiller
70 * \version 0.1
71 * \brief TODO
72 *
73 */
74 class CRDFRedlandExternalTriplesDSNConnectingParser : public CLogIdentifier {
75 // public methods
76 public:
77 //! Constructor
78 CRDFRedlandExternalTriplesDSNConnectingParser(COntologyBuilder* ontologyBuilder, CConfiguration* configuration = nullptr);
79
80 //! Destructor
81 virtual ~CRDFRedlandExternalTriplesDSNConnectingParser();
82
83
84 //virtual bool linkRemoteData(const QString& remoteAddress, const QString& remoteGraph);
85 bool parseTriplesFile(const QString& filename);
86
87 virtual bool connectExternalTriples(const QString& triplesDBName, const QString& dsnConfig);
88
89 QString getErrorString();
90 bool hasError();
91
92
93
94 // protected methods
95 protected:
96
97
98 // protected variables
99 protected:
100 COntologyBuilder* mOntologyBuilder;
101 bool mParsingError = false;
102 QString mErrorString;
103
104
105
106 CConfiguration* mConfiguration;
107
108
109 // private methods
110 private:
111
112
113 // private variables
114 private:
115
116
117
118 };
119
120 }; // end namespace Parser
121
122 }; // end namespace Konclude
123
124 #endif // KONCLUDE_PARSER_CRDFREDLANDEXTERNALTRIPLESDSNCONNECTINGPARSER_H
125
126 #endif // !KONCLUDE_REDLAND_INTEGRATION