Debian Codegraph @

Source/Test/Evaluation/CReasonerEvaluationGroupRequestReasonerResultSubsumptionAnalyser.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_TEST_EVALUATION_CREASONEREVALUATIONGROUPREQUESTREASONERRESULTSUBSUMPTIONANALYSER_H
22 #define KONCLUDE_TEST_EVALUATION_CREASONEREVALUATIONGROUPREQUESTREASONERRESULTSUBSUMPTIONANALYSER_H
23
24 // Libraries includes
25 #include <QMap>
26 #include <QSet>
27 #include <QFile>
28 #include <QDir>
29
30 // Namespace includes
31 #include "EvaluationSettings.h"
32 #include "CReasonerEvaluationGNUPlotPlotter.h"
33 #include "CReasonerEvaluationHighchartPlotter.h"
34 #include "CReasonerEvaluationAnalyseContext.h"
35 #include "CReasonerEvaluationGroupRequestReasonerComparisonAnalyser.h"
36 #include "CReasonerEvaluationDataValueGroupCollectionReasonerComparison.h"
37 #include "CReasonerEvaluationDoubleDataValue.h"
38 #include "CReasonerEvaluationTableMultiFormatOutputWriter.h"
39 #include "CReasonerEvaluationStringListValue.h"
40
41
42 // Other includes
43 #include "Config/CConfiguration.h"
44
45 #include "Parser/COWLlinkQtXMLResultParser.h"
46 #include "Parser/CSPARQLQtXMLResultParser.h"
47
48
49 // Logger includes
50 #include "Logger/CLogger.h"
51
52
53
54 namespace Konclude {
55
56 using namespace Config;
57 using namespace Parser;
58
59 namespace Test {
60
61 namespace Evaluation {
62
63
64 /*!
65 *
66 * \class CReasonerEvaluationGroupRequestReasonerResultSubsumptionAnalyser
67 * \author Andreas Steigmiller
68 * \version 0.1
69 * \brief TODO
70 *
71 */
72 class CReasonerEvaluationGroupRequestReasonerResultSubsumptionAnalyser : public CReasonerEvaluationGroupRequestReasonerComparisonAnalyser {
73 // public methods
74 public:
75 //! Constructor
76 CReasonerEvaluationGroupRequestReasonerResultSubsumptionAnalyser();
77
78 //! Destructor
79 virtual ~CReasonerEvaluationGroupRequestReasonerResultSubsumptionAnalyser();
80
81
82
83
84 // protected methods
85 protected:
86 virtual bool analyseGroupedEvaluationData(const QStringList& groubList, const QStringList& requestList, const QStringList& reasonerList, const QString& outputDirectory, CReasonerEvaluationAnalyseContext* context, CReasonerEvaluationGroupRequestSelector* selector);
87
88 QString getPrettyTitleFromOutputFile(const QString& outputFile);
89
90 cint64 compareResultsSubsumptionWithOtherReasoners(const QString& groupString, const QString& requestString, const QString& reasonerString, CReasonerEvaluationStringListValue* stringListDataValue, const QStringList& reasonerList, const QString& detailedReportingOutputDirectory);
91
92 bool isVariableBindingResultSubsuming(CVariableBindingsAnswersSetResult* varBindingResult, cint64 nodeNumber, const QString& otherResponseFileString, QHash<QString, cint64>* variableNameIndexHash);
93
94 // protected variables
95 protected:
96 QString mOutputFileName;
97 CSPARQLQtXMLResultParser mSPARQLResultParser;
98 QHash<cint64, QHash<QPair<CReasonerEvaluationStringListValue*,CReasonerEvaluationStringListValue*>,cint64>* > mNumberCompareDiffCountHashHash;
99 QHash<QPair<CReasonerEvaluationStringListValue*,CReasonerEvaluationStringListValue*>,cint64> mReasonerCompareResultSubsumptionCountHash;
100
101 // private methods
102 private:
103
104 // private variables
105 private:
106
107 };
108
109 }; // end namespace Evaluation
110
111 }; // end namespace Test
112
113 }; // end namespace Konclude
114
115 #endif // KONCLUDE_TEST_EVALUATION_CREASONEREVALUATIONGROUPREQUESTREASONERRESULTSUBSUMPTIONANALYSER_H