Debian Codegraph @

Source/Reasoner/Triples/CRedlandStoredTriplesDataModelIterator.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_CREDLANDSTOREDTRIPLESDATAMODELITERATOR_H
23 #define KONCLUDE_REASONER_TRIPLES_CREDLANDSTOREDTRIPLESDATAMODELITERATOR_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 using namespace Ontology;
53
54 namespace Triples {
55
56
57
58
59 /*!
60 *
61 * \class CRedlandStoredTriplesDataModelIterator
62 * \author Andreas Steigmiller
63 * \version 0.1
64 * \brief TODO
65 *
66 */
67 class CRedlandStoredTriplesDataModelIterator : public CTriplesDataIterator {
68 // public methods
69 public:
70 //! Constructor
71 CRedlandStoredTriplesDataModelIterator(librdf_stream* stream);
72 ~CRedlandStoredTriplesDataModelIterator();
73
74
75
76 virtual QString getNodeString(cint64 pos);
77 virtual TRIPLE_NODE_TYPE getNodeType(cint64 pos);
78
79 TRIPLE_NODE_TYPE getNodeType(librdf_node* node);
80
81
82 virtual bool hasValue();
83 virtual CTriplesDataIterator* moveNext();
84
85 // protected methods
86 protected:
87
88 // protected variables
89 protected:
90 librdf_stream* mStream;
91 QString mDefaultDatatypeString;
92
93 // private methods
94 private:
95
96 // private variables
97 private:
98
99 };
100
101 }; // end namespace Triples
102
103 }; // end namespace Reasoner
104
105 }; // end namespace Konclude
106
107 #endif // KONCLUDE_REASONER_TRIPLES_CREDLANDSTOREDTRIPLESDATAMODELITERATOR_H
108
109 #endif // !KONCLUDE_REDLAND_INTEGRATION