Debian Codegraph @

Source/Reasoner/Triples/CRedlandStoredTriplesData.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_REASONER_TRIPLES_CREDLANDSTOREDTRIPLESDATA_H
23 #define KONCLUDE_REASONER_TRIPLES_CREDLANDSTOREDTRIPLESDATA_H
24
25 // Libraries includes
•26 #include <librdf.h>
27
28
29 // Namespace includes
30 #include "CTriplesData.h"
31 #include "TriplesSettings.h"
32 #include "CRedlandStoredTriplesDataModelIterator.h"
33 #include "CRedlandStoredTriplesDataLinkerIterator.h"
34
35
36 // Other includes
37
38 // Logger includes
39 #include "Logger/CLogger.h"
40
41
42 namespace Konclude {
43
44 namespace Reasoner {
45
46 namespace Triples {
47
48
49 /*!
50 *
51 * \class CRedlandStoredTriplesData
52 * \author Andreas Steigmiller
53 * \version 0.1
54 * \brief TODO
55 *
56 */
57 class CRedlandStoredTriplesData : public CTriplesData {
58 // public methods
59 public:
60 //! Constructor
61 CRedlandStoredTriplesData();
62 virtual ~CRedlandStoredTriplesData();
63
64 virtual CRedlandStoredTriplesData* initTriplesData(CTRIPLES_DATA_UPDATE_TYPE updateType, CRedlandStoredTriplesData* lastSharingTripleData = nullptr);
65
66
67 CRedlandStoredTriplesData* setRedlandModelStorageWorldData(librdf_world* world, librdf_storage* streamedStorage, librdf_model* indexedModel, CXLinker<librdf_statement*>* linker);
68 CRedlandStoredTriplesData* setRedlandWorldData(librdf_world* world);
69 CRedlandStoredTriplesData* setRedlandIndexedStorageData(librdf_storage* storage);
70 CRedlandStoredTriplesData* setRedlandIndexedModelData(librdf_model* model);
71
72 librdf_world* getRedlandWorld();
73 librdf_storage* getRedlandIndexedStorage();
74 librdf_model* getRedlandIndexedModel();
75
76 CXLinker<librdf_statement*>* getRedlandStatementLinker();
77 CRedlandStoredTriplesData* setRedlandStatementLinker(CXLinker<librdf_statement*>* linker);
78
79 virtual CTRIPLES_DATA_UPDATE_TYPE getUpdateType() override;
80
81 virtual CTriplesDataIterator* getTriplesDataIterator() override;
82
83 // protected methods
84 protected:
85
86 // protected variables
87 protected:
88 CTRIPLES_DATA_UPDATE_TYPE mUpdateType;
89
90 librdf_world* mWorld;
91 librdf_storage* mIndexedStorage;
92 librdf_model* mIndexedModel;
93
94 CXLinker<librdf_statement*>* mStatementLinker;
95
96 CRedlandStoredTriplesData* mLastSharingTripleData;
97
98 // private methods
99 private:
100
101 // private variables
102 private:
103
104 };
105
106
107 }; // end namespace Triples
108
109 }; // end namespace Reasoner
110
111 }; // end namespace Konclude
112
113 #endif // KONCLUDE_REASONER_TRIPLES_CREDLANDSTOREDTRIPLESDATA_H
114
115 #endif // !KONCLUDE_REDLAND_INTEGRATION