Debian Codegraph @

Source/Control/Command/Instructions/CChooseParseInstallKnowledgeBaseOWLXMLOntologyCommand.cpp

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 #include "CChooseParseInstallKnowledgeBaseOWLXMLOntologyCommand.h"
22
23
24 namespace Konclude {
25
26 namespace Control {
27
28 namespace Command {
29
30 namespace Instructions {
31
32 CChooseParseInstallKnowledgeBaseOWLXMLOntologyCommand::CChooseParseInstallKnowledgeBaseOWLXMLOntologyCommand(const QString &knowledgeBaseNameString, const QStringList& loadIRIs, CKnowledgeBaseRevisionCommandProvider *ontologyRevisionProviderCommand, CCommand *parentSuperCommand)
33 : CLoadKnowledgeBaseCommand(knowledgeBaseNameString,parentSuperCommand) {
34 mLoadIRIs = loadIRIs;
35 mOntologyRevisionProviderCommand = ontologyRevisionProviderCommand;
36 addCommandPrecondition(new CCommandProcessedPrecondition(mOntologyRevisionProviderCommand->getCommand()));
37 }
38
39
40 CChooseParseInstallKnowledgeBaseOWLXMLOntologyCommand::~CChooseParseInstallKnowledgeBaseOWLXMLOntologyCommand() {
41 }
42
43
44 qint64 CChooseParseInstallKnowledgeBaseOWLXMLOntologyCommand::getCommandTag() {
45 return CHOOSEPARSEINSTALLKNOWLEDGEBASEOWLXMLONTOLOGYCOMMAND;
46 }
47
48
49 COntologyRevision* CChooseParseInstallKnowledgeBaseOWLXMLOntologyCommand::getOntologyRevision() {
50 return mOntologyRevisionProviderCommand->getOntologyRevision();
51 }
52
53
54 QString CChooseParseInstallKnowledgeBaseOWLXMLOntologyCommand::getBriefCommandDescription() {
55 return QString("Choose-Parse-Install-'%1'-Knowledge-Base-OWL-XML-Ontology Command").arg(kbString);
56 }
57
58
59 QStringList CChooseParseInstallKnowledgeBaseOWLXMLOntologyCommand::getLoadIRIStrings() {
60 return mLoadIRIs;
61 }
62
63
64 bool CChooseParseInstallKnowledgeBaseOWLXMLOntologyCommand::getLoadImports() {
65 return mLoadImports;
66 }
67
68
69 QMap<QString,QString> CChooseParseInstallKnowledgeBaseOWLXMLOntologyCommand::getOntologieIRIMappings() {
70 return mOntoIRIMapping;
71 }
72
73 CCommand* CChooseParseInstallKnowledgeBaseOWLXMLOntologyCommand::getCommand() {
74 return this;
75 }
76
77 }; // end namespace Instructions
78
79 }; // end namespace Command
80
81 }; // end namespace Control
82
83 }; // end namespace Konclude