Debian Codegraph @

Source/Reasoner/Query/CVariableBindingStringResult.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_CVARIABLEBINDINGSTRINGRESULT_H
22 #define KONCLUDE_REASONER_QUERY_CVARIABLEBINDINGSTRINGRESULT_H
23
24 // Libraries includes
25 #include "CVariableBindingResult.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 CVariableBindingStringResult : public CVariableBindingResult {
54 // public methods
55 public:
56 //! Constructor
57 CVariableBindingStringResult();
58 CVariableBindingStringResult(const QString& bindingString, VariableBindingType type);
59
60
61 //! Destructor
62 virtual ~CVariableBindingStringResult();
63
64 CVariableBindingResult* initVariableBinding(const QString& bindingString, VariableBindingType type);
65 virtual CVariableBindingResult* initVariableBinding(const CIndividualReference& indiRef, CIndividualNameResolver* indiNameResolver);
66 virtual CVariableBindingResult* initVariableBinding(const CIndividualReference& indiRef, const QString& resolvedIndiName);
67 virtual CVariableBindingResult* initVariableBinding(CIndividual* individual);
68 virtual CVariableBindingResult* initVariableBinding(CConcept* concept);
69 virtual CVariableBindingResult* initVariableBinding(CRole* role);
70 virtual CVariableBindingResult* initVariableBinding(CDataLiteral* dataLiteral);
71
72
73 virtual VariableBindingType getVariableBindingType();
74 CVariableBindingStringResult* setVariableBindingType(VariableBindingType type);
75
76
77 const QString& getBindingString();
78 CVariableBindingStringResult* setBindingString(const QString& bindingString);
79
80
81 virtual QString getQueryResultString();
82 virtual bool isResultEquivalentTo(CQueryResult *otherQueryResult);
83
84 virtual QString getClassBindingString();
85 virtual QString getPropertyBindingString();
86 virtual QString getNamedIndividualBindingString();
87 virtual QString getLiteralDatatypeBindingString();
88 virtual QString getLiteralDatavalueBindingString();
89
90 virtual QPair<QString, QString> getLiteralDatatypeDatavalueBindingStringPair();
91
92
93
94 virtual CVariableBindingResult* createCopy();
95
96 // protected methods
97 protected:
98 virtual bool enfoceBindingString();
99
100 // protected variables
101 protected:
102 QString mBindingString;
103 VariableBindingType mType;
104
105
106 static const QString PREFIX_XML_PLAINLITERAL_DATATYPE_STRING;
107 static const QStringRef PREFIX_XML_PLAINLITERAL_DATATYPE_STRINGREF;
108
109 // private methods
110 private:
111
112 // private variables
113 private:
114
115 };
116
117 }; // end namespace Query
118
119 }; // end namespace Reasoner
120
121 }; // end namespace Konclude
122
123 #endif // KONCLUDE_REASONER_QUERY_CVARIABLEBINDINGSTRINGRESULT_H