Debian Codegraph @

Source/Reasoner/Triples/CRedlandStoredTriplesIndividualAssertionIndexCacheData.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 #ifdef KONCLUDE_REDLAND_INTEGRATION
21
22 #ifndef KONCLUDE_REASONER_TRIPLES_CREDLANDSTOREDTRIPLESINDIVIDUALASSERTIONINDEXCACHEDATA_H
23 #define KONCLUDE_REASONER_TRIPLES_CREDLANDSTOREDTRIPLESINDIVIDUALASSERTIONINDEXCACHEDATA_H
24
25 // Libraries includes
26 #include <redland.h>
27
28
29 // Namespace includes
30 #include "TriplesSettings.h"
31 #include "CRedlandStoredTriplesIndividualAssertionIndexCacheDataUpdateHandler.h"
32 #include "CRedlandStoredTriplesRepresentativeIndividualAssertionsIndexData.h"
33 #include "CRedlandStoredTriplesIndividualAssertionIndexCacheExtensionData.h"
34
35
36 // Other includes
37 #include "Utilities/UtilitiesSettings.h"
38
39
40 // Logger includes
41 #include "Logger/CLogger.h"
42
43
44 namespace Konclude {
45
46 using namespace Utilities;
47
48 namespace Reasoner {
49
50 namespace Triples {
51
52
53
54 /*!
55 *
56 * \class CRedlandStoredTriplesIndividualAssertionIndexCacheData
57 * \author Andreas Steigmiller
58 * \version 0.1
59 * \brief TODO
60 *
61 */
62 class CRedlandStoredTriplesIndividualAssertionIndexCacheData {
63 // public methods
64 public:
65 //! Constructor
66 CRedlandStoredTriplesIndividualAssertionIndexCacheData(librdf_node* individualNode, cint64 indiviualId, CRedlandStoredTriplesIndividualAssertionIndexCacheDataUpdateHandler* releaser);
67
68 ~CRedlandStoredTriplesIndividualAssertionIndexCacheData();
69
70
71 librdf_node* getIndividualNode();
72 QString getIndividualName();
73 cint64 getIndividualId();
74
75 bool isAnonymous();
76 CRedlandStoredTriplesIndividualAssertionIndexCacheData* setAnonymous(bool anonymous);
77
78 bool isIndividualNonAnonymityStored();
79 CRedlandStoredTriplesIndividualAssertionIndexCacheData* setIndividualNonAnonymityStored(bool stored);
80
81
82 bool isIndividualIdStored();
83 CRedlandStoredTriplesIndividualAssertionIndexCacheData* setIndividualIdStored(bool stored);
84
85
86 CRedlandStoredTriplesRepresentativeIndividualAssertionsIndexData* getCurrentRepresentativeIndividualAssertionsIndexData();
87 CRedlandStoredTriplesIndividualAssertionIndexCacheData* setCurrentRepresentativeIndividualAssertionsIndexData(CRedlandStoredTriplesRepresentativeIndividualAssertionsIndexData* repData);
88
89
90
91 CRedlandStoredTriplesRepresentativeIndividualAssertionsIndexData* getStoredRepresentativeIndividualAssertionsIndexData();
92 CRedlandStoredTriplesIndividualAssertionIndexCacheData* setStoredRepresentativeIndividualAssertionsIndexData(CRedlandStoredTriplesRepresentativeIndividualAssertionsIndexData* repData);
93
94
95 CRedlandStoredTriplesIndividualAssertionIndexCacheExtensionData* getExtensionData(bool create = true);
96 CRedlandStoredTriplesIndividualAssertionIndexCacheData* clearExtensionData();
97
98
99 // protected methods
100 protected:
101
102 // protected variables
103 protected:
104 CRedlandStoredTriplesIndividualAssertionIndexCacheDataUpdateHandler* mReleaser;
105 librdf_node* mIndividualNode;
106 cint64 mIndividualId = 0;
107 bool mIdStored = false;
108 bool mAnonymous = true;
109 bool mNonAnonymityStored = false;
110
111 CRedlandStoredTriplesRepresentativeIndividualAssertionsIndexData* mCurrentRepresentativeIndividualAssertionsIndexData;
112 CRedlandStoredTriplesRepresentativeIndividualAssertionsIndexData* mStoredRepresentativeIndividualAssertionsIndexData;
113
114 CRedlandStoredTriplesIndividualAssertionIndexCacheExtensionData* mExtensionData = nullptr;
115
116
117 // private methods
118 private:
119
120 // private variables
121 private:
122
123 };
124
125
126 }; // end namespace Triples
127
128 }; // end namespace Reasoner
129
130 }; // end namespace Konclude
131
132 #endif // KONCLUDE_REASONER_TRIPLES_CREDLANDSTOREDTRIPLESINDIVIDUALASSERTIONINDEXCACHEDATA_H
133
134 #endif // !KONCLUDE_REDLAND_INTEGRATION