Debian Codegraph @

Source/Test/COWLFileOWLlinkIncrementalAssertionRequestGenerator.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_COWLFILEOWLLINKINCREMENTALASSERTIONREQUESTGENERATOR_H
22 #define KONCLUDE_TEST_COWLFILEOWLLINKINCREMENTALASSERTIONREQUESTGENERATOR_H
23
24 // Libraries includes
25 #include <QProcess>
26 #include <QDir>
27 #include <QDomDocument>
28 #include <iostream>
29
30 // Namespace includes
31
32
33 // Other includes
34 #include "Config/CConfiguration.h"
35 #include "Config/CConfigDataReader.h"
36
37 #include "Reasoner/Generator/CConcreteOntologyEntityCollectorBuilder.h"
38 #include "Parser/COWL2QtXMLOntologyStreamParser.h"
39
40
41 // Logger includes
42 #include "Logger/CLogger.h"
43 #include "Logger/CLogIdentifier.h"
44
45
46 using namespace std;
47
48
49 namespace Konclude {
50
51 using namespace Config;
52 using namespace Concurrent;
53 using namespace Reasoner::Generator;
54 using namespace Parser;
55
56 namespace Test {
57
58
59 /*!
60 *
61 * \class COWLFileOWLlinkIncrementalAssertionRequestGenerator
62 * \author Andreas Steigmiller
63 * \version 0.1
64 * \brief TODO
65 *
66 */
67 class COWLFileOWLlinkIncrementalAssertionRequestGenerator : public CLogIdentifier {
68
69 // public methods
70 public:
71 //! Constructor
72 COWLFileOWLlinkIncrementalAssertionRequestGenerator(CConfiguration *config);
73
74 //! Destructor
75 virtual ~COWLFileOWLlinkIncrementalAssertionRequestGenerator();
76
77 bool generateOWLlinkIncrementalAssertionRequests(const QString& requestFileName, const QString& responseFileName, double removeAssertionPercentage, double addAssertionPercentage, cint64 testCount);
78 bool generateOWLlinkIncrementalAssertionRequests(const QString& requestFileName, const QString& responseFileName, cint64 removeAssertionCount, cint64 addAssertionCount, cint64 testCount);
79 bool generateOWLlinkIncrementalAssertionConsistencyRequest(const QString& requestFileName, const QString& responseFileName, QList<QDomElement>& removalAssertionList, QList<QDomElement>& additionAssertionList);
80
81 // protected methods
82 protected:
83 QDomDocument createRequestDocument();
84
85 QList<QDomElement> loadOntologyAssertions(const QString& requestFileName);
86
87 virtual QDomElement getFirstReasoningRequestNode(QDomDocument& document) = 0;
88 virtual QDomElement getSecondReasoningRequestNode(QDomDocument& document) = 0;
89
90
91 // protected variables
92 protected:
93 CConfiguration* mConfig;
94
95 QString mReasonerTestKBName;
96 QString mRequestTypeName;
97
98 // private methods
99 private:
100
101 // private variables
102 private:
103
104 };
105
106 }; // end namespace Test
107
108 }; // end namespace Konclude
109
110 #endif // KONCLUDE_TEST_COWLFILEOWLLINKINCREMENTALASSERTIONREQUESTGENERATOR_H