Debian Codegraph @

Source/Reasoner/Query/CVariableBindingStringDataResult.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
21 #ifndef KONCLUDE_REASONER_QUERY_CVARIABLEBINDINGSTRINGDATARESULT_H
22 #define KONCLUDE_REASONER_QUERY_CVARIABLEBINDINGSTRINGDATARESULT_H
23
24 // Libraries includes
25 #include "CVariableBindingStringResult.h"
26
27 // Namespace includes
28
29 // Other includes
30 #include "Reasoner/Ontology/CIRIName.h"
31
32 // Logger includes
33 #include "Logger/CLogger.h"
34
35
36
37 namespace Konclude {
38
39 namespace Reasoner {
40
41 using namespace Ontology;
42
43 namespace Query {
44
45 /*!
46 *
47 * \class CVariableBindingNamedIndividualResult
48 * \author Andreas Steigmiller
49 * \version 0.1
50 * \brief TODO
51 *
52 */
53 class CVariableBindingStringDataResult : public CVariableBindingStringResult {
54 // public methods
55 public:
56 //! Constructor
57 CVariableBindingStringDataResult();
58 CVariableBindingStringDataResult(const QString& bindingString, VariableBindingType type);
59
60
61 //! Destructor
62 virtual ~CVariableBindingStringDataResult();
63
64 virtual CVariableBindingResult* initVariableBinding(const CIndividualReference& indiRef, CIndividualNameResolver* indiNameResolver);
65 virtual CVariableBindingResult* initVariableBinding(const CIndividualReference& indiRef, const QString& resolvedIndiName);
66
67 virtual CVariableBindingResult* initVariableBinding(CConcept* concept);
68 virtual CVariableBindingResult* initVariableBinding(CIndividual* individual);
69 virtual CVariableBindingResult* initVariableBinding(CDataLiteral* dataLiteral);
70 virtual CVariableBindingResult* initVariableBinding(CRole* role);
71
72
73 void* getData();
74 CDataLiteral* getDataLiteral();
75 cint64 getDataIndividualId();
76
77 virtual CVariableBindingResult* createCopy();
78
79 virtual QPair<QString, QString> getLiteralDatatypeDatavalueBindingStringPair();
80
81 // protected methods
82 protected:
83 virtual bool enfoceBindingString();
84
85 // protected variables
86 protected:
87 void* mData;
88
89 // private methods
90 private:
91
92 // private variables
93 private:
94
95 };
96
97 }; // end namespace Query
98
99 }; // end namespace Reasoner
100
101 }; // end namespace Konclude
102
103 #endif // KONCLUDE_REASONER_QUERY_CVARIABLEBINDINGSTRINGDATARESULT_H