Debian Codegraph @

Source/Test/Evaluation/CReasonerEvaluationRequestClientOWLlinkThread.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_CREASONEREVALUATIONOWLLINKREQUESTCLIENTTHREAD_H
22 #define KONCLUDE_TEST_EVALUATION_CREASONEREVALUATIONOWLLINKREQUESTCLIENTTHREAD_H
23
24 // Libraries includes
25 #include <QDir>
26
27 // Namespace includes
28 #include "EvaluationSettings.h"
29 #include "CReasonerEvaluationRequestClientBaseThread.h"
30 #include "CReasonerEvaluationRequestResult.h"
31 #include "CReasonerEvaluationRequestResponseOWLlink.h"
32
33 // Other includes
34 #include "Config/CConfiguration.h"
35 #include "Config/CConfigDataReader.h"
36
37 #include "Test/Evaluation/Events/CReasonerEvaluationStartEvent.h"
38 #include "Test/Evaluation/Events/CReasonerEvaluationNextEvent.h"
39
40 #include "Concurrent/CIntervalThread.h"
41
42 #include "Network/HTTP/CQtHttpTransactionManager.h"
43
44 // Logger includes
45 #include "Logger/CLogger.h"
46 #include "Logger/CLogIdentifier.h"
47
48
49
50 namespace Konclude {
51
52 using namespace Config;
53 using namespace Concurrent;
54 using namespace Network::HTTP;
55
56 namespace Test {
57
58 namespace Evaluation {
59
60 using namespace Events;
61
62
63 /*!
64 *
65 * \class CReasonerEvaluationRequestClientThread
66 * \author Andreas Steigmiller
67 * \version 0.1
68 * \brief TODO
69 *
70 */
71 class CReasonerEvaluationRequestClientOWLlinkThread : public CReasonerEvaluationRequestClientBaseThread {
72 // public methods
73 public:
74 //! Constructor
75 CReasonerEvaluationRequestClientOWLlinkThread();
76
77 //! Destructor
78 virtual ~CReasonerEvaluationRequestClientOWLlinkThread();
79
80 virtual bool canHandleRequestFile(const QString& testFileString) override;
81
82 // protected methods
83 protected:
84 virtual bool loadReasonerRequests(const QString& initFileString, const QString& testFileString) override;
85 virtual bool loadReasonerRequest(const QString& requestFileString) override;
86
87 virtual bool sendNextRequest() override;
88 virtual bool parseResponse(QIODevice* device) override;
89
90 QDomElement getAdabtedRequestNode(QDomElement& el);
91
92 QDomElement getResolvedAbbreviatedIRIsNode(QDomElement& el, const QHash<QString,QString>& appreviatePrefixHash, const QString& xmlBase);
93 bool startsWithScheme(const QString& uriString);
94
95 QDomDocument createRequestDocument(const QDomElement& reqNode);
96
97
98 QDomElement getModifiedRequestNode(const QDomElement& el);
99
100 // protected variables
101 protected:
102
103
104 // private methods
105 private:
106
107 // private variables
108 private:
109
110 };
111
112 }; // end namespace Evaluation
113
114 }; // end namespace Test
115
116 }; // end namespace Konclude
117
118 #endif // KONCLUDE_TEST_EVALUATION_CREASONEREVALUATIONOWLLINKREQUESTCLIENTTHREAD_H