Debian Codegraph @

Source/Reasoner/Triples/CRedlandStoredTriplesDataLinkerIterator.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_CREDLANDSTOREDTRIPLESDATALINKERITERATOR_H
23 #define KONCLUDE_REASONER_TRIPLES_CREDLANDSTOREDTRIPLESDATALINKERITERATOR_H
24
25 // Libraries includes
26
27
28 // Namespace includes
29 #include "TriplesSettings.h"
30 #include "CTriplesDataIterator.h"
31
32
33 // Other includes
34 #include "Utilities/Container/CLinker.h"
35 #include "Utilities/UtilitiesSettings.h"
36
37 #include "Reasoner/Ontology/OntologySettings.h"
38
39 #include "redland.h"
40
41 // Logger includes
42 #include "Logger/CLogger.h"
43
44
45 namespace Konclude {
46
47 using namespace Utilities;
48 using namespace Utilities::Container;
49
50 namespace Reasoner {
51
52 namespace Triples {
53
54
55
56
57 /*!
58 *
59 * \class CRedlandStoredTriplesDataLinkerIterator
60 * \author Andreas Steigmiller
61 * \version 0.1
62 * \brief TODO
63 *
64 */
65 class CRedlandStoredTriplesDataLinkerIterator : public CTriplesDataIterator {
66 // public methods
67 public:
68 //! Constructor
69 CRedlandStoredTriplesDataLinkerIterator(CXLinker<librdf_statement*>* statementLinker);
70 ~CRedlandStoredTriplesDataLinkerIterator();
71
72
73
74 virtual QString getNodeString(cint64 pos);
75 virtual TRIPLE_NODE_TYPE getNodeType(cint64 pos);
76
77 TRIPLE_NODE_TYPE getNodeType(librdf_node* node);
78
79
80 virtual bool hasValue();
81 virtual CTriplesDataIterator* moveNext();
82
83 // protected methods
84 protected:
85
86 // protected variables
87 protected:
88 CXLinker<librdf_statement*>* mStatementLinker;
89 QString mDefaultDatatypeString;
90
91 // private methods
92 private:
93
94 // private variables
95 private:
96
97 };
98
99 }; // end namespace Triples
100
101 }; // end namespace Reasoner
102
103 }; // end namespace Konclude
104
105 #endif // KONCLUDE_REASONER_TRIPLES_CREDLANDSTOREDTRIPLESDATALINKERITERATOR_H
106
107 #endif // !KONCLUDE_REDLAND_INTEGRATION