Debian Codegraph @

Source/Parser/CRDFRedlandRaptorSimpleConcurrentParser.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 #ifdef KONCLUDE_REDLAND_INTEGRATION
21
22 #ifndef KONCLUDE_PARSER_CRDFREDLANDRAPTORSIMPLECONCURRENTPARSER_H
23 #define KONCLUDE_PARSER_CRDFREDLANDRAPTORSIMPLECONCURRENTPARSER_H
24
25 // Libraries includes
26 #include <Redland.h>
27 #include <rasqal.h>
28 #include <stdio.h>
29 #include <ios>
30 #include <QIODevice>
31 #include <QtConcurrent>
32
33 // Namespace includes
34 #include "CParsingUtilities.h"
35 #include "COntologyBuilder.h"
36 #include "CRDFRedlandRaptorParser.h"
37
38
39 // Other includes
40 #include "Utilities/UtilitiesSettings.h"
41
42 #include "Reasoner/Triples/CRedlandStoredTriplesData.h"
43
44 #include "Reasoner/Ontology/CConcreteOntology.h"
45
46 #include "Config/CConfiguration.h"
47 #include "Config/CConfigDataReader.h"
48
49
50 // Logger includes
51 #include "Logger/CLogger.h"
52 #include "Logger/CLogIdentifier.h"
53
54 using namespace Konclude::Logger;
55
56
57 namespace Konclude {
58
59 using namespace Reasoner::Triples;
60 using namespace Reasoner::Ontology;
61 using namespace std;
62
63 namespace Parser {
64
65
66
67
68 /*!
69 *
70 * \class CRDFRaptorParser
71 * \author Andreas Steigmiller
72 * \version 0.1
73 * \brief TODO
74 *
75 */
76 class CRDFRedlandRaptorSimpleConcurrentParser : public CRDFRedlandRaptorParser {
77 // public methods
78 public:
79 //! Constructor
80 CRDFRedlandRaptorSimpleConcurrentParser(COntologyBuilder* ontologyBuilder, CTRIPLES_DATA_UPDATE_TYPE updateType, QString redlandParsingFormat = "rdfxml", CConfiguration* configuration = nullptr);
81
82 //! Destructor
83 virtual ~CRDFRedlandRaptorSimpleConcurrentParser();
84
85
86 virtual bool parseTriples(QIODevice* ioDevice, const QString& baseUri);
87
88
89
90 // protected methods
91 protected:
92
93
94 // protected variables
95 protected:
96 cint64 mConcurrentOffsetSplitSize = 50000000;
97
98
99 // private methods
100 private:
101
102
103 // private variables
104 private:
105
106
107
108 };
109
110 }; // end namespace Parser
111
112 }; // end namespace Konclude
113
114 #endif // KONCLUDE_PARSER_CRDFREDLANDRAPTORSIMPLECONCURRENTPARSER_H
115
116 #endif // !KONCLUDE_REDLAND_INTEGRATION