Debian Codegraph @

Source/Control/Command/Instructions/CImportKnowledgeBaseOWLAutoOntologyCommand.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_COMMAND_CImportKnowledgeBaseOWLAutoOntologyCommand_H
22 #define KONCLUDE_CONTROL_COMMAND_CImportKnowledgeBaseOWLAutoOntologyCommand_H
23
24 // Libraries includes
25 #include <QString>
26 #include <QDomElement>
27 #include <QMap>
28
29 // Namespace includes
30 #include "CLoadKnowledgeBaseCommand.h"
31 #include "CKnowledgeBaseRevisionCommandProvider.h"
32 #include "CLoadKnowledgeBaseData.h"
33
34 // Other includes
35
36 #include "Control/Command/CommandSettings.h"
37 #include "Control/Command/CCommand.h"
38 #include "Control/Command/CPreconditionCommand.h"
39 #include "Control/Command/CCommandProcessedPrecondition.h"
40
41
42 // Logger includes
43 #include "Logger/CLogger.h"
44
45 using namespace Konclude::Logger;
46
47
48 namespace Konclude {
49
50 namespace Control {
51
52 namespace Command {
53
54 namespace Instructions {
55
56 /*!
57 *
58 * \class CImportKnowledgeBaseOWLAutoOntologyCommand
59 * \author Andreas Steigmiller
60 * \version 0.1
61 * \brief TODO
62 *
63 */
64 class CImportKnowledgeBaseOWLAutoOntologyCommand : public CLoadKnowledgeBaseCommand, public CKnowledgeBaseRevisionCommandProvider {
65 // public methods
66 public:
67 //! Constructor
68 CImportKnowledgeBaseOWLAutoOntologyCommand(const QString &knowledgeBaseNameString, const QStringList& loadIRIs, const QMap<QString,QString>& ontoIRIMap, CKnowledgeBaseRevisionCommandProvider *ontologyRevisionProviderCommand, CCommand *parentSuperCommand = 0);
69
70 //! Destructor
71 virtual ~CImportKnowledgeBaseOWLAutoOntologyCommand();
72
73 virtual qint64 getCommandTag();
74 virtual QString getBriefCommandDescription();
75
76 virtual COntologyRevision* getOntologyRevision();
77
78 virtual bool getLoadImports();
79
80 virtual QStringList getLoadIRIStrings();
81 virtual QMap<QString,QString> getOntologieIRIMappings();
82
83 virtual CCommand* getCommand();
84
85 // protected methods
86 protected:
87
88 // protected variables
89 protected:
90 QStringList mLoadIRIs;
91 QMap<QString,QString> mOntoIRIMapping;
92 bool mLoadImports;
93
94 CKnowledgeBaseRevisionCommandProvider* mOntologyRevisionProviderCommand;
95
96 // private methods
97 private:
98
99 // private variables
100 private:
101
102 };
103
104 }; // end namespace Instructions
105
106 }; // end namespace Command
107
108 }; // end namespace Control
109
110 }; // end namespace Konclude
111
112 #endif // KONCLUDE_CONTROL_COMMAND_CImportKnowledgeBaseOWLAutoOntologyCommand_H