Debian Codegraph @

Source/Control/Loader/CSPARQLResultsComparisonLoader.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_CONTROL_LOADER_CSPARQLRESULTSCOMPARISONLOADER_H
22 #define KONCLUDE_CONTROL_LOADER_CSPARQLRESULTSCOMPARISONLOADER_H
23
24 // Libraries includes
25 #include <QString>
26 #include <QRegExp>
27
28 // Namespace includes
29 #include "LoaderSettings.h"
30 #include "CLoader.h"
31 #include "CLoaderFactory.h"
32
33 // Other includes
34 #include "Reasoner/Query/CVariableBindingsAnswersSetResult.h"
35
36 #include "Parser/CSPARQLQtXMLResultParser.h"
37
38 #include "Config/CConfiguration.h"
39
40 // Logger includes
41 #include "Logger/CLogger.h"
42 #include "Logger/CLogIdentifier.h"
43
44
45 #include <stdio.h>
46 #include <iostream>
47
48
49 namespace Konclude {
50
51 using namespace Config;
52 using namespace Logger;
53 using namespace Parser;
54 using namespace Reasoner::Query;
55
56 namespace Control {
57
58 namespace Loader {
59
60 /*!
61 *
62 * \class CSPARQLResultsComparisonLoader
63 * \author Andreas Steigmiller
64 * \version 0.1
65 * \brief TODO
66 *
67 */
68 class CSPARQLResultsComparisonLoader : public CLoader {
69 // public methods
70 public:
71 //! Constructor
72 CSPARQLResultsComparisonLoader();
73
74 //! Destructor
75 virtual ~CSPARQLResultsComparisonLoader();
76
77
78 virtual CLoader *init(CLoaderFactory *loaderFactory = 0, CConfiguration *config = 0);
79 virtual CLoader *load();
80 virtual CLoader *exit();
81
82
83
84 // protected methods
85 protected:
86 bool isVariableBindingResultSimilarTo(const QString& responseFileString, const QString& otherResponseFileString, const QString& reportingFileName);
87 bool isVariableBindingResultSimilarTo(CVariableBindingsAnswersSetResult* varBindingResult, cint64 nodeNumber, const QString& otherResponseFileString, QHash<QString, cint64>* variableNameIndexHash, const QString& reportingFileName);
88
89
90 // protected variables
91 protected:
92 QString mReqFileString;
93 QString mCompFileString;
94 QString mResFileString;
95
96 CLogIdentifier mLogIdentifier;
97
98 cint64 mDifferencesLoggingLimit;
99
100 CSPARQLQtXMLResultParser mSPARQLResultParser;
101
102 CConfiguration *loaderConfig;
103
104
105 // private methods
106 private:
107
108 // private variables
109 private:
110
111 };
112
113 }; // end namespace Loader
114
115 }; // end namespace Control
116
117 }; // end namespace Konclude
118
119 #endif // KONCLUDE_CONTROL_LOADER_CSPARQLRESULTSCOMPARISONLOADER_H